Problems building Cygwin to PowerPC VxWorks Cross-compiler

Landgren, Owen (MN65) Landgren_Owen@htc.honeywell.com
Mon Aug 13 06:39:00 GMT 2001


Kind sirs and madams,

I'm currently in the throes of attempting to build a cross compiler for a
MVME 5100 board using gcc 3.0, and I'm running into some serious
difficulties using the standard mechanisms.

Binutils compile fine, and all of the files report version 2.11.2 targeted
for powerpc-wrs-vxworks.

However, the following invocation of the builtin scripts for gcc results in
serious problems:

../compile --target=powerpc-wrs-vxworks --prefix=/cross/vxtools/bin
--exec-prefix=/cross/vxtools/bin --with-headers=/Tornado/target/h/
--enable-languages=c,c++

This step of the process goes fine -- it seems to find everything that it's
looking for, and creates a makefile. I then invoked the makefile with 

make LANGUAGES="c c++"

which results in the following errors in the build process.

/cross/vxtools/src/gcc-3.0/vxppc/gcc/xgcc
-B/cross/vxtools/src/gcc-3.0/vxppc/gcc
/ -B/cross/vxtools/bin/powerpc-wrs-vxworks/bin/
-B/cross/vxtools/bin/powerpc-wrs
-vxworks/lib/ -isystem /cross/vxtools/bin/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../../gcc -I../../gcc/.
-I../../gcc/config 
-I../../gcc/../include  -mrelocatable-lib -mno-eabi -mstrict-align
-DL_muldi3 -c ../../gcc/lib
gcc2.c -o libgcc/./_muldi3.o
In file included from 
/cross/vxtools/bin/powerpc-wrs-vxworks/sys-include/vxWorks.h:174,
                 from 
 
/cross/vxtools/bin/powerpc-wrs-vxworks/sys-include/classLib.h:29,
                 from 
 
/cross/vxtools/bin/powerpc-wrs-vxworks/sys-include/stdio.h:58,
                 from ../../gcc/tsystem.h:63,
                 from ../../gcc/libgcc2.c:37:
/cross/vxtools/bin/powerpc-wrs-vxworks/sys-include/types/vxTypes.h:66: 
                        conflicting types for `ptrdiff_t'
/cross/vxtools/src/gcc-3.0/vxppc/gcc/include/stddef.h:147: 
    previous declaration of `ptrdiff_t'
/cross/vxtools/bin/powerpc-wrs-vxworks/sys-include/types/vxTypes.h:76: 
    conflicting types for `wchar_t'
/cross/vxtools/src/gcc-3.0/vxppc/gcc/include/stddef.h:287: 
    previous declaration of `wchar_t'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/cross/vxtools/src/gcc-3.0/vxppc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/cross/vxtools/src/gcc-3.0/vxppc/gcc'
make: *** [all-gcc] Error 2


Examination of the files in question reveals a #define nest that when worked
through shows that it shouldn't actually be being redefined. Beyond this
point, I got lost, and so I seek help. Any advice, pointers, or fixes would
be greatly appreciated.

Regards,
Owen Landgren
Phone: (612) 951-7038



More information about the Gcc-help mailing list