On Monday 02 October 2006 02:14 pm, Sean Walton wrote:
> Has anyone seen and solved this problem?  We noticed that someone
> reported this error three years ago, but there was no shared reply.  The
> essense is the CPP cannot see standard /usr/include files.  I am using
> avr-gcc 3.4.6, and the compilation is apparently trying to use gcc-cpp
> 4.0.2 --- Is that the problem??

This might be a useless reply since I don't use the avr cross compiler.  In 
general, I would expect, if the compiler is avr-gcc, for the precompiler to 
be avr-cpp and for both programs to have the same version number.  It 
wouldn't be surprising that fixing this solves the problem.

Regarding /usr/include, it's my understanding that gcc cross-compilers are 
typically configured to locate such include files from within its private 
install directory first.  Grabbing include files preferentially 
from /usr/include could incorporiate definitions for the 'default' compiler 
which is probably for the wrong architecture.  For example, msp430's gcc 
includes the 'standard' includes internally:

[EMAIL PROTECTED] poc]$ find /opt/msp430 -name string.h
/opt/msp430/msp430/include/string.h

>
> My environment is:
> TOSDIR=/opt/tinyos-1.x/tos
> TOSROOT=/opt/tinyos-1.x
> MAKERULES=/opt/tinyos-1.x/tools/make/Makerules
>
> OUTPUT:::
> [EMAIL PROTECTED]:/opt/tinyos-1.x/apps/Blink> make mica2
>     compiling Blink to a mica2 binary
> ncc -o build/mica2/main.exe -Os -board=micasb -target=mica2  -Wall
> -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -finline-limit=100000
> -fnesc-cfile=build/mica2/app.c  Blink.nc -lm
> /usr/lib/ncc/nesc_nx.h:16:22: inttypes.h: No such file or directory
> <commandline>: failed to preprocess /usr/lib/ncc/nesc_nx.h
> /opt/tinyos-1.x/tos/system/tos.h:50:22: inttypes.h: No such file or
> directory
> /opt/tinyos-1.x/tos/system/tos.h:77:20: string.h: No such file or directory
> /opt/tinyos-1.x/tos/system/tos.h:78:20: stdlib.h: No such file or directory
> /opt/tinyos-1.x/tos/system/tos.h:79:18: math.h: No such file or directory
> /opt/tinyos-1.x/tos/system/tos.h:81:19: ctype.h: No such file or directory
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to