powerpc-linux-gnu cross compiler can't be built
Daniel Jacobowitz
drow@mvista.com
Fri Mar 7 19:46:00 GMT 2003
On Fri, Mar 07, 2003 at 09:56:32AM -0800, David Ashley wrote:
> I built gcc-3.2.2 as a native compiler and installed it on my system,
> with exactly the same result (fails in an rs6000.h include file).
>
> So as a hack I commented out the 2 offending include statements, and then
> the build goes much further, then fails with this:
> mkdir libgcc
> mkdir nof
> mkdir libgcc/nof
> if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
> /tmp/gcc-3.2.2/ppc/gcc/xgcc -B/tmp/gcc-3.2.2/ppc/gcc/ -B/usr/local/ppc-elf-linux/bin/ -B/usr/local/ppc-elf-linux/lib/ -isystem /usr/local/ppc-elf-linux/include -O2 -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -fPIC -mstrict-align -DL_muldi3 -c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
> as: unrecognized option `-mppc'
> make[2]: *** [libgcc/./_muldi3.o] Error 1
> make[2]: Leaving directory `/tmp/gcc-3.2.2/ppc/gcc'
> make[1]: *** [stmp-multilib] Error 2
> make[1]: Leaving directory `/tmp/gcc-3.2.2/ppc/gcc'
> make: *** [all-gcc] Error 2
>
> Note regarding Daniel's comment:
> >You need to tell GCC where glibc's headers are.
> >...
> >Daniel Jacobowitz
> >MontaVista Software Debian GNU/Linux Developer
>
> Thanks! I don't know if the -mppc problem can be explained by missing
> headers though...
You also need to tell GCC to use a PowerPC assembler instead of your
system assembler. Have you installed binutils with the same prefix and
--target? If so, it should be automatic.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
More information about the Gcc-bugs
mailing list