* problem cross-compiling gcc 3.4.3 from x86/linux to ppc604/vxWorks
@ 2004-11-30 14:59 Jean-François Morcillo
0 siblings, 0 replies; only message in thread
From: Jean-François Morcillo @ 2004-11-30 14:59 UTC (permalink / raw)
To: gcc-help
Hello,
First, let me apologize for my poor English.
As said in the subject, I can't achieve to cross-compile gcc...
1- I used the following command to both configure and compile:
../gcc-3.4.3/configure --prefix=/home/jf/cross --program-prefix=powerpc-
wrs-vxworks- --with-cpu=604 --target=powerpc-wrs-vxworks --with-
sysroot=/home/jf/Desktop/gcc/VXWORKS --enable-languages=c,f77 2>&1 | tee
gcc-configure.log ; make 2>&1 | tee gcc-make.log
2- After a while I get the following error:
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/home/jf/Desktop/gcc/gcc-build/gcc/xgcc -B/home/jf/Desktop/gcc/gcc-
build/gcc/ -B/home/jf/cross/powerpc-wrs-vxworks/bin/ -
B/home/jf/cross/powerpc-wrs-vxworks/lib/ -
isystem /home/jf/cross/powerpc-wrs-vxworks/include -
isystem /home/jf/cross/powerpc-wrs-vxworks/sys-include -O2 "-
I/home/jf/Desktop/gcc/VXWORKS/usr/include" -DIN_GCC -DCROSS_COMPILE -W
-Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-
style-definition -isystem ./include -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../gcc-3.4.3/gcc -
I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../include -DL_muldi3 -
c ../../gcc-3.4.3/gcc/libgcc2.c -o libgcc/./_muldi3.o
In file included
from /home/jf/Desktop/gcc/VXWORKS/usr/include/types/vxANSI.h:44,
from /home/jf/Desktop/gcc/gcc-
build/gcc/include/stdio.h:66,
from ../../gcc-3.4.3/gcc/tsystem.h:79,
from ../../gcc-3.4.3/gcc/libgcc2.c:41:
/home/jf/Desktop/gcc/gcc-build/gcc/include/types/vxCpu.h:211:2: #error
CPU is not defined correctly
In file included from ./tm.h:10,
from ../../gcc-3.4.3/gcc/libgcc2.c:43:
../../gcc-3.4.3/gcc/config/vxworks.h:46:1: warning: "HANDLE_SYSV_PRAGMA"
redefined
In file included from ./tm.h:6,
from ../../gcc-3.4.3/gcc/libgcc2.c:43:
../../gcc-3.4.3/gcc/config/elfos.h:67:1: warning: this is the location
of the previous definition
make[2]: *** [libgcc/./_muldi3.o] Erreur 1
make[2]: Leaving directory `/home/jf/Desktop/gcc/gcc-build/gcc'
make[1]: *** [stmp-multilib] Erreur 2
make[1]: Leaving directory `/home/jf/Desktop/gcc/gcc-build/gcc'
make: *** [all-gcc] Erreur 2
3- I looked into the vxCpu.h file an found:
#if !defined(__CPU__) || !defined(__CPU_FAMILY__)
#error CPU is not defined correctly
#endif
4- I tried to add (I know it's durty ;-)
#define PPC604 94
#define CPU_FAMILY 90
just before the #if but things didn't get fine...
What is really confusing me is that I received the same error later in
the build process
Can anybody tell me what a mess I'm folling into ?
regards,
Jean-François
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-30 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 14:59 problem cross-compiling gcc 3.4.3 from x86/linux to ppc604/vxWorks Jean-François Morcillo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).