Subject: pkgsrc build of gcc-3.3.3 fails on i386
To: None <tech-pkg@netbsd.org>
From: Nate Bohlmann <njb@elfwerks.com>
List: tech-pkg
Date: 05/17/2004 21:59:52
I have a 1.6.2 system and am attempting to compile the gcc3-c package since it 
is apparently needed for the latest postgresql install.  I am using the base 
1.6.2 C compiler (which happens to be gcc 2.95.3 nb3) to attempt this compile. 
I am building as root and the build fails attempting to build libgcc_s.so:

/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc/xgcc 
-B/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc/ 
-B/usr/pkg/gcc3/i386--netbsdelf/bin/ -B/usr/pkg/gcc3/i386--netbsdelf/lib/ 
-isystem /usr/pkg/gcc3/i386--netbsdelf/include -O2  -DIN_GCC    -W -Wall 
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include 
-fPIC -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -shared -nodefaultlibs 
-Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o 
libgcc_s.so.1   libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o 
libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgcc/./_clz.o 
libgcc/./_cmpdi2.o libgcc/./_ucmpdi2.o libgcc/./_floatdidf.o 
libgcc/./_floatdisf.o libgcc/./_fixunsdfsi.o libgcc/./_fixunssfsi.o 
libgcc/./_fixunsdfdi.o libgcc/./_fixdfdi.o libgcc/./_fixunssfdi.o 
libgcc/./_fixsfdi.o libgcc/./_fixxfdi.o libgcc/./_fixunsxfdi.o 
libgcc/./_floatdixf.o libgcc/./_fixunsxfsi.o libgcc/./_fixtfdi.o 
libgcc/./_fixunstfdi.o libgcc/./_floatditf.o libgcc/./_clear_cache.o 
libgcc/./_trampoline.o libgcc/./__main.o libgcc/./_exit.o libgcc/./_absvsi2.o 
libgcc/./_absvdi2.o libgcc/./_addvsi3.o libgcc/./_addvdi3.o libgcc/./_subvsi3.o 
libgcc/./_subvdi3.o libgcc/./_mulvsi3.o libgcc/./_mulvdi3.o libgcc/./_negvsi2.o 
libgcc/./_negvdi2.o libgcc/./_ctors.o libgcc/./_divdi3.o libgcc/./_moddi3.o 
libgcc/./_udivdi3.o libgcc/./_umoddi3.o libgcc/./_udiv_w_sdiv.o 
libgcc/./_udivmoddi4.o  libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o 
libgcc/./unwind-sjlj.o libgcc/./unwind-c.o -lc && rm -f libgcc_s.so && ln -s 
libgcc_s.so.1 libgcc_s.so
/usr/lib/crtbeginS.o: In function `_init':
/usr/lib/crtbeginS.o(.init+0x5c): multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
/usr/lib/crtbeginS.o: In function `_fini':
/usr/lib/crtbeginS.o(.fini+0x34): multiple definition of `_fini'
/usr/lib/crti.o(.fini+0x0): first defined here
collect2: ld returned 1 exit status
gmake[2]: *** [libgcc_s.so] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc'
gmake[1]: *** [libgcc.a] Error 2
gmake[1]: Leaving directory `/usr/pkgsrc/lang/gcc3-c/work/gcc-3.3.3/gcc'
gmake: *** [all-gcc] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/lang/gcc3-c
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/lang/gcc3-c

Thanks for any help you may be able to offer.

Nate Bohlmann