Hi, Here's a report of a successful build and install of GCC:
$ gcc-7.3.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.3.0/lto-wrapper Target: powerpc-unknown-linux-gnu Configured with: ../gcc-7.3.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.3.0 (GCC) -- Build environment ---------------------------------------------------------- host: g5-xserve-c distro: los.git rootfs=4642f native=4642f kernel: Linux 4.16.0-rc5-g5-los_4642f-00004-gb2880b2 binutils: GNU binutils 2.30 make: GNU Make 4.2.1 libc: GNU C Library (GNU libc) stable release version 2.27. zlib: 1.2.11 mpfr: 4.0.1 gmp: 60102 -- Time consumed -------------------------------------------------------------- configure: real 0m 5.15s user 0m 3.22s sys 0m 2.76s bootstrap: real 5h 39m 06s user 10h 15m 17s sys 25m 30.95s install: real 0m 25.90s user 0m 16.96s sys 0m 22.72s -- Hardware details ----------------------------------------------------------- MemTotal: 8070444 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.