This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Issue building cross powerpc64-linux
- From: Ian Lance Taylor <iant at google dot com>
- To: Aurelien Buhrig <aurelien dot buhrig dot gcc at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 23 Mar 2012 11:16:50 -0700
- Subject: Re: Issue building cross powerpc64-linux
- References: <4F6CA587.6010607@gmail.com>
Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com> 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