[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: i386->powerpc cross compiler

On Tue, Apr 11, 2000 at 09:11:28AM +0200, Patrick Lerda wrote:

> You must install PowerPC includes files in
> "/usr/powerpc-unknown-linux/include", and also
> compile binutils with similar options.

Here is my configure:

./configure --target=powerpc-unknown-linux --prefix=/home/davidw/crossgcc --with-libs=/home/davidw/crossgcc/usr/lib/ --with-includes=/home/davidw/crossgcc/usr/include/
I put libc6-dev stuff under /home/davidw/crossgcc/

It does not work.

> > > #!/bin/sh
> > > CFLAGS=-O6 CXXFLAGS=-O6 /usr/src/gcc-2.95.2/configure --prefix=/usr \
> > > --host=i586-unknown-linux --build=i586-unknown-linux \
> > > --target=powerpc-unknown-linux \
> > > --with-cpu=603e \
> > > --with-headers="/usr/powerpc-unknown-linux/include" \
> > > --with-libs="/usr/powerpc-unknown-linux/lib"

I tried adding the 'host' and 'build' options, but they don't make any

It fails with:

checking whether the C compiler (/home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/xgcc -B/home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/ -g -O2 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make[1]: Entering directory `/home/davidw/download/gcc-2.95.2/gcc-2.95.2/powerpc-unknown-linux/libio'
test x"no" != xyes ||\
  /home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/xgcc -B/home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO  iogetline.c -o pic/iogetline.o
/home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/xgcc -B/home/davidw/download/gcc-2.95.2/gcc-2.95.2/gcc/ -B/home/davidw/crossgcc/powerpc-unknown-linux/bin/ -c -g -O2 -I. -I. -D_IO_MTSAFE_IO iogetline.c
In file included from iogetline.c:26:
libioP.h:30: errno.h: No such file or directory
In file included from iolibio.h:1,
                 from libioP.h:47,
                 from iogetline.c:26:
libio.h:30: _G_config.h: No such file or directory
iogetline.c:27: string.h: No such file or directory
make[1]: *** [iogetline.o] Error 1
make[1]: Leaving directory `/home/davidw/download/gcc-2.95.2/gcc-2.95.2/powerpc-unknown-linux/libio'

Any ideas? Thanks:-)
David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
davidw@linuxcare.com, http://www.linuxcare.com/
Linuxcare. Support for the revolution.

Reply to: