I need help building a powerpc-unknown-eabispe cross compiler
Rask Ingemann Lambertsen
rask@sygehus.dk
Tue Jan 2 20:17:00 GMT 2007
I want to build a cross compiler with powerpc-unknown-eabispe as target
and i686-pc-linux-gnu as host. If I configure it like this (all on one line)
../../src/gcc/configure --enable-sim --with-newlib --disable-nls
--enable-e500_double --prefix=${HOME} --enable-checking=yes,rtl
--disable-threads --disable-shared --without-long-double-128
--target=powerpc-unknown-eabispe
in a combined tree with gcc, binutils, gdb and newlib, the build fails
compiling libgcc2:
/home/rask/build/gcc-ppc/./gcc/xgcc -B/home/rask/build/gcc-ppc/./gcc/ -nostdinc -B/home/rask/build/gcc-ppc/powerpc-unknown-eabispe/newlib/ -isystem /home/rask/build/gcc-ppc/powerpc-unknown-eabispe/newlib/targ-include -isystem /home/rask/src/gcc/newlib/libc/include -B/home/rask/powerpc-unknown-eabispe/bin/ -B/home/rask/powerpc-unknown-eabispe/lib/ -isystem /home/rask/powerpc-unknown-eabispe/include -isystem /home/rask/powerpc-unknown-eabispe/sys-include -L/home/rask/build/gcc-ppc/./ld -O2 -O2 -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -specs=ldblspecs -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../../../src/gcc/gcc -I../../../src/gcc/gcc/. -I../../../src/gcc/gcc/../include -I../../../src/gcc/gcc/../libcpp/include -I../../../src/gcc/gcc/../libdecnumber -I../libdecnumber -DL_powitf2 -c ../../../src/gcc/gcc/libgcc2.c -o libgcc/./_powitf2.o
../../../src/gcc/gcc/libgcc2.c: In function '__powitf2':
../../../src/gcc/gcc/libgcc2.c:1735: internal compiler error: in gen_reg_rtx, at emit-rtl.c:770
What is a know good way of doing it?
FWIW, I also tried with --target=powerpc-none-linux-gnuspe, which builds
libgcc2 fine, but then target libiberty fails because I don't have the
header files it needs.
--
Rask Ingemann Lambertsen
More information about the Gcc-help
mailing list