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]

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


Hi,

thanks for your hint.  Sorry, i mistyped it in this mail, but
i gave the same options to binutils and gcc.

> > Can anybody give me some more hints on how to set up a cross toolchain
> > for powerpc-unknown-elf?
>
> Use the same --prefix configure option for both binutils and gcc.

I configured binutils:

# This directory was configured as follows,
# on host schleim:
#
# ../binutils-2.15/configure  --target=powerpc-unknown-elf \
# --prefix=/opt/powerpc-unknown-elf

With this little script i try to build gcc-core (The binutils for ppc are
in the PATH):

#! /bin/bash

[ -d bgcc ] && rm -rf bgcc
mkdir bgcc
cd bgcc
../gcc-3.4.1/configure \
--target=powerpc-unknown-elf \
--prefix=/opt/powerpc-linux


Still, i get this message:
...
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



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]