[Tinyos-help] Nesc Error
David Gay
dgay42 at gmail.com
Wed Jun 10 08:40:34 PDT 2009
André Lopes <andrecrash3r at gmail.com> 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
More information about the Tinyos-help
mailing list