Subject: gcc34 on darwin
To: None <>
From: Manuel Bouyer <>
List: tech-pkg
Date: 04/15/2005 12:25:42
trying to build gcc34 on darwin (from the pkgsrc-2005Q1 branch), I get (sor=
for the long line):
=2E/xgcc -B./ -B/usr/pkg/gcc34/powerpc-apple-darwin7.8.0/bin/ -isystem /usr=
/pkg/gcc34/powerpc-apple-darwin7.8.0/include -isystem /usr/pkg/gcc34/powerp=
c-apple-darwin7.8.0/sys-include -L/Volumes/data/bouyer/pkgsrc/lang/gcc34/wo=
rk/obj/gcc/../ld -O2  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototy=
pes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -mlong=
dynamiclib -nodefaultlibs -Wl,-install_name,/usr/pkg/gcc34/lib/libgcc_s.1.0=
.dylib -Wl,-flat_namespace -o libgcc_s.1.0.dylib.tmp -compatibility_version=
 1 -current_version 1.0   libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_l=
shrdi3.o libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_cmpdi2.o libgcc/=
./_ucmpdi2.o libgcc/./_floatdidf.o libgcc/./_floatdisf.o libgcc/./_fixunsdf=
si.o libgcc/./_fixunssfsi.o libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libg=
cc/./_fixunssfdi.o libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixuns=
xfdi.o libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o lib=
gcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o libgcc/./=
_enable_execute_stack.o libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_=
absvsi2.o libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgc=
c/./_subvsi3.o libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o =
libgcc/./_negvsi2.o libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_ffssi2.=
o libgcc/./_ffsdi2.o libgcc/./_clz.o libgcc/./_clzsi2.o libgcc/./_clzdi2.o =
libgcc/./_ctzsi2.o libgcc/./_ctzdi2.o libgcc/./_popcount_tab.o libgcc/./_po=
pcountsi2.o libgcc/./_popcountdi2.o libgcc/./_paritysi2.o libgcc/./_parityd=
i2.o libgcc/./_divdi3.o libgcc/./_moddi3.o libgcc/./_udivdi3.o libgcc/./_um=
oddi3.o libgcc/./_udiv_w_sdiv.o libgcc/./_udivmoddi4.o libgcc/./darwin-tram=
p.o libgcc/./darwin-ldouble.o  libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fd=
e-darwin.o libgcc/./unwind-sjlj.o libgcc/./unwind-c.o -lc && rm -f libgcc_s=
.dylib && if [ -f libgcc_s.1.0.dylib ]; then mv -f libgcc_s.1.0.dylib libgc=
c_s.1.0.dylib.`basename `; else true; fi && mv libgcc_s.1.0.dylib.tmp libgc=
c_s.1.0.dylib && ln -s libgcc_s.1.0.dylib libgcc_s.dylib
/usr/bin/libtool: -static not specified, -L invalid
/usr/bin/libtool: can't map file: /usr/pkg/gcc34/lib ((os/kern) invalid arg=
gnumake[3]: *** [libgcc_s.dylib] Error 1
gnumake[2]: *** [libgcc.a] Error 2
gnumake[1]: *** [stage1_build] Error 2
gnumake: *** [bootstrap] Error 2
*** Error code 2

I can't see how libtool got called here. Is there a pkgsrc wrapper comming
in the process here ?
Any idea how to fix it ?

/Volumes/data/bouyer/pkgsrc/lang/gcc34/work/obj/gcc/../ld doesn't exists;
I don't know if it's a real problem or not. pkgsrc binutils are not install=
the system's as and ld are used (as is GNU as 1.38, I don't know if ld
is GNU ld or not. ld -v doesn't show anything interesting).

Manuel Bouyer <>
     NetBSD: 26 ans d'experience feront toujours la difference