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
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>
Responsible-Changed-From-To: unassigned->shebs Responsible-Changed-Why: Darwin
Should the patch be applied to 3.3.1?
Postponed until GCC 3.3.2; powerpc-apple-darwin is not a primary platofrm.
This is just g77 (objc problem is a gnu/next runtime issue), hardly seems worth the trouble to tweak 3.3.2 for this.