This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


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

gcc for vxworks5.1


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
begin:vcard 
n:Alimarine;Artem
tel;home:(+31) 40-2440633
tel;work:(+31) 40-2763078
x-mozilla-html:TRUE
adr:;;;;;;
version:2.1
email;internet:aalimari@best.ms.philips.com
fn:Artem Alimarine
end:vcard

------
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]