David Korn
Wed Jan 30 07:02:00 GMT 2002

>-----Original Message-----
>From: Mandeep Baines []
>Sent: 29 January 2002 17:22

>I am struggling to build cross gcc 2.95.3 for arm-wrs-vxworks to run on
>linux. I have been able to build binutils for the target, but cannot
>build gcc.
>The error I get is:
>../../gcc/libgcc2.c:41: stdlib.h: No such file or directory
>../../gcc/libgcc2.c:42: unistd.h: No such file or directory
>I am calling configure like so:
> ../configure --target=arm-wrs-vxworks
>--prefix=/usr/local/Tornado/host/linux/ -v
>To build the cross compile do I need the vxworks include files or is it
>looking for my linux include files.

  It wants the vxworks include files, and you need to point at them using
the --with-headers=/path/to/Tornado/target/h option for configure.

  There's a load of advice on my website relating to building a powerpc-wrs-
vxworks target, in particular the recipe for configuring and building should
work pretty much the same for your target.

  The main difference for an ARM rather than PPC target is that I don't
actually know whether the ARM target needs any patches to the gcc source.

  PPC definitely does, but most of the other gcc/vxworks targets are better
maintained in the public sources, so you should be able to give it a go.

  My website is at

Burn your ID card!
Help support the campaign, copy this into your .sig!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list