This is the mail archive of the crossgcc@sourceware.org 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]
Other format: [Raw text]

Cross GCC for PowerPC and vxWorks


Hi,

  I am again trying to make a cross compiler for:
host=i686-pc-linux-gnu
target=powerpc-wrs-vxworks

The target is specifically a MPC750 running 
vxWorks 5.4.2 

I have tried a number of binutils versions (this part always works)
and gcc versions from gcc-2.25.3 up to gcc-4.0.2.
My configure line looke like:

 ../gcc-4.0.2/configure --target=$target --host=$host 
--with-headers=/usr/local/wind/target/h --with-cpu=604 
--program-suffix=ppc604 --prefix=$prefix --enable-languages=c,c++

The compiliation continues until:

make[3]: Entering directory 
`/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc'
/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc/xgcc 
-B/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc/ 
-B/usr/local/powerpc-wrs-vxworks/bin/ 
-B/usr/local/powerpc-wrs-vxworks/lib/ -isystem 
/usr/local/powerpc-wrs-vxworks/include -isystem 
/usr/local/powerpc-wrs-vxworks/sys-include -O2 -DIN_GCC -DCROSS_COMPILE   
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-Wold-style-definition  -isystem ./include  -I. -I. -I../../gcc-4.0.2/gcc 
-I../../gcc-4.0.2/gcc/. -I../../gcc-4.0.2/gcc/../include 
-I../../gcc-4.0.2/gcc/../libcpp/include   -g0 -finhibit-size-directive 
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss 
-fno-unit-at-a-time -msdata=none \
   -c ../../gcc-4.0.2/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
In file included from 
/usr/local/powerpc-wrs-vxworks/sys-include/vxWorks.h:174,
                 from 
/usr/local/powerpc-wrs-vxworks/sys-include/classLib.h:29,
                 from 
/usr/local/powerpc-wrs-vxworks/sys-include/stdio.h:58,
                 from ../../gcc-4.0.2/gcc/tsystem.h:90,
                 from ../../gcc-4.0.2/gcc/crtstuff.c:64:
/usr/local/powerpc-wrs-vxworks/sys-include/types/vxTypes.h:66: error: 
conflicting types for ptrdiff_t
/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc/include/stddef.h:152: 
error: previous declaration of ptrdiff_t was here
/usr/local/powerpc-wrs-vxworks/sys-include/types/vxTypes.h:76: error: 
conflicting types for wchar_t
/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc/include/stddef.h:326: 
error: previous declaration of wchar_t was here
make[3]: *** [crtbegin.o] Error 1
make[3]: Leaving directory 
`/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc'
make[2]: *** [extra] Error 2
make[2]: Leaving directory 
`/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory 
`/usr/local/gcc-4.0.2-powerpc-wrs-vxworks-builddir/gcc'
make: *** [all-gcc] Error 2

Does anyone have any suggestions on solving this problem?

A similiar problem was responed to on this list by
Dave Korn on Oct 28 2001. His recommendation was to
use gcc-2.95.3 and patches from his website:
http://www.newgcc4vxworks4ppc.cjb.net ...unfortunately
this link doesn't seem to work anymore.
 
All suggestions are greatly appreciated!

Thanks,

Jim




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


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