2009/6/10 André Lopes <[email protected]>: > -And nesc1 gets those paths from the gcc invocation - the two problems > -are undoubtably related. > > How should I add the gcc search path at avr-gcc invocation?
Nothing. Those paths being missing is just a symptom of the same problem. >> 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. > > > > The value printed is 1. That's your problem - nesc expects a result of 0 (indicating success). Maybe it should be a little more lenient when the result is 1 (typically means "warning") - I'll probably change that for the next release. > How should I proceed? Thanks in advance for the time helping me! Install an avr-gcc that doesn't have installation problems (the presence of those /stow paths in the messages from avr-gcc suggests to me that you've got something broken in your build process) ? FWIW, I haven't had any problems with the avr-gcc (4.0.2) that comes with DarwinPorts (http://darwinports.com) David Gay _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
