This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Building a cross-compiler for powerpc-eabi
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: Timo Kerstan <timo dot kerstan at uni-paderborn dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 15 Jun 2007 20:19:30 +0200
- Subject: Re: Building a cross-compiler for powerpc-eabi
- References: <AA09BE28-3ABD-4167-8BCC-220A5F6F41B3@uni-paderborn.de>
On Fri, Jun 15, 2007 at 09:50:42AM +0200, Timo Kerstan wrote:
> Hello there,
>
> Can anyone tell me how to properly do this?
> I tried this http://www.ifp.uiuc.edu/~nakazato/tips/xgcc.html
> But it doesn't work using binutils 2.17, gcc 4.1.2 and newlib 1.15.0...
It works for me with a combined tree. Here's exactly how I did:
$ cd ~/src
$ wget http://ftp.download-by.net/gnu/gnu/binutils/binutils-2.17.tar.bz2 -O - | tar -jxf -
$ wget http://ftp.download-by.net/gnu/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 -O - | tar -jxf -
$ wget http://ftp.download-by.net/gnu/gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2 -O - | tar -jxf -
$ wget http://ftp.download-by.net/gnu/gnu/gcc/gcc-4.1.2/gcc-objc-4.1.2.tar.bz2 -O - | tar -jxf -
$ wget ftp://sources.redhat.com/pub/newlib/newlib-1.15.0.tar.gz -O - | tar -zxf -
$ mkdir combined
$ cd combined
$ ln -s ../gcc-4.1.2/* .
$ ln -s ../binutils-2.17/* .
[several complaints from ln about existing links]
$ ln -s ../newlib-1.15.0/* .
[several complaints from ln about existing links]
$ cd ../..
$ mkdir testbuild
$ cd testbuild
$ ../src/combined/configure --target=powerpc-eabi --disable-nls --with-newlib --prefix=/usr/local/gcc
$ time nice make
[...]
real 132m26.081s
user 68m57.928s
sys 57m32.501s
--
Rask Ingemann Lambertsen