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. 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! André Lopes -----Mensagem original----- De: [email protected] [mailto:[email protected]] Em nome de David Gay Enviada: quarta-feira, 10 de Junho de 2009 16:41 Para: Help TinyOS Assunto: Re: [Tinyos-help] Nesc Error André Lopes <[email protected]> wrote: > I'm using MacOSX 10.4 in a PowerPC, and I've successfully installed > tinyos-2.1. > Initially I could build apps for micaz without any error, but then I've > bought > an usb to serial adapter and installed it, coincidence or not, after that, > every time > that I've tried to build an app for micaz platform I've always got the same > error: > nesc1: internal error: couldn't define builtin macros - exiting The most likely reason for this is that ncc can't find avr-gcc. Check that it's installed correctly. If it is, run the ncc command used to build your app, with an added -fnesc-verbose option (you can often just do: "CFLAGS=-fnesc-verbose make micaz"). The first line should be avr-gcc -v -x c /dev/null -E -dM -mmcu=atmega128 Try running that command standalone. David Gay _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
