Subject: bin/15024: current >=1.11 src/gnu/dist/toolchain/gcc/config/netbsd.h toolchain botch ("ld: cannot find -lgcc_pic-lgcc_p")
To: None <gnats-bugs@gnats.netbsd.org>
From: Chuck Cranor <chuck@xxx.research.att.com>
List: netbsd-bugs
Date: 12/21/2001 14:22:28
>Number: 15024
>Category: bin
>Synopsis: current >=1.11 src/gnu/dist/toolchain/gcc/config/netbsd.h toolchain botch ("ld: cannot find -lgcc_pic-lgcc_p")
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 21 11:23:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Chuck Cranor
>Release: NetBSD -current, src/gnu/dist/toolchain/gcc/config/netbsd.h 1.11 or greater
>Organization:
att
>Environment:
NetBSD/i386, -current,
src/gnu/dist/toolchain/gcc/config/netbsd.h 1.12 used.
>Description:
the following change appears to have broken "c++" command in some
cases... when you try and build pkgsrc mozilla you get
"ld: cannot find -lgcc_pic-lgcc_p".
RCS file: /cvsroot/gnusrc/gnu/dist/toolchain/gcc/config/netbsd.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -c -r1.10 -r1.11
*** netbsd.h 2001/12/16 03:07:59 1.10
--- netbsd.h 2001/12/19 21:38:24 1.11
***************
*** 61,67 ****
--- 61,71 ----
libgcc when -symbolic. */
#undef LIBGCC_SPEC
+ #ifdef NETBSD_NATIVE
+ #define LIBGCC_SPEC "%{!symbolic:%{!shared:%{!p*:-lgcc}}%{shared:-lgcc_pic}%{p*:-lgcc_p}}"
+ #else
#define LIBGCC_SPEC "%{!shared:%{!symbolic:-lgcc}}"
+ #endif
/* #ifdef NETBSD_AOUT */
>How-To-Repeat:
try building mozilla on a -current system.
...
rm -f libmozjs.so
c++ -I/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/include -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth -pedantic -Wno-long-long -I/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/include -I/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/include -O2 -Dunix -O -pipe -DNDEBUG -DTRIMMED -Wl,-R/usr/X11R6/lib/mozilla -shared -Wl,-soname,libmozjs.so -o libmozjs.so jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o jsinterp.o jslock.o jslog2.o jslong.o jsmath.o jsnum.o jsobj.o jsopcode.o jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o jsxdrapi.o prmjtime.o -L/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/lib -Wl,-R/usr/X11R6/lib/mozilla -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/!
lib -L/usr/pkg/lib -lm -L../../dist/bin -L/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/lib -L/usr/X11R6/lib -L/usr/pkg/lib -lm -L/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/.buildlink/lib -lintl
ld: cannot find -lgcc_pic-lgcc_p
gmake[2]: *** [libmozjs.so] Error 1
gmake[2]: Leaving directory `/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/mozilla/js/src'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla/work/mozilla/js'
gmake: *** [install] Error 2
*** Error code 2
Stop.
make: stopped in /usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla
*** Error code 1
Stop.
make: stopped in /usr/users/chuck/src/netbsd/cur/pkgsrc/www/mozilla
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: