Not sure, but nescc sometimes produces wierd errors like this if a
configuration or module has a different name from the file it's in.  IE, if
there was a file FooC.nc which contains 'configuration Foo' (not 'FooC').
Any chance this is the case?

Steve

On Mon, Feb 2, 2009 at 9:36 AM, francesco foresti <[email protected]>wrote:

> Hello.
>
> I am trying to set up tinyos and related tools on an ibook g4, following
> the
> guide at
>
> http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_(Tiger_%26_Leopard)<http://docs.tinyos.net/index.php/Installing_tinyos-2.x_on_Mac_OS_X_%28Tiger_%26_Leopard%29>
>
> Everything went smoothly until i tried to compile the Blink app for the
> iris
> motes i have to work on.
> At that point the compilation failed with the "couldn't define builtin
> macros"
> error.
> How can i solve this issue?
>
> I have also tried compiling for micaz and other kind of motes, but the
> problem
> is the same.
> The output of the tos-check-env command on my ibook can be found at
> http://pastebin.com/m5881a72c
> while the output of "ncc --version" is:
> ncc 1.2.4, nescc 1.3.0, gcc 3.3 (20030304 build 1819)
> Note that i've also tried with gcc 4.0.1 (build 5370), and the symptoms are
> the same.
> If You need any other info, please ask me.
>
> Meanwhile, i have dug a little into nescc (1.3.0) sources, and found that
> in
> file nesc-cpp.c "builtin_macros_file" has no value at the moment is
> evaluated
> in the if statement at line 115.
> Searching further, i have found that the parameter passed to the
> select_target() function in machine.c is "avr", so i looked into
> src/machine/avr.c, in which i found the values assigned to the machine_spec
> struct. Can these values be related to my problem or am i simply searching
> in
> the wrong places?
>
> Please help me if You can, it is quite important for me.
>
> Thank You for your attention.
>
> --
> ===================================================================
> Francesco Foresti
> Registered Linux User #332599
> key fingerprint = 59D5 1E61 6631 5DEF DC88 C64C 7F53 2F45 99FB CD21
>
> _______________________________________________
> 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

Reply via email to