Hi,

I get a similar message:

[EMAIL PROTECTED] /opt/tinyos-1.x/apps/blink
$ make pc
mkdir -p build/pc
    compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc  -Wall
-Wshado
w -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000
-fnesc-cfile=buil
d/pc/app.c  Blink.nc -lm
gcc: unrecognized option `-pthread'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function
`__n
esc_nido_initialise':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:478: warning:
pas
sing arg 1 of `memset' discards qualifiers from pointer target type
    compiled Blink to build/pc/main.exe
           48128 bytes in ROM
          648912 bytes in RAM


The important thing is that the compilation was successful - the messages
are really just warnings as far as I can see.  Whilst they *may* be
significant, it is probably unlikely with an app like Blink.  In my
experience, read the warnings and then keep them in mind if you discover
problems when a program is running.

I can't help much further as I haven't used TOSSIM - generally I just
program the motes.  However a good guide can be found here:

http://www.cs.berkeley.edu/~pal/pubs/nido.pdf

HTH,

Alex.




________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
multimedia2004
Sent: 21 November 2005 17:51
To: tinyos-help@Millennium.Berkeley.EDU
Subject: [Tinyos-help] problem using TOSSIM

Hey all,
 
I am kind of newbie in tinyos, nesC and sensor networks and i am trying to
build my very first app in TOSSIM using the make pc command.... but i get
the following error...
 
[EMAIL PROTECTED]@spoon /opt/tinyos-1.x/apps/Blink
$ make pc
mkdir -p build/pc
    compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread  -fnesc-nido-tosnodes=1000  -Wall
-Wsha
dow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=build/pc/app.c -b
oard=micasb -DIDENT_PROGRAM_NAME="Blink"
-DIDENT_PROGRAM_NAME_BYTES="66,108,105,
110,107,0" -DIDENT_USER_ID="[EMAIL PROTECTED]"
-DIDENT_USER_ID_BYTES="80,64,110,111,115,0" -
DIDENT_HOSTNAME="spoon" -DIDENT_HOSTNAME_BYTES="115,112,111,111,110,0"
-DIDENT_U
SER_HASH=0x4ca96e68L -DIDENT_UNIX_TIME=0x438207c3L Blink.nc -lm
gcc: unrecognized option `-pthread'
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc: In function
`__n
esc_nido_initialise':
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/pc/PowerStateM.nc:360: warning:
pas
sing arg 1 of `memset' discards qualifiers from pointer target type
    compiled Blink to build/pc/main.exe
 
What do you think is the problem? How can i fix that? i ve tried to build
the Blink app for the mica2 platform using the make mica2 and i didn't have
a problem. (allthough i dont have any platform a all..;-p). I also tried to
compile a different app (CntToLedsAndRfm) but i still have the same
problem.. anyone here willing to help me?
 
Thanks a lot
[EMAIL PROTECTED]
 
ps.i am using tinyos 1.1.11
 


____________________________________________________________________
http://www.freemail.gr - d??e?? ?p??es?a ??e?t??????? ta??d??µe???.
http://www.freemail.gr - free email service for the Greek-speaking.


_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to