error compiling cross gcc
Matthew Majka (mmajka@cs5.dasd.honeywell.com)
Thu, 22 Oct 1998 08:54:28 -0600
No Spam Man wrote:
>
> I tried yet again to compile xgcc for m68k-vxworks, but I am getting compilation
> errors that I don't really understand. Here's what I did:
>
> untarred gcc-2.8.1
> made a subdirectory called obj
> cd to obj
> ../configure --target=m68k-vxworks --prefix=/opt/xgcc -v (worked fine)
> gmake LANGUAGES=c
>
> where I get the errors:
>
> gmake[1]: Leaving directory `/tmp/gcc-2.8.1/obj'
> touch stmp-multilib
> CC="./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -I./include -I. -I.. -Iinclude
> -I/opt/xgcc/m68k-vxworks/include"; \
> export CC; \
> /bin/sh ../scan-types.sh ".." >tmp-deduced.h
> st-dummy.c:1: sys/types.h: No such file or directory
> st-dummy.c:4: stdio.h: No such file or directory
> st-dummy.c:5: time.h: No such file or directory
> st-dummy.c:6: signal.h: No such file or directory
> scan-types: could not invoke ./xgcc -B./ -DCROSS_COMPILE -DIN_GCC -I./include
> -I. -I.. -Iinclude -I/opt/xgcc/m68k-vxworks/include -E -I../ on st-dummy.c
> gmake: *** [deduced.h] Error 1
>
> ???? What is going on here? The host is running HPUX 10.20, but that shouldn't
> matter, right? I compiled binutils-2.9.1 in the same manner, and that seemed to
> work ok.
Use --target=m68k-wrs-vxworks. Then, before you build, copy the entire contents
of $WIND_BASE/target/h into /opt/xgcc/m68k-wrs-vxworks/include. That should
take care of it.
--
__________________________________
Matthew Majka - Software Engineer
Honeywell Defense Avionics Systems
Albuquerque, New Mexico, USA
________________________________________________
To get help for the crossgcc list, send mail to
crossgcc-request@cygnus.com with the text 'help'
(without the quotes) in the body of the message.