From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15171 invoked by alias); 30 Nov 2004 14:59:34 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 15117 invoked from network); 30 Nov 2004 14:59:24 -0000 Received: from unknown (HELO mx.laposte.net) (81.255.54.11) by sourceware.org with SMTP; 30 Nov 2004 14:59:24 -0000 Received: from [192.168.5.10] (194.133.14.20) by mx.laposte.net (7.0.028) (authenticated as jean-francois.morcillo) id 419DCC93008604A0 for gcc-help@gcc.gnu.org; Tue, 30 Nov 2004 15:59:24 +0100 Subject: problem cross-compiling gcc 3.4.3 from x86/linux to ppc604/vxWorks From: =?ISO-8859-1?Q?Jean-Fran=E7ois?= Morcillo Reply-To: j_f@laposte.net To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-15 Date: Tue, 30 Nov 2004 14:59:00 -0000 Message-Id: <1101826391.4903.64.camel@jfmorcillo.sdcgemenos.local> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-SW-Source: 2004-11/txt/msg00208.txt.bz2 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