This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building a cross-compiler for powerpc-eabi



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

/Users/morpheus/Documents/Software/gcc/testbuild/./binutils/ar rc ../ libc.a *.o
/Users/morpheus/Documents/Software/gcc/testbuild/./binutils/ranlib libc.a
ln libc.a libg.a >/dev/null 2>/dev/null || cp libc.a libg.a
rm -rf tmp
Making all in libc
make[4]: *** No rule to make target `all'. Stop.
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-target-newlib] Error 2
make: *** [all] Error 2


There it is again.... I did it exactly like you did. I'm wondering if the make tools on OS X could be the problem.... I'm using the

Timo


Attachment: smime.p7s
Description: S/MIME cryptographic signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]