Hi,

   I have finally got my TOSSIM Error down to the following:
mkdir -p build/pc
    compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -pthread -fnesc-nido-tosnodes=1000
-fnesc-simulate -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=pc
-fnesc-cfile=build/pc/app.c -board=micasb -DIDENT_PROGRAM_NAME=\"Blink\"
-DIDENT_USER_ID=\"root\" -DIDENT_HOSTNAME=\"ubuntu\"
-DIDENT_USER_HASH=0xa3473ba6L -DIDENT_UNIX_TIME=0x4a4103b2L
-DIDENT_UID_HASH=0x113fd66aL Blink.nc -lm
In file included from /opt/tinyos-1.x/tos/platform/pc/packet_sim.h:55,
                 from /opt/tinyos-1.x/tos/platform/pc/nido.h:84,
                 from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/types/AM.h:155: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:156: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h:158: parse error before `struct'
/opt/tinyos-1.x/tos/types/AM.h: In function `TOS_MsgLength':
/opt/tinyos-1.x/tos/types/AM.h:186: parse error before `TOS_Msg'
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
                 from /opt/tinyos-1.x/tos/system/tos.h:144:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c: At top level:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:147: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:177: warning: declaration of
`length' shadows global declaration
/opt/tinyos-1.x/tos/types/AM.h:158: warning: location of shadowed
declaration
make: *** [exe0] Error 1

After reading the mail archives, I have two patches with me:
nesc-1.1.2b-builtin_offset.bin and c-parse.gperf.patch.
Firstly, I am unsure as to which patch to apply.
Secondly, which file to apply on.
If someone has already done this, please help me out. I want to see a
compiled application! It's been almost two days!

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

Reply via email to