> >>>>> Bradley Lucier writes: > Brad> 4.2 hasn't bootstrapped on powerpc-apple-darwin G5 machine for a very > Brad> long time. I'm seeing the same problem as > Brad> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27121 > Brad> It would be nice if this were remedied. I do try to test gcc > Brad> versions before release. > > For the time-being, you can bootstrap with --disable-multilib. > The real solution requires Apple to provide an updated cctools with a > working ld64.
Hi, FWIW, the 20060415 mainline (4.2) snapshot bootstrapped for me, using odcctools-20060413 (odcctools-590.36od13). This machine is a dual G5 (ppc970) using OS X 10.3.9, and Apple's gcc-3.3 (build 1640). However, before building, I patched the following 2 files: In gcc/config/darwin.h: at: #define LINK_COMMAND_SPEC : replace: /usr/bin/libtool with: /path/to/odcctools/bin/libtool In libstdc++-v3/scripts/make_exports.pl (for OS X 10.3 only): replace: nm -P with: /path/to/odcctools/bin/nm -P (probably not necessary if this nm is already found first in path) Configure command (your paths may vary): ../configure --prefix=/Users/fang/local/gcc-4.2 \ --program-suffix=-4.2 \ --disable-nls \ --with-gmp=/sw \ --with-mpfr=/sw \ --infodir='${prefix}/share/info' \ --with-included-gettext \ --host=powerpc-apple-darwin`uname -r|cut -f1 -d.` \ `if test ! -f /usr/lib/libSystemStubs.a ; then echo -n "--with-as=/Users/fang/lib/odcctools/bin/as --with-ld=/Users/fang/lib/odcctools/bin/ld" ; fi` The default languages enabled are c,c++,java,fortran,objc according to configure. I also made sure all the odcctools came first in my path, a blunder I made earlier. GMP 4.1.4 and MPFR are installed in /sw. It might not hurt to add a few hints to http://gcc.gnu.org/install/specific.html#powerpc-x-darwin since I (and several other PR reporters) also had trouble bootstrapping 4.2 a while back. Many thanks to all who help maintain the powerpc-apple-darwin port. Fang