Bug 8498 - [3.3 only] [powerpc-apple-darwin6.0] g77, objc Testsuite failures from Unresolved symbols.
Summary: [3.3 only] [powerpc-apple-darwin6.0] g77, objc Testsuite failures from Unreso...
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: 3.3
: P3 normal
Target Milestone: 3.3.2
Assignee: Stan Shebs
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2002-11-08 00:56 UTC by rbrown64
Modified: 2003-09-08 21:14 UTC (History)
3 users (show)

See Also:
Host:
Target: powerpc-apple-darwin6.0
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-05-25 20:04:51


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rbrown64 2002-11-08 00:56:02 UTC
g77 and objc have testsuite failures from Unresolved symbols
that are contained in libf2c/.libs/libg2c.a and
libobjc/.libs/libobjc.a respectively.
Does collect2 need to provide extra ld flags for searching
these libraries on Darwin?

Driving: /devel/src/gcc-20021104.obj/gcc/testsuite/../g77 -v -save-temps -Wl,-Y,10 -B/devel/src/gcc-20021104.obj/gcc/testsuite/../ /devel/src/gcc-20021104/gcc/testsuite/g77.dg/7388.f -O1 -fbounds-check -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libiberty -lm -o ./7388.exe -lfrtbegin -lg2c
Reading specs from /devel/src/gcc-20021104.obj/gcc/testsuite/../specs
Configured with: ../gcc-20021104/configure
Thread model: single
gcc version 3.3 20021104 (experimental)
 /devel/src/gcc-20021104.obj/gcc/testsuite/../f771 /devel/src/gcc-20021104/gcc/testsuite/g77.dg/7388.f -fPIC -quiet -dumpbase 7388.f -auxbase 7388 -O1 -version -fbounds-check -o 7388.s
GNU F77 version 3.3 20021104 (experimental) (powerpc-apple-darwin6.0)
	compiled by GNU C version 3.3 20021104 (experimental).
 as -o 7388.o 7388.s
 /devel/src/gcc-20021104.obj/gcc/testsuite/../collect2 -o ./7388.exe -lcrt1.o -lcrtbegin.o -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libiberty -L/devel/src/gcc-20021104.obj/gcc/testsuite/.. -L/usr/local/lib -Y 10 7388.o -lm -lfrtbegin -lg2c -lgcc -lSystem -lgcc -lcrtend.o
/usr/bin/ld: Undefined symbols:
_f__lioproc
/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs/libg2c.a(dolio.o) reference to undefined _f__lioproc
/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs/libg2c.a(ilnw.o) reference to undefined _f__lioproc
collect2: ld returned 1 exit status


bash-2.05a$ nm /devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs/libg2c.a | fgrep _f__lioproc
	 U _f__lioproc
	 U _f__lioproc
00000004 C _f__lioproc
	 U _f__lioproc
	 U _f__lioproc

/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libf2c/.libs/libg2c.a(lread.o):
00000dfc t _Lfinish
....
	 U _f__init
00000004 C _f__lchar
00000004 C _f__lcount
00000004 C _f__lioproc
00002820 b _f__llx
00000004 C _f__lquit
000023a4 D _f__ltab
00000004 C _f__ltype
00000008 C _f__lx
00000008 C _f__ly
	 U _f__nowreading
	 U _f__reading
	 U _f__recpos
	 U _f__scale
	 U _f__units
	 U _f_init
	 U _fk_open
	 U _free
000008f4 t _l_C
00001328 t _l_CHAR
00000fd8 t _l_L
0000017c t _l_R
00000004 C _l_eof
00000004 C _l_getc
00001c30 T _l_read
00000004 C _l_ungetc
	 U _malloc
00000d2c t _nmL_getc
0000292c b _nmL_getc_save
00002928 b _nmL_next
00000db8 t _nmL_ungetc
00002930 b _nmL_ungetc_save
00002828 b _nmLbuf
00000004 C _nml_read
00002438 d _rafail.1
00000828 t _rd_count
	 U _realloc
000021d8 T _s_rsle
	 U _sprintf
00000000 T _t_getc
	 U _ungetc
00002428 d _what.0
	 U _xrd_SL
	 U dyld_stub_binding_helper




Reading specs from /devel/src/gcc-20021104.obj/gcc/specs
Configured with: ../gcc-20021104/configure
Thread model: single
gcc version 3.3 20021104 (experimental)
 /devel/src/gcc-20021104.obj/gcc/cc1obj -E -quiet -v -I/devel/src/gcc-20021104/gcc/testsuite/../../libobjc -iprefix /devel/src/gcc-20021104.obj/gcc/../lib/gcc-lib/powerpc-apple-darwin6.0/3.3/ -isystem /devel/src/gcc-20021104.obj/gcc/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__DYNAMIC__ /devel/src/gcc-20021104/gcc/testsuite/objc/execute/IMP.m -fPIC -w -O0 IMP.mi
ignoring nonexistent directory "/devel/src/gcc-20021104.obj/lib/gcc-lib/powerpc-apple-darwin6.0/3.3/include"
ignoring nonexistent directory "/devel/src/gcc-20021104.obj/lib/gcc-lib/powerpc-apple-darwin6.0/3.3/../../../../powerpc-apple-darwin6.0/include"
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory "/usr/local/lib/gcc-lib/powerpc-apple-darwin6.0/3.3/include"
ignoring nonexistent directory "/usr/local/powerpc-apple-darwin6.0/include"
#include "..." search starts here:
#include <...> search starts here:
 /devel/src/gcc-20021104/libobjc
 /devel/src/gcc-20021104.obj/gcc/include
 /usr/local/include
 /usr/include
End of search list.
 /devel/src/gcc-20021104.obj/gcc/cc1obj -fpreprocessed IMP.mi -fPIC -quiet -dumpbase IMP.m -auxbase IMP -O0 -w -version -o IMP.s
GNU Objective-C version 3.3 20021104 (experimental) (powerpc-apple-darwin6.0)
	compiled by GNU C version 3.3 20021104 (experimental).
 as -o IMP.o IMP.s
 /devel/src/gcc-20021104.obj/gcc/collect2 -o /devel/src/gcc-20021104.obj/gcc/testsuite/IMP.x0 -lcrt1.o -lcrtbegin.o -L/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libobjc/.libs -L/devel/src/gcc-20021104.obj/gcc -L/usr/local/lib -Y 10 IMP.o -lobjc -lm -lgcc -lSystem -lgcc -lcrtend.o
/usr/bin/ld: Undefined symbols:
_class_get_class_method
_objc_get_class
IMP.o reference to undefined _class_get_class_method
IMP.o reference to undefined _objc_get_class
collect2: ld returned 1 exit status
bash-2.05a$ nm /devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libobjc/.libs/*.a | fgrep '_class_get_class_method
_objc_get_class'
	 U _objc_get_class
00000490 T _objc_get_class
	 U _objc_get_class
	 U _class_get_class_method
000008a8 T _class_get_class_method
bash-2.05a$ echo !:1
echo /devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libobjc/.libs/*.a
/devel/src/gcc-20021104.obj/powerpc-apple-darwin6.0/./libobjc/.libs/libobjc.a

Release:
gcc version 3.3 20021104 (experimental)

Environment:
powerpc-apple-darwin6.0 20021104 3.3 snapshot
Comment 1 INCORRECT EMAIL ADDRESS! 2003-02-19 12:25:07 UTC
From: Geoffrey Keating <geoffk@apple.com>
To: shebs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   rbrown64@csc.com.au, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: target/8498: [powerpc-apple-darwin6.0] g77, objc Testsuite failures from Unresolved symbols.
Date: Wed, 19 Feb 2003 12:25:07 -0800

 This is probably the problem fixed in HEAD with:
 
 2002-12-21  Geoffrey Keating  <geoffk@apple.com>
 
          * configure.in (extra_ranlibflags_for_target): New variable.
          (*-*-darwin): Add -c to ranlib commands.
          * configure (tooldir): Handle extra_ranlibflags_for_target.
 
 The patch would need to be rewritten to apply to the 3.3 branch.
 
 -- 
 Geoff Keating <geoffk@apple.com>
Comment 2 David Edelsohn 2003-02-19 16:06:06 UTC
Responsible-Changed-From-To: unassigned->shebs
Responsible-Changed-Why: Darwin
Comment 3 Andrew Pinski 2003-05-25 20:04:51 UTC
Should the patch be applied to 3.3.1?
Comment 4 Mark Mitchell 2003-07-11 23:02:26 UTC
Postponed until GCC 3.3.2; powerpc-apple-darwin is not a primary platofrm.
Comment 5 Stan Shebs 2003-09-08 21:14:12 UTC
This is just g77 (objc problem is a gnu/next runtime issue), hardly seems
worth the trouble to tweak 3.3.2 for this.