powerpc cross-compiler build failing
Rob Ouellette
rouellet@ebmail.gdeb.com
Tue Jun 26 09:43:00 GMT 2001
Hello,
Please forgive the novice question(plea for help)..
I'm trying to build a cross-compiler on a SPARC host that will
work for a SPARC(sun solaris 2.6) and for a PowerPC 604 (vxworks)
target. I was able to build the SPARC compiler but not the
PowerPC compiler. I did the following in an attempt to build the
PowerPC compiler:
1.
/files/gnu-3.0/configure --prefix=/apps/gnu3/powerpc
--host=sparc-sun-solaris2.6 --target='powerpc-motorola-eabi'
(note: also tried "elf").
2.
make (gnu make from /apps/gnu3/powerpc directory)
"make" fails with the following output:
/apps/gnu3/powerpc/gcc/xgcc -B/apps/gnu3/powerpc/gcc/
-B/apps/gnu3/powerpc/powerpc-motorola-eabi/bin/
-B/apps/gnu3/powerpc/powerpc-motorola-eabi/lib/ -isystem
/apps/gnu3/powerpc/powerpc-motorola-eabi/include -O2
-DCROSS_COMPILE -DIN_GCC -DSVR4 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -isystem ./include
-g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I.
-I/files2/gcc-3.0/gcc -I/files2/gcc-3.0/gcc/.
-I/files2/gcc-3.0/gcc/config -I/files2/gcc-3.0/gcc/../include
-mrelocatable-lib -mno-eabi -mstrict-align -DL_muldi3 -c
/files2/gcc-3.0/gcc/libgcc2.c -o libgcc/./_muldi3.o
as: error: unknown option 'p'
as: error: unknown option 'p'
as: error: unknown option 'e'
as: error: unknown option 'l'
usage: as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
[-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
[-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
[-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8]
[-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] file.s...
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/apps/gnu3/powerpc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/apps/gnu3/powerpc/gcc'
make: *** [all-gcc] Error 2
I'm not sure if I'm doing something wrong or what my options are
at this point. Any advice is welcome and greatly appreciated..
Thanks,
-rob
The SPARC compiler built fine using the following:
1.
/files/gnu-3.0/configure --prefix=/apps/gnu3/sparc
--host=sparc-sun-solaris2.6 --target=sparc-sun-solaris2.6
2.
make bootstrap (gnu make from within the /apps/gnu3/sparc
directory)
3.
make install (gnu make from within the /apps/gnu3/sparc
directory)
More information about the Gcc-help
mailing list