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

RE: i386->powerpc cross compiler



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:davidw@linuxcare.com]
> Date:	lundi 10 avril 2000 20:28
> À:	debian-powerpc@lists.debian.org
> Cc:	Lerda@microprocess.com
> 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
> davidw@linuxcare.com, http://www.linuxcare.com/
> Linuxcare. Support for the revolution.


Reply to: