i am building gcc 4.2.2 on a solaris machine using gcc-3.4.4 my build machine SunOS 5.8 Generic_108528-20 sun4u sparc SUNW,Sun-Blade-100 my gcc-3.4.4 Reading specs from /tools/openbin/gcc/3.4.4/sparc-sun-solaris8/lib/gcc/sparc-sun-solaris2.8/3.4.4/specs Configured with: ../gcc-3.4.4/configure --prefix=/tools/openbin/gcc/3.4.4/sparc-sun-solaris8 --disable-nls --enable-languages=c,c++,java --enable-shared --enable-threads=posix --with-gnu-as --with-as=/tools/openbin/binutils/2.16.1/sparc-sun-solaris8/bin/as --with-gnu-ld --with-ld=/tools/openbin/binutils/2.16.1/sparc-sun-solaris8/bin/ld Thread model: posix my configure options CC=$(HOST_CC) CXX=$(HOST_CXX) MAKE=$(GMAKE) \ $(SRC_DIR)/configure \ --prefix=$(DEST_DIR) \ --disable-nls \ --enable-shared \ --enable-threads=posix \ --without-gnu-ld \ --with-ld=/usr/ccs/bin/ld \ --with-as=/tools/openbin/binutils/2.16.1/sparc-sun-solaris8/bin/as \ --with-gnu-as \ --enable-languages=c,c++ \ --with-mpfr=/tools/openbin/mpfr/2.3.1/sparc-sun-solaris10 \ --with-mpfr-include=/tools/openbin/mpfr/2.3.1/sparc-sun-solaris10/include \ --with-mpfr-lib=/tools/openbin/mpfr/2.3.1/sparc-sun-solaris10/lib \ --with-gmp=/tools/openbin/gmp/4.2.2/sparc-sun-solaris10 \ --with-gmp-include=/tools/openbin/gmp/4.2.2/sparc-sun-solaris10/include \ --with-gmp-lib=/tools/openbin/gmp/4.2.2/sparc-sun-solaris10/lib I am getting this error in build stage /users/toolsrd/ws/si_ctoolrd/gcc/production/objects/gcc-4.2.2/./gcc/xgcc -B/users/toolsrd/ws/si_ctoolrd/gcc/production/objects/gcc-4.2.2/./gcc/ -B/tools/openbin/gcc/4.2.2/sparc-sun-solaris8/sparc-sun-solaris2.8/bin/ -B/tools/openbin/gcc/4.2.2/sparc-sun-solaris8/sparc-sun-solaris2.8/lib/ -isystem /tools/openbin/gcc/4.2.2/sparc-sun-solaris8/sparc-sun-solaris2.8/include -isystem /tools/openbin/gcc/4.2.2/sparc-sun-solaris8/sparc-sun-solaris2.8/sys-include -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -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/./libgcc.map -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_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: relocation error: R_SPARC_32: file libgcc/./_muldi3_s.o: symbol <unknown>: offset 0xfe98dad1 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_lshrdi3_s.o: symbol <unknown>: offset 0xfe98dbe3 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_ashrdi3_s.o: symbol <unknown>: offset 0xfe98dd0d is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_ucmpdi2_s.o: symbol <unknown>: offset 0xfe98de2f is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_clear_cache_s.o: symbol <unknown>: offset 0xfe98dead is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_enable_execute_stack_s.o: symbol <unknown>: offset 0xfe98df26 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_absvdi2_s.o: symbol <unknown>: offset 0xfe98e06d is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_addvsi3_s.o: symbol <unknown>: offset 0xfe98e0f6 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_addvdi3_s.o: symbol <unknown>: offset 0xfe98e181 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_subvsi3_s.o: symbol <unknown>: offset 0xfe98e20e is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_subvdi3_s.o: symbol <unknown>: offset 0xfe98e299 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_mulvsi3_s.o: symbol <unknown>: offset 0xfe98e326 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_negvsi2_s.o: symbol <unknown>: offset 0xfe98e493 is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_negvdi2_s.o: symbol <unknown>: offset 0xfe98e51e is non-aligned ld: fatal: relocation error: R_SPARC_32: file libgcc/./_ffssi2_s.o: symbol <unknown>: offset 0xfe9
This is a binutils bug which was fixed for 2.18. *** This bug has been marked as a duplicate of 15267 ***