On Mon, 2005-11-21 at 19:51 +0200, multimedia2004 wrote: > 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
Don't worry about this warning. It turns out that different versions of gcc have different opinions about this line of code, which is auto- generated by ncc. Trying to keep up with gcc was such a pain that we threw up our hands. The code itself is safe. The auto-generated function that the warning refers to is what allows a TOSSIM mote to "reboot," that is, restore all of its state to what you'd see on a real mote. The basic challenge here is initializers: TOS_Msg msg; TOS_MsgPtr ptr = &msg; Since a node in the TOSSIM process can boot multiple times, these initializers need to be made into a function that can be called. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
