This is the mail archive of the gcc@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]
Other format: [Raw text]

--target=powerpc-unknown-elf, binutils-2.15?


Hi,

i try to set up a toolchain for powerpc-unknown-elf.

I installed binutils-2.15 (--target=powerpc-unknown-elf)
for this.
I configured gcc-core-3.4.1 with --prefix=powerpc-unknown-elf \
--prefix=/opt/powerpc-unknown-elf

When i now try to compile gcc-core-3.4.1, i get:

...
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/rest/tmp/bgcc/gcc/xgcc -B/rest/tmp/bgcc/gcc/ 
-B/opt/powerpc-linux/powerpc-unknown-elf/bin/ 
-B/opt/powerpc-linux/powerpc-unknown-elf/lib/ 
-isystem /opt/powerpc-linux/powerpc-unknown-elf/include 
-isystem /opt/powerpc-linux/powerpc-unknown-elf/sys-include -O2  -DIN_GCC 
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g  
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. 
-I../../gcc-3.4.1/gcc -I../../gcc-3.4.1/gcc/. 
-I../../gcc-3.4.1/gcc/../include   -mrelocatable-lib -mno-eabi -mstrict-align 
-DL_muldi3 -c ../../gcc-3.4.1/gcc/libgcc2.c -o libgcc/./_muldi3.o
as: Unbekannte Option »-mppc«
make[2]: *** [libgcc/./_muldi3.o] Fehler 1
make[2]: Leaving directory `/rest/tmp/bgcc/gcc'
make[1]: *** [stmp-multilib] Fehler 2
make[1]: Leaving directory `/rest/tmp/bgcc/gcc'
make: *** [all-gcc] Fehler 2

schleim:/rest/tmp/bgcc # type powerpc-unknown-elf-as
powerpc-unknown-elf-as is /opt/powerpc-unknown-elf/bin/powerpc-unknown-elf-as

Do i need to pass some more options to binutils so that it recognizes
"-mppc"?

Is it ok to use binutils-2.15 and gcc-core-3.4.1 together?

Can anybody give me some more hints on how to set up a cross toolchain
for powerpc-unknown-elf?


Thanks for any hints,
Torsten.


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