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

Patrick LERDA

> -----Message d'origine-----
> De:   David N. Welton [SMTP:[EMAIL PROTECTED]
> Date: lundi 10 avril 2000 20:28
> À:    debian-powerpc@lists.debian.org
> Cc:   [EMAIL PROTECTED]
> Objet:        Re: i386->powerpc cross compiler
> 
> On Mon, Apr 10, 2000 at 04:00:08PM +0200, Patrick Lerda wrote:
> > I've generated a powerpc gcc 2.95.2 crosscompiler on an i386 platform
> > without any problems.
> > And I use binutils-2.9.5.0.16
> > 
> > try:
> > #!/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"
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> What is the story with these two bits?  I am having trouble because
> it's not finding:
> 
> ./libgcc2.c:41: stdlib.h: No such file or directory
> ./libgcc2.c:42: unistd.h: No such file or directory
> 
> which seems odd.  
> 
> Ciao,
> -- 
> David N. Welton, Responsabile Progetti Open Source, Linuxcare Italia spa
> tel +39.049.8043411 fax +39.049.8043412 cel +39.348.2879508
> [EMAIL PROTECTED], http://www.linuxcare.com/
> Linuxcare. Support for the revolution.

Reply via email to