gcc for vxworks5.1
Artem Alimarine
aalimari@best.ms.philips.com
Sat Apr 1 00:00:00 GMT 2000
Hello,
Has anyone managed to build gcc for vxworks5.1? How?
In my case it fixes the system includes in such a way that the compiling
of libgcc fails.
Perhaps there is a way to tell the make not to fix includes.
target=i960-wrs-vxworks5.1
$src/configure \
--target=$target \
--prefix=$rel \
--enable-languages=c,c++ \
--with-gnu-ld \
--with-gnu-as
If it matters, I am compiling on Cygwin
The error is
/gnu/gcc-2.95.2/gcc/config/i960/i960.h:27: warning: this is the location
of the
previous definition
In file included from include/types/vxArch.h:52,
from include/types/vxANSI.h:45,
from include/stdlib.h:36,
from /gnu/gcc-2.95.2/gcc/libgcc2.c:41:
include/arch/i960/archI960.h:128: parse error at null character
In file included from /gnu/gcc-2.95.2/gcc/libgcc2.c:48:
include/stddef.h:118: redefinition of `ptrdiff_t'
include/types/vxTypes.h:66: `ptrdiff_t' previously declared here
include/stddef.h:170: conflicting types for `size_t'
include/stdlib.h:63: previous declaration of `size_t'
include/stddef.h:255: conflicting types for `wchar_t'
include/stdlib.h:58: previous declaration of `wchar_t'
make[3]: *** [libgcc2.a] Error 1
make[2]: *** [stmp-multilib-sub] Error 2
make[1]: *** [stmp-multilib] Error 1
make: *** [all-gcc] Error 2
Compile for i960-unknown-coff with newlib builds fine but then I can not
use vxworks include files.
Any help is appreciated,
Artem
More information about the crossgcc
mailing list