This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cross GCC for PowerPC target using gcc-3.0.2 or any gcc that works


Hi Joel and fellow crossgcc'ers,

I am trying to build a cross-compiler for the following scenario:
1. HOST = BUILD = Linux on a x86
2. Target  = MVME2101 (i.e. PowerPC 603e a.k.a MPC8240)
3. The operating system (i.e. BSP) running on the target is vxWorks 5.4.2

I am using the source distribution of the following packages:
1. binutils-2.11.2
1.1 the configure used for binutils--
--------------------------------------------------------------------------
/usr/local/src/binutils-2.11.2/configure \
--prefix=/usr/local/crossgcc-3.0.2/ppc \
--target=powerpc-wrs-vxworks
---------------------------------------------------------------------------


2. gcc-3.0.2
2.1 the configure used for gcc-3.0.2 --
--------------------------------------------------------------------
/usr/local/src/gcc-3.0.2/configure --prefix=/usr/local/crossgcc-3.0.2/ppc \ 
--target=powerpc-wrs-vxworks \
--with-headers=/usr/local/include/vxWorks/ppc --enable-languages=c,c++ \
--with-gnu-ld --with-gnu-as --with-cpu=603
---------------------------------------------------------------------------

As always binutils compiles and installs properly.
However, as usual always a problem with compiling gcc as a cross-compiler!!!

I have already tried gcc-2.95.3 and gcc-3.0.1.

I thought maybe for once all of the necessary fixes would be in the
gcc-3.0.2 release.

Could you please tell me the secret to get this cross going?
I have already been on the crossgcc site numerous times.  Well enough
of my bickering.  
Have you done a successful cross with gcc-3.0.2?
Please help with the following error.

****************************************************************************
/usr/local/crossgcc-3.0.2/ppc/powerpc-wrs-vxworks/include -O2  -DCROSS_COMPILE 
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-isystem ./include   -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED  -I. -I. -I/usr/local/src/gcc-3.0.2/gcc 
-I/usr/local/src/gcc-3.0.2/gcc/. -I/usr/local/src/gcc-3.0.2/gcc/config 
-I/usr/local/src/gcc-3.0.2/gcc/../include  -mrelocatable-lib -mno-eabi 
-mstrict-align -DL_muldi3 -c /usr/local/src/gcc-3.0.2/gcc/libgcc2.c -o 
libgcc/./_muldi3.o
In file included from 
/usr/local/crossgcc-3.0.2/ppc/powerpc-wrs-vxworks/sys-include/types/vxANSI.h:4
4,
                 from /usr/local/obj/gcc3.0.2-ppc/gcc/include/stdio.h:66,
                 from /usr/local/src/gcc-3.0.2/gcc/tsystem.h:63,
                 from /usr/local/src/gcc-3.0.2/gcc/libgcc2.c:37:
/usr/local/obj/gcc3.0.2-ppc/gcc/include/types/vxCpu.h:209:2: #error CPU is not 
defined correctly
gmake[2]: *** [libgcc/./_muldi3.o] Error 1
gmake[2]: Leaving directory `/usr/local/obj/gcc3.0.2-ppc/gcc'
gmake[1]: *** [stmp-multilib] Error 2
gmake[1]: Leaving directory `/usr/local/obj/gcc3.0.2-ppc/gcc'
gmake: *** [all-gcc] Error 2
***************************************************************************

Thanks,
Ernest L. Williams Jr.
Oak Ridge National Labs

SNS Controls Group


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]