As first reported here: http://gcc.gnu.org/ml/gcc-help/2009-04/msg00292.html
bootstrapping 4.4.0 fails on Solaris 10 x86 if you configure with --build=i686-pc-solaris2.10 /var/tmp/build-gcc/gcc-4.4.0/configure --prefix=/opt/gcc/32-bit/4.4.0 --enable-languages=c --with-gnu-as --with-as=/var/tmp/build-gcc/binutils_2.18/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --with-gmp=/var/tmp/build-gcc/stage --with-mpfr=/var/tmp/build-gcc/stage --with-system-zlib --build=i686-pc-solaris2.10 /var/tmp/build/stage contains gmp-4.2.3 and mpfr-2.3.1 both built with --disable-shared, /var/tmp/build-gcc/binutils_2.18 contains (unsurprisingly) binutils 2.18 As recommended I'm using GNU as and Sun ld, but the build fails with: /bin/bash /var/tmp/build-gcc/gcc-4.4.0/libgcc/../mkinstalldirs . /var/tmp/build-gcc/gcc/./gcc/xgcc -B/var/tmp/build-gcc/gcc/./gcc/ -B/opt/gcc/32-bit/4.4.0/i686-pc-solaris2.10/bin/ -B/opt/gcc/32-bit/4.4.0/i686-pc-solaris2.10/lib/ -isystem /opt/gcc/32-bit/4.4.0/i686-pc-solaris2.10/include -isystem /opt/gcc/32-bit/4.4.0/i686-pc-solaris2.10/sys-include -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc.map -o ./libgcc_s.so.1.tmp -g -O2 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o _ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o _enable_execute_stack_s.o _trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o _subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o _ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o _ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o _paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o _muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o _divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o _fixxfdi_s.o _fixtfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _fixunstfdi_s.o _floatdisf_s.o _floatdidf_s.o _floatdixf_s.o _floatditf_s.o _floatundisf_s.o _floatundidf_s.o _floatundixf_s.o _floatunditf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o unwind-dw2_s.o unwind-dw2-fde_s.o unwind-sjlj_s.o gthr-gnat_s.o unwind-c_s.o emutls_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _enable_execute_stack_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _absvsi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _absvdi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _addvsi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _addvdi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _subvsi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _subvdi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _mulvsi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _mulvdi3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _negvsi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _negvdi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _popcountsi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _popcountdi2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _powisf2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _powidf2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _powixf2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _muldc3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _mulxc3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _divsc3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _divdc3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _divxc3_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _fixunssfsi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _fixunsdfsi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _fixunsxfsi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixsfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixdfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixxfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixunssfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixunsdfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _fixunsxfdi_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _floatdisf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _floatdidf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _floatdixf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file _floatundisf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _floatundidf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file _floatundixf_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file unwind-dw2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file unwind-dw2_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file unwind-dw2-fde_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file unwind-dw2-fde_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file gthr-gnat_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file gthr-gnat_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file unwind-c_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.cx' is multiply-defined: (file _mulsc3_s.o type=FUNC; file emutls_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file emutls_s.o type=FUNC); ld: fatal: symbol `__i686.get_pc_thunk.bx' is multiply-defined: (file /var/tmp/build-gcc/gcc/./gcc/crtbegin.o type=FUNC; file /var/tmp/build-gcc/gcc/./gcc/crtend.o type=FUNC); ld: fatal: File processing errors. No output written to ./libgcc_s.so.1.tmp collect2: ld returned 1 exit status make[3]: *** [libgcc_s.so] Error 1 make[3]: Leaving directory `/var/tmp/build-gcc/gcc/i686-pc-solaris2.10/libgcc' make[2]: *** [all-stage1-target-libgcc] Error 2 make[2]: Leaving directory `/var/tmp/build-gcc/gcc' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/build-gcc/gcc' make: *** [all] Error 2 The problem seems to be that gcc/configure in 4.4.0 was changed to unconditionally set gcc_cv_ld_hidden=yes for Solaris targets: *-*-solaris2.9* | *-*-solaris2.1[0-9]*) gcc_cv_ld_hidden=yes ;; $ grep gcc_cv_.._hidden gcc/config.log gcc_cv_as_hidden=yes gcc_cv_ld_hidden=yes Judging by the failure, this doesn't seem to be correct. A similar configuration using --build=i686-pc-solaris2.10 with 4.3.2 successfully bootstraps, because gcc/configure sets gcc_cv_ld_hidden=no $ /usr/ccs/bin/ld -V ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.487 $ uname -a SunOS xxx 5.10 Generic_127112-03 i86pc i386 i86pc Is building for i686-pc-solaris2.10 no longer supported, is my linker too old, or is gcc/configure making incorrect assumptions? -- Summary: [4.4/4.5 regression] i686-pc-solaris2.10 bootstrap fails using Sun ld Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jwakely dot gcc at gmail dot com GCC build triplet: i686-pc-solaris2.10 GCC host triplet: i686-pc-solaris2.10 GCC target triplet: i686-pc-solaris2.10 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40027