Why is configure getting this wrong? Testing with ld -b64 works. # ld -b64 -r -o .libs/libg2c.la-1.o libE77/.libs/Labort.o # ld -r -o .libs/libg2c.la-1.o libE77/.libs/Labort.o ld: 0711-736 ERROR: Input file libE77/.libs/Labort.o: XCOFF64 object files are not allowed in 32-bit mode. -----Original Message----- From: Wheeler, Richard Sent: Tuesday, March 22, 2005 4:08 PM To: 'gcc-help@xxxxxxxxxxx' Subject: 3.4.3 Bootstrap error - XCOFF64 object files are not allowed in 32-bit mode. AIX 5.2.0.0 It looks to me that when "creating a temporary reloadable object file: .libs/libg2c.la-2.o" for the ppc64 directory it should have issued the ld command with the -b64 option. My configure options were: --prefix=/mydir/local --enable-threads=aix --disable-nls Make options: make bootstrap GCC -v 3.3.2 Using BASH shell GNU Make 3.80 make[5]: Entering directory `/mydir/tools/gcc.3.4.3/powerpc-ibm-aix5.2.0.0/pthread/ppc64/libf2c' /cmDevTest/Dev/local/bin/bash ./libtool --mode=link /cmDevTest/Tools/gcc.3.4.3/gcc/xgcc \ -B/cmDevTest/Tools/gcc.3.4.3/gcc/ -B/cmDevTest/local/powerpc-ibm-aix5.2.0.0/bin/ \ -B/cmDevTest/local/powerpc-ibm-aix5.2.0.0/lib/ -isystem /cmDevTest/local/powerpc-ibm-aix5.2.0.0/include \ -isystem /cmDevTest/local/powerpc-ibm-aix5.2.0.0/sys-include -o libg2c.la \ -version-info 0:0:0 \ -rpath /cmDevTest/local/lib/pthread/ppc64 \ -objectlist s-libe77 \ -objectlist s-libf77 \ -objectlist s-libi77 \ -objectlist s-libu77 \ -lm mkdir .libs generating symbol list for `libg2c.la' nm -B -X32_64 -BCpg libE77/.libs/Labort.o libE77/.libs/Lderf.o libE77/.libs/Lderfc.o libE77/.libs/Lef1asc.o libE77/.libs/Lef1cmc.o libE77/.libs/Lerf.o libE77/.libs/Lerfc.o libE77/.libs/Lexit.o libE77/.libs/Lgetarg.o libE77/.libs/Lgetenv.o libE77/.libs/Liargc.o libE77/.libs/Lsignal.o libE77/.libs/Lsystem.o libE77/.libs/Lflush.o libE77/.libs/Lftell.o libE77/.libs/Lfseek.o libE77/.libs/Laccess.o libE77/.libs/Lbesj0.o libE77/.libs/Lbesj1.o libE77/.libs/Lbesjn.o libE77/.libs/Lbesy0.o libE77/.libs/Lbesy1.o libE77/.libs/Lbesyn.o libE77/.libs/Lchdir.o libE77/.libs/Lchmod.o libE77/.libs/Lctime.o libE77/.libs/Ldbesj0.o libE77/.libs/Ldbesj1.o libE77/.libs/Ldbesjn.o libE77/.libs/Ldbesy0.o libE77/.libs/Ldbesy1.o libE77/.libs/Ldbesyn.o libE77/.libs/Ldtime.o libE77/.libs/Letime.o libE77/.libs/Lfdate.o libE77/.libs/Lfgetc.o libE77/.libs/Lfget.o libE77/.libs/Lflush1.o libE77/.libs/Lfnum.o libE77/.libs/Lfputc.o libE77/.libs/Lfput.o libE77/.libs/Lfstat.o libE77/.libs/Lgerror.o libE77/.libs/Lgetcwd.o libE77/.libs/Lgetgid.o libE77/.libs/Lgetlog.o libE77/.libs/Lgetpid.o libE77/.libs/Lgetuid.o libE77/.libs/Lgmtime.o libE77/.libs/Lhostnm.o libE77/.libs/Lidate.o libE77/.libs/Lierrno.o libE77/.libs/Lirand.o libE77/.libs/Lisatty.o libE77/.libs/Litime.o libE77/.libs/Lkill.o libE77/.libs/Llink.o libE77/.libs/Llnblnk.o libE77/.libs/Llstat.o libE77/.libs/Lltime.o libE77/.libs/Lmclock.o libE77/.libs/Lperror.o libE77/.libs/Lrand.o libE77/.libs/Lrename.o libE77/.libs/Lsecnds.o libE77/.libs/Lsecond.o libE77/.libs/Lsleep.o libE77/.libs/Lsrand.o libE77/.libs/Lstat.o libE77/.libs/Lsymlnk.o libE77/.libs/Ltime.o libE77/.libs/Lttynam.o libE77/.libs/Lumask.o libE77/.libs/Lunlink.o libE77/.libs/Lvxttim.o libE77/.libs/Lalarm.o libE77/.libs/Ldate_y2kbuggy.o libE77/.libs/Ldate_y2kbug.o libE77/.libs/Lvxtidt_y2kbuggy.o libE77/.libs/Lvxtidt_y2kbug.o libF77/.libs/F77_aloc.o libF77/.libs/VersionF.o libF77/.libs/s_rnge.o libF77/.libs/abort_.o libF77/.libs/getarg_.o libF77/.libs/iargc_.o libF77/.libs/getenv_.o libF77/.libs/signal_.o libF77/.libs/s_stop.o libF77/.libs/s_paus.o libF77/.libs/system_.o libF77/.libs/cabs.o libF77/.libs/derf_.o libF77/.libs/derfc_.o libF77/.libs/erf_.o libF77/.libs/erfc_.o libF77/.libs/sig_die.o libF77/.libs/exit_.o libF77/.libs/setarg.o libF77/.libs/setsig.o libF77/.libs/pow_ci.o libF77/.libs/pow_dd.o libF77/.libs/pow_di.o libF77/.libs/pow_hh.o libF77/.libs/pow_ii.o libF77/.libs/pow_ri.o libF77/.libs/pow_zi.o libF77/.libs/pow_zz.o libF77/.libs/pow_qq.o libF77/.libs/c_abs.o libF77/.libs/c_cos.o libF77/.libs/c_div.o libF77/.libs/c_exp.o libF77/.libs/c_log.o libF77/.libs/c_sin.o libF77/.libs/c_sqrt.o libF77/.libs/z_abs.o libF77/.libs/z_cos.o libF77/.libs/z_div.o libF77/.libs/z_exp.o libF77/.libs/z_log.o libF77/.libs/z_sin.o libF77/.libs/z_sqrt.o libF77/.libs/r_abs.o libF77/.libs/r_acos.o libF77/.libs/r_asin.o libF77/.libs/r_atan.o libF77/.libs/r_atn2.o libF77/.libs/r_cnjg.o libF77/.libs/r_cos.o libF77/.libs/r_cosh.o libF77/.libs/r_dim.o libF77/.libs/r_exp.o libF77/.libs/r_imag.o libF77/.libs/r_int.o libF77/.libs/r_lg10.o libF77/.libs/r_log.o libF77/.libs/r_mod.o libF77/.libs/r_nint.o libF77/.libs/r_sign.o libF77/.libs/r_sin.o libF77/.libs/r_sinh.o libF77/.libs/r_sqrt.o libF77/.libs/r_tan.o libF77/.libs/r_tanh.o libF77/.libs/d_abs.o libF77/.libs/d_acos.o libF77/.libs/d_asin.o libF77/.libs/d_atan.o libF77/.libs/d_atn2.o libF77/.libs/d_cnjg.o libF77/.libs/d_cos.o libF77/.libs/d_cosh.o libF77/.libs/d_dim.o libF77/.libs/d_exp.o libF77/.libs/d_imag.o libF77/.libs/d_int.o libF77/.libs/d_lg10.o libF77/.libs/d_log.o libF77/.libs/d_mod.o libF77/.libs/d_nint.o libF77/.libs/d_prod.o libF77/.libs/d_sign.o libF77/.libs/d_sin.o libF77/.libs/d_sinh.o libF77/.libs/d_sqrt.o libF77/.libs/d_tan.o libF77/.libs/d_tanh.o libF77/.libs/i_abs.o libF77/.libs/i_dim.o libF77/.libs/i_dnnt.o libF77/.libs/i_indx.o libF77/.libs/i_len.o libF77/.libs/i_mod.o libF77/.libs/i_nint.o libF77/.libs/i_sign.o libF77/.libs/h_abs.o libF77/.libs/h_dim.o libF77/.libs/h_dnnt.o libF77/.libs/h_indx.o libF77/.libs/h_len.o libF77/.libs/h_mod.o libF77/.libs/h_nint.o libF77/.libs/h_sign.o libF77/.libs/l_ge.o libF77/.libs/l_gt.o libF77/.libs/l_le.o libF77/.libs/l_lt.o libF77/.libs/hl_ge.o libF77/.libs/hl_gt.o libF77/.libs/hl_le.o libF77/.libs/hl_lt.o libF77/.libs/ef1asc_.o libF77/.libs/ef1cmc_.o libF77/.libs/s_cat.o libF77/.libs/s_cmp.o libF77/.libs/s_copy.o libF77/.libs/lbitbits.o libF77/.libs/lbitshft.o libF77/.libs/qbitbits.o libF77/.libs/qbitshft.o libI77/.libs/VersionI.o libI77/.libs/backspace.o libI77/.libs/close.o libI77/.libs/dfe.o libI77/.libs/dolio.o libI77/.libs/due.o libI77/.libs/endfile.o libI77/.libs/err.o libI77/.libs/fmt.o libI77/.libs/fmtlib.o libI77/.libs/iio.o libI77/.libs/ilnw.o libI77/.libs/inquire.o libI77/.libs/lread.o libI77/.libs/lwrite.o libI77/.libs/open.o libI77/.libs/rdfmt.o libI77/.libs/rewind.o libI77/.libs/rsfe.o libI77/.libs/rsli.o libI77/.libs/rsne.o libI77/.libs/sfe.o libI77/.libs/sue.o libI77/.libs/typesize.o libI77/.libs/uio.o libI77/.libs/util.o libI77/.libs/wref.o libI77/.libs/wrtfmt.o libI77/.libs/wsfe.o libI77/.libs/wsle.o libI77/.libs/wsne.o libI77/.libs/xwsne.o libI77/.libs/ftell_.o libU77/.libs/VersionU.o libU77/.libs/gerror_.o libU77/.libs/perror_.o libU77/.libs/ierrno_.o libU77/.libs/itime_.o libU77/.libs/time_.o libU77/.libs/unlink_.o libU77/.libs/fnum_.o libU77/.libs/getpid_.o libU77/.libs/getuid_.o libU77/.libs/getgid_.o libU77/.libs/kill_.o libU77/.libs/rand_.o libU77/.libs/srand_.o libU77/.libs/irand_.o libU77/.libs/sleep_.o libU77/.libs/idate_.o libU77/.libs/ctime_.o libU77/.libs/etime_.o libU77/.libs/dtime_.o libU77/.libs/isatty_.o libU77/.libs/ltime_.o libU77/.libs/fstat_.o libU77/.libs/stat_.o libU77/.libs/lstat_.o libU77/.libs/access_.o libU77/.libs/link_.o libU77/.libs/getlog_.o libU77/.libs/ttynam_.o libU77/.libs/getcwd_.o libU77/.libs/symlnk_.o libU77/.libs/vxttime_.o libU77/.libs/vxtidate_.o libU77/.libs/gmtime_.o libU77/.libs/fdate_.o libU77/.libs/secnds_.o libU77/.libs/chdir_.o libU77/.libs/chmod_.o libU77/.libs/lnblnk_.o libU77/.libs/hostnm_.o libU77/.libs/rename_.o libU77/.libs/fgetc_.o libU77/.libs/fputc_.o libU77/.libs/umask_.o libU77/.libs/sys_clock_.o libU77/.libs/date_.o libU77/.libs/second_.o libU77/.libs/flush1_.o libU77/.libs/mclock_.o libU77/.libs/alarm_.o libU77/.libs/datetime_.o | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > .libs/libg2c.exp creating reloadable object files... creating a temporary reloadable object file: .libs/libg2c.la-2.o ld -r -o .libs/libg2c.la-1.o libE77/.libs/Labort.o libE77/.libs/Lderf.o libE77/.libs/Lderfc.o libE77/.libs/Lef1asc.o libE77/.libs/Lef1cmc.o libE77/.libs/Lerf.o libE77/.libs/Lerfc.o libE77/.libs/Lexit.o libE77/.libs/Lgetarg.o libE77/.libs/Lgetenv.o libE77/.libs/Liargc.o libE77/.libs/Lsignal.o libE77/.libs/Lsystem.o libE77/.libs/Lflush.o libE77/.libs/Lftell.o libE77/.libs/Lfseek.o libE77/.libs/Laccess.o libE77/.libs/Lbesj0.o libE77/.libs/Lbesj1.o libE77/.libs/Lbesjn.o libE77/.libs/Lbesy0.o libE77/.libs/Lbesy1.o libE77/.libs/Lbesyn.o libE77/.libs/Lchdir.o libE77/.libs/Lchmod.o libE77/.libs/Lctime.o libE77/.libs/Ldbesj0.o libE77/.libs/Ldbesj1.o libE77/.libs/Ldbesjn.o libE77/.libs/Ldbesy0.o libE77/.libs/Ldbesy1.o libE77/.libs/Ldbesyn.o libE77/.libs/Ldtime.o libE77/.libs/Letime.o libE77/.libs/Lfdate.o libE77/.libs/Lfgetc.o libE77/.libs/Lfget.o libE77/.libs/Lflush1.o libE77/.libs/Lfnum.o libE77/.libs/Lfputc.o libE77/.libs/Lfput.o libE77/.libs/Lfstat.o libE77/.libs/Lgerror.o libE77/.libs/Lgetcwd.o libE77/.libs/Lgetgid.o libE77/.libs/Lgetlog.o libE77/.libs/Lgetpid.o libE77/.libs/Lgetuid.o libE77/.libs/Lgmtime.o libE77/.libs/Lhostnm.o libE77/.libs/Lidate.o libE77/.libs/Lierrno.o libE77/.libs/Lirand.o libE77/.libs/Lisatty.o libE77/.libs/Litime.o libE77/.libs/Lkill.o libE77/.libs/Llink.o libE77/.libs/Llnblnk.o libE77/.libs/Llstat.o libE77/.libs/Lltime.o libE77/.libs/Lmclock.o libE77/.libs/Lperror.o libE77/.libs/Lrand.o libE77/.libs/Lrename.o libE77/.libs/Lsecnds.o libE77/.libs/Lsecond.o libE77/.libs/Lsleep.o libE77/.libs/Lsrand.o libE77/.libs/Lstat.o libE77/.libs/Lsymlnk.o libE77/.libs/Ltime.o libE77/.libs/Lttynam.o libE77/.libs/Lumask.o libE77/.libs/Lunlink.o libE77/.libs/Lvxttim.o libE77/.libs/Lalarm.o libE77/.libs/Ldate_y2kbuggy.o libE77/.libs/Ldate_y2kbug.o libE77/.libs/Lvxtidt_y2kbuggy.o libE77/.libs/Lvxtidt_y2kbug.o libF77/.libs/F77_aloc.o libF77/.libs/VersionF.o libF77/.libs/s_rnge.o libF77/.libs/abort_.o libF77/.libs/getarg_.o libF77/.libs/iargc_.o libF77/.libs/getenv_.o libF77/.libs/signal_.o libF77/.libs/s_stop.o libF77/.libs/s_paus.o libF77/.libs/system_.o libF77/.libs/cabs.o libF77/.libs/derf_.o libF77/.libs/derfc_.o libF77/.libs/erf_.o libF77/.libs/erfc_.o libF77/.libs/sig_die.o libF77/.libs/exit_.o libF77/.libs/setarg.o libF77/.libs/setsig.o libF77/.libs/pow_ci.o libF77/.libs/pow_dd.o libF77/.libs/pow_di.o libF77/.libs/pow_hh.o libF77/.libs/pow_ii.o libF77/.libs/pow_ri.o libF77/.libs/pow_zi.o libF77/.libs/pow_zz.o libF77/.libs/pow_qq.o libF77/.libs/c_abs.o libF77/.libs/c_cos.o libF77/.libs/c_div.o libF77/.libs/c_exp.o libF77/.libs/c_log.o libF77/.libs/c_sin.o libF77/.libs/c_sqrt.o libF77/.libs/z_abs.o libF77/.libs/z_cos.o libF77/.libs/z_div.o libF77/.libs/z_exp.o libF77/.libs/z_log.o libF77/.libs/z_sin.o libF77/.libs/z_sqrt.o libF77/.libs/r_abs.o libF77/.libs/r_acos.o libF77/.libs/r_asin.o libF77/.libs/r_atan.o libF77/.libs/r_atn2.o libF77/.libs/r_cnjg.o libF77/.libs/r_cos.o libF77/.libs/r_cosh.o libF77/.libs/r_dim.o libF77/.libs/r_exp.o libF77/.libs/r_imag.o libF77/.libs/r_int.o libF77/.libs/r_lg10.o libF77/.libs/r_log.o libF77/.libs/r_mod.o libF77/.libs/r_nint.o libF77/.libs/r_sign.o libF77/.libs/r_sin.o libF77/.libs/r_sinh.o libF77/.libs/r_sqrt.o libF77/.libs/r_tan.o libF77/.libs/r_tanh.o libF77/.libs/d_abs.o libF77/.libs/d_acos.o libF77/.libs/d_asin.o libF77/.libs/d_atan.o libF77/.libs/d_atn2.o libF77/.libs/d_cnjg.o libF77/.libs/d_cos.o libF77/.libs/d_cosh.o libF77/.libs/d_dim.o libF77/.libs/d_exp.o libF77/.libs/d_imag.o libF77/.libs/d_int.o libF77/.libs/d_lg10.o libF77/.libs/d_log.o libF77/.libs/d_mod.o libF77/.libs/d_nint.o libF77/.libs/d_prod.o libF77/.libs/d_sign.o libF77/.libs/d_sin.o libF77/.libs/d_sinh.o libF77/.libs/d_sqrt.o libF77/.libs/d_tan.o libF77/.libs/d_tanh.o libF77/.libs/i_abs.o libF77/.libs/i_dim.o libF77/.libs/i_dnnt.o libF77/.libs/i_indx.o libF77/.libs/i_len.o libF77/.libs/i_mod.o libF77/.libs/i_nint.o libF77/.libs/i_sign.o libF77/.libs/h_abs.o libF77/.libs/h_dim.o libF77/.libs/h_dnnt.o libF77/.libs/h_indx.o libF77/.libs/h_len.o libF77/.libs/h_mod.o libF77/.libs/h_nint.o libF77/.libs/h_sign.o libF77/.libs/l_ge.o libF77/.libs/l_gt.o libF77/.libs/l_le.o libF77/.libs/l_lt.o libF77/.libs/hl_ge.o libF77/.libs/hl_gt.o libF77/.libs/hl_le.o libF77/.libs/hl_lt.o libF77/.libs/ef1asc_.o libF77/.libs/ef1cmc_.o libF77/.libs/s_cat.o libF77/.libs/s_cmp.o libF77/.libs/s_copy.o libF77/.libs/lbitbits.o libF77/.libs/lbitshft.o libF77/.libs/qbitbits.o libF77/.libs/qbitshft.o libI77/.libs/VersionI.o libI77/.libs/backspace.o libI77/.libs/close.o libI77/.libs/dfe.o libI77/.libs/dolio.o libI77/.libs/due.o libI77/.libs/endfile.o libI77/.libs/err.o libI77/.libs/fmt.o libI77/.libs/fmtlib.o libI77/.libs/iio.o libI77/.libs/ilnw.o libI77/.libs/inquire.o libI77/.libs/lread.o libI77/.libs/lwrite.o libI77/.libs/open.o libI77/.libs/rdfmt.o libI77/.libs/rewind.o libI77/.libs/rsfe.o libI77/.libs/rsli.o libI77/.libs/rsne.o libI77/.libs/sfe.o libI77/.libs/sue.o libI77/.libs/typesize.o libI77/.libs/uio.o libI77/.libs/util.o libI77/.libs/wref.o libI77/.libs/wrtfmt.o libI77/.libs/wsfe.o libI77/.libs/wsle.o libI77/.libs/wsne.o libI77/.libs/xwsne.o libI77/.libs/ftell_.o libU77/.libs/VersionU.o libU77/.libs/gerror_.o libU77/.libs/perror_.o libU77/.libs/ierrno_.o libU77/.libs/itime_.o libU77/.libs/time_.o libU77/.libs/unlink_.o libU77/.libs/fnum_.o libU77/.libs/getpid_.o libU77/.libs/getuid_.o libU77/.libs/getgid_.o libU77/.libs/kill_.o libU77/.libs/rand_.o libU77/.libs/srand_.o libU77/.libs/irand_.o libU77/.libs/sleep_.o libU77/.libs/idate_.o libU77/.libs/ctime_.o libU77/.libs/etime_.o libU77/.libs/dtime_.o libU77/.libs/isatty_.o libU77/.libs/ltime_.o libU77/.libs/fstat_.o libU77/.libs/stat_.o libU77/.libs/lstat_.o libU77/.libs/access_.o libU77/.libs/link_.o libU77/.libs/getlog_.o libU77/.libs/ttynam_.o libU77/.libs/getcwd_.o libU77/.libs/symlnk_.o libU77/.libs/vxttime_.o libU77/.libs/vxtidate_.o libU77/.libs/gmtime_.o libU77/.libs/fdate_.o libU77/.libs/secnds_.o libU77/.libs/chdir_.o libU77/.libs/chmod_.o libU77/.libs/lnblnk_.o libU77/.libs/hostnm_.o libU77/.libs/rename_.o libU77/.libs/fgetc_.o libU77/.libs/fputc_.o libU77/.libs/umask_.o libU77/.libs/sys_clock_.o ld: 0711-736 ERROR: Input file libE77/.libs/Labort.o: XCOFF64 object files are not allowed in 32-bit mode. make[5]: *** [libg2c.la] Error 8 make[5]: Leaving directory `/mydir/tools/gcc.3.4.3/powerpc-ibm-aix5.2.0.0/pthread/ppc64/libf2c' make[4]: *** [all-unilib] Error 2 make[4]: Leaving directory `/mydir/tools/gcc.3.4.3/powerpc-ibm-aix5.2.0.0/pthread/ppc64/libf2c' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/mydir/tools/gcc.3.4.3/powerpc-ibm-aix5.2.0.0/libf2c' make[2]: *** [all] Error 2 make[2]: Leaving directory `/mydir/tools/gcc.3.4.3/powerpc-ibm-aix5.2.0.0/libf2c' make[1]: *** [all-target-libf2c] Error 2 make[1]: Leaving directory `/mydir/tools/gcc.3.4.3' make: *** [bootstrap] Error 2