target of cross compile : problem in make (newbie)

Ian Lance Taylor
Wed Mar 24 20:26:00 GMT 2004

"sting sting" <> writes:

> if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
> /home/ffami/src/build-gcc/gcc/xgcc -B/home/ffami/src/build-gcc/gcc/
> -B/usr/local/powerpc-elf/bin/ -B/usr/local/powerpc-elf/lib/ -isystem
> /usr/local/powerpc-elf/include -O2  -DIN_GCC -DCROSS_COMPILE   -W
> -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
> -isystem ./include  -g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED
> -Dinhibit_libc -I. -I. -I../../gcc-3.3.2/gcc
> -I../../gcc-3.3.2/gcc/. -I../../gcc-3.3.2/gcc/config
> -I../../gcc-3.3.2/gcc/../include  -mrelocatable-lib -mno-eabi
> -mstrict-align -DL_muldi3 -c ../../gcc-3.3.2/gcc/libgcc2.c -o
> libgcc/./_muldi3.o
> as: unrecognized option `-mppc'
> make[2]: *** [libgcc/./_muldi3.o] Error 1
> make[2]: Leaving directory `/home/ffami/src/build-gcc/gcc'
> make[1]: *** [stmp-multilib] Error 2
> make[1]: Leaving directory `/home/ffami/src/build-gcc/gcc'
> make: *** [all-gcc] Error 2
> Any idea?
> any help will be appreciated.

You are building a cross-compiler, so you need a cross-assembler.  gcc
didn't find a cross-assembler, so it tried to use the native assembler
on your system, which failed.

Building a cross-compiler is a slightly tedious exercise.  I'm afraid
I can't help you walk through it.  I think there are various FAQs out
there on how to do it.


More information about the Gcc-help mailing list