2009/6/10 André Lopes <[email protected]>:
> The avr-gcc is installed, I've runned "CFLAGS=-fnesc-verbose make micaz" and
>
> I really get this line, followed by,
>
> avr-gcc -v -x c /dev/null -E -dM -mmcu=atmega128
> #include "..." and component search starts here:
> #include <...> search starts here:
>  /stow/repository/nesc-1.3.0/lib/ncc/
>  /Users/andrelopes/tinyos-2.x/tos/sensorboards/micasb/
>  ...
>  /Users/andrelopes/tinyos-2.x/tos/types/
>  /Users/andrelopes/tinyos-2.x/tos/system/
> End of search list.

There should be the gcc search path at the end of this list, e.g. I get
 /Users/owl/motes/2.x/tos/system/
 /opt/local/lib/gcc/avr/4.0.2/include/
 /opt/local/lib/gcc/avr/4.0.2/../../../../avr/include/
End of search list.

And nesc1 gets those paths from the gcc invocation - the two problems
are undoubtably related.

> nesc1: internal error: couldn't define builtin macros - exiting
>
> I've runned that command and it printed a lot of #DEFINE values, the only
> thing
> that a think it could be wrong is some warnings that it gave me, like,
>
> ignoring nonexistent directory
> "/stow/repository/avr-tinyos/bin/../lib/gcc/avr/4.1.2/../../../../avr/sys-in
> clude"
> ignoring nonexistent directory
> "/opt/local/avr-build/avr-tinyos/lib/gcc/avr/4.1.2/include"
> ignoring nonexistent directory
> "/opt/local/avr-build/avr-tinyos/avr/sys-include"
> ignoring nonexistent directory "/opt/local/avr-build/avr-tinyos/avr/include"
>
> I've tried to reinstall avr tools avr-gcc, but always the same error,
> getting desperate!

What's the result code from avr-gcc? (run echo $? *immediately* after
the manual call to avr-gcc to find out) nesc1 won't be happy if it's
not 0.

David Gay

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to