This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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: > > I get the errors: > > 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 > > ???? What is going on here? When compiling with a C-compiler (CC = <something>), you need headers for it, those '#include <stdio.h>' things in the beginning of the C-program say that these are needed. Compiling the routines for the Objective-C run- time library, 'libobjc.a', needs the headers for the target. So get them from your VxWorks distribution to '/opt/xgcc/m68k-vxworks/include', or remove all references to 'libobjc.a' from your Makefile -- don't try to build 'libobjc.a' at all... Cheers, Kai ________________________________________________ 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.