Hi,
I want check the version of the tool nesc use because I found a problem 
with them.
I'm working with TinyOS 2.0.2 and TinyOS 2.1.0 on a ArchLinux machine. 
Yesterday I updates my system and something goes wrong with mig.
In particular when I use it it returns me the error:

two source files specified (PLATFORM_NULL and NESC=131)

the tool I use is:
ncc: 1.2.4
nescc: 1.3.1
gcc: gcc (GCC) 4.6.0 20110415 (prerelease)
perl 5.12.3 x86_64-linux-thread-multi
Python 2.7.1
GNU Make 3.81

which version is better to use with TinyOS?

In any case I searched the problem and I found it in 
/usr/lib/ncc/nesc-compile , it received two wrong options.
If understand correctly when I use mig the chain of program/scripts use 
the gcc to call nesc-compile
In the command line that call gcc the options are fine, in particular 
they are -DPLATFORM_NULL and -DNESC=131 but when this option arrive to 
nesc-compile they are -D PLATFORM_NULL and -D NESC=131 : someone add a 
space after -D.

I don't understand how gcc call nesc-compile so I don't understand if 
the problem is in gcc or in perl. In any case my solution for the moment 
is modified the begin of nesc-comipile like this:

use File::Basename;

for ($i = 0; $i <= $#ARGV; $i++) {
     $_ = $ARGV[$i];

     if(/^-D$/) {
         $t = "-D$ARGV[$i+1]";
         splice(@ARGV,$i+1,1);
         $ARGV[$i]=$t;
         $_ = $t;
       }

     if (/^-_ASM$/) {

but I think it isn't the best solution.

Any help will be appreciated.
Davide


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

Reply via email to