Building a cross-compiler for powerpc-eabi

Rask Ingemann Lambertsen rask@sygehus.dk
Fri Jun 15 19:40:00 GMT 2007


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



More information about the Gcc-help mailing list