Aurelien Buhrig <aurelien.buhrig.gcc@xxxxxxxxx> writes: > I'm trying to build mainline to test patches on various targets. I > successfully compiled it on RHEL5 x86_64 for m68k-elf target and bootstrap. > But I cannot build it for powerpc64-linux target. It fails compiling > libgcc due to missing libc headers. > > Configured with --with-newlib --enable-languages=c > --target=powerpc64-linux --with-gmp=[...] --with-mpfr=[...] --with-mpc=[...] > > Any idea how I can make it work? Building a cross-compiler to a GNU/Linux target is complex. There are various scripts out there that can help. Try looking at http://crosstool-ng.org/ . Ian