Problems getting cross compile environment working.

Ryan Braby braby1 at
Tue Mar 18 08:57:48 EST 2003


I've been trashing around for a few days now trying to get a cross
environment working to build a powerpc64 linux kernel under Mac OS X.

I've been following this script as instructions:

Doing this I've been able to build a 64 bit cross compiler, but I
managed to build the 32 bit cross compiler.  I keep getting errors like

../../gcc-3.2.2/gcc/config/rs6000/linux.h:81:20: signal.h: No such file
or directory
../../gcc-3.2.2/gcc/config/rs6000/linux.h:82:26: sys/ucontext.h: No
such file or directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2

I've done a lot of searching on mailing lists and on the web for the
but haven't found a satisfactory answer yet.

It appears that perhaps the issue is a requirement for some glibc
headers for
the target platform (powerpc-linux).  However, as I understand it,
cross compiling
glibc requires that you have a working cross compiler.  How would one
go about
getting the required headers?  Is there a simpler solution that I'm

Ryan Braby

P.S.  Anton thanks for making your patches and the buildit script

** Sent via the linuxppc64-dev mail list. See

More information about the Linuxppc64-dev mailing list