Hi, Here's a report of a successful build and install of GCC:
$ gcc-7.2.0/config.guess powerpc64-unknown-linux-gnu $ newcompiler/bin/gcc -v Using built-in specs. COLLECT_GCC=newcompiler/bin/gcc COLLECT_LTO_WRAPPER=/home/aaro/gcctest/newcompiler/libexec/gcc/powerpc-unknown-linux-gnu/7.2.0/lto-wrapper Target: powerpc-unknown-linux-gnu Configured with: ../gcc-7.2.0/configure --with-cpu-32=G4 --with-cpu-64=G5 --enable-targets=powerpc64-unknown-linux-gnu --disable-nls --prefix=/home/aaro/gcctest/newcompiler --enable-languages=c,c++ --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu --with-system-zlib --with-sysroot=/ Thread model: posix gcc version 7.2.0 (GCC) -- Build environment ---------------------------------------------------------- host: g5-xserve-c distro: los.git rootfs=f834d native=f834d kernel: Linux 4.12.0-g5-los_f834d binutils: GNU binutils 2.29 make: GNU Make 4.2.1 libc: GNU C Library (GNU libc) stable release version 2.25 zlib: 1.2.11 mpfr: 3.1.3 gmp: 60102 -- Time consumed -------------------------------------------------------------- configure: real 0m 7.94s user 0m 7.02s sys 0m 3.26s bootstrap: real 5h 47m 14s user 10h 33m 08s sys 24m 6.64s install: real 0m 25.49s user 0m 17.77s sys 0m 21.50s -- Hardware details ----------------------------------------------------------- MemTotal: 8070196 kB processor : 0 cpu : PPC970FX, altivec supported clock : 2300.000000MHz revision : 3.0 (pvr 003c 0300) processor : 1 cpu : PPC970FX, altivec supported clock : 2300.000000MHz revision : 3.0 (pvr 003c 0300) timebase : 33333333 platform : PowerMac model : RackMac3,1 machine : RackMac3,1 motherboard : RackMac3,1 MacRISC4 Power Macintosh detected as : 339 (XServe G5) pmac flags : 00000000 L2 cache : 512K unified pmac-generation : NewWorld A.