This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

can gcc 4.3.2 be compiled with -m64 on powerpc Mac?


Still here. I'm trying to compile gcc 4.3.2 on my G5 Mac which is a 64- bit machine and am getting hung up with the error:

/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: truncated or malformed archive: ../build-powerpc-apple-darwin8.11.0/libiberty/ libiberty.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)
collect2: ld returned 1 exit status
make[3]: *** [build/genmodes] Error 1
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2


I saw in the archives for this list that someone else built 4.3.1 on an iMac using 32-bit options, which they also used for their gmp and mpfr libs. My gmp and mpfr libs have been built with -m64 -mcpu=970 and I have a 64-bit machine. Can I not build gcc using the -m64 CFLAG? Am I having trouble because some of my Apple libs are built for 32-bit?

Also, why is the libiberty.a lib in my <build-dir>/libiberty/ dir different from the one in the <build-dir>/build-powerpc-apple- darwin8.11.0/libiberty/ directory? (checked using nm)

thanks, Yolande


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]