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

RE: i386->powerpc cross compiler



I've compiled gcc 2.95.2 a long time ago without too much problems. Today
it's still working...
And I can compile a powerpc kernel on an i586 box...

I've compiled PowerPC gcc 2.95.2, with gcc 2.95.2 i386, and I don't remember
such problems.

Patrick LERDA




> -----Message d'origine-----
> De:	David N. Welton [SMTP:davidw@linuxcare.com]
> Date:	mardi 11 avril 2000 13:31
> À:	Patrick Lerda
> Cc:	debian-powerpc@lists.debian.org
> Objet:	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
> difference.
> 
> 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: