This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

powerpc cross compiler on i686 linux


I've been trying to build a powerpc cross compiler on
my PC running Linux so I can compile powerpc linux kernels.

I've built and installed the cross binutils.

I can't get gcc to build because it keeps wanting the unistd.h and
other header files I suppose are from glibc or newlib.

I've been looking through the cross gcc FAQ and have tried some
of the suggestions to no avail.  I even tried defining inhibit_libc.
It stops on libgcc2.c and frame.c for starters.

I am willing to use glibc to build the compiler but all the FAQ
references newlib.

Heres the last configure I tried:

../gcc-2.95.3/configure --prefix=/drives/sg3/ppc-tools
--exec-prefix=/drives/sg3/ppc-tools/ --program-prefix=powerpc-linux-gnu-
--target=powerpc-linux-gnu
--with-as=/drives/sg3/ppc-tools/bin/powerpc-linux-gnu-as
--with-ld=/drives/sg3/ppc-tools/bin/powerpc-linux-gnu-ld

What am I missing?

-- 
Fred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]