http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49707
Summary: GCC sends incorrect flags to native IRIX ld Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassig...@gcc.gnu.org ReportedBy: kai...@sucs.org on an sgi-mips-irix6.5 machine when trying to build I receive the following error when make starts to link. /home/member/kais58/beast/tgc/tgcware-for-irix/gcc45/src/all_pthreads/./gcc/xgcc -B/home/member/kais58/beast/tgc/tgcware-for-irix/gcc45/src/all_pthreads/./gcc/ -B/usr/sucs/gcc45/mips-sgi-irix6.5/bin/ -B/usr/sucs/gcc45/mips-sgi-irix6.5/lib/ -isystem /usr/sucs/gcc45/mips-sgi-irix6.5/include -isystem /usr/sucs/gcc45/mips-sgi-irix6.5/sys-include -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,-soname,libgcc_s.so.1 -o 64/libgcc_s.so.1.tmp -g -O2 -mabi=64 -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 _fixsfti_s.o _fixdfti_s.o _fixxfti_s.o _fixtfti_s.o _fixunssfti_s.o _fixunsdfti_s.o _fixunsxfti_s.o _fixunstfti_s.o _floattisf_s.o _floattidf_s.o _floattixf_s.o _floattitf_s.o _floatuntisf_s.o _floatuntidf_s.o _floatuntixf_s.o _floatuntitf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o _udiv_w_sdiv_s.o _udivmoddi4_s.o _pack_sf_s.o _unpack_sf_s.o _addsub_sf_s.o _mul_sf_s.o _div_sf_s.o _fpcmp_parts_sf_s.o _compare_sf_s.o _eq_sf_s.o _ne_sf_s.o _gt_sf_s.o _ge_sf_s.o _lt_sf_s.o _le_sf_s.o _unord_sf_s.o _si_to_sf_s.o _sf_to_si_s.o _negate_sf_s.o _make_sf_s.o _sf_to_df_s.o _sf_to_tf_s.o _thenan_sf_s.o _sf_to_usi_s.o _usi_to_sf_s.o _pack_df_s.o _unpack_df_s.o _addsub_df_s.o _mul_df_s.o _div_df_s.o _fpcmp_parts_df_s.o _compare_df_s.o _eq_df_s.o _ne_df_s.o _gt_df_s.o _ge_df_s.o _lt_df_s.o _le_df_s.o _unord_df_s.o _si_to_df_s.o _df_to_si_s.o _negate_df_s.o _make_df_s.o _df_to_sf_s.o _df_to_tf_s.o _thenan_df_s.o _df_to_usi_s.o _usi_to_df_s.o _pack_tf_s.o _unpack_tf_s.o _addsub_tf_s.o _mul_tf_s.o _div_tf_s.o _fpcmp_parts_tf_s.o _compare_tf_s.o _eq_tf_s.o _ne_tf_s.o _gt_tf_s.o _ge_tf_s.o _lt_tf_s.o _le_tf_s.o _unord_tf_s.o _si_to_tf_s.o _tf_to_si_s.o _negate_tf_s.o _make_tf_s.o _tf_to_df_s.o _tf_to_sf_s.o _thenan_tf_s.o _tf_to_usi_s.o _usi_to_tf_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 64/libgcc_s.so && if [ -f 64/libgcc_s.so.1 ]; then mv -f 64/libgcc_s.so.1 64/libgcc_s.so.1.backup; else true; fi && mv 64/libgcc_s.so.1.tmp 64/libgcc_s.so.1 && ln -s libgcc_s.so.1 64/libgcc_s.so ld: ERROR 4: Conflicting flag setting: -64 ld: FATAL 12: Expecting o32 objects: /home/member/kais58/beast/tgc/tgcware-for-irix/gcc45/src/all_pthreads/./gcc/64/irix-crti.o is 64-bit. collect2: ld returned 4 exit status it appears to be sending 2 of the object identify flags to ld which it doesnt like :/ ../gcc-4.5.2/configure --prefix=/usr/sucs/gcc45 --with-local-prefix=/usr/sucs/gcc45 --disable-nls --with-gmp=/usr/tgcware --with-mpfr=/usr/tgcware --with-mpc=/usr/tgcware --enable-shared --with-gnu-as --with-as=/usr/tgcware/bin/as --with-ld=/usr/bin/ld --enable-languages=c --with-bugurl=http://sucs.org