[Tinyos-help] problem with make pc
Hi, I am running ubuntu9.04. TinyOS2.x is installed from TinyOS package repository and TinyOS1.x is installed from CVS. TinyOS2.x works well, but tossim in tinyos1.x have problem. In the Blink dirctory type make pc, I get the following error: 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=\tc\ -DIDENT_HOSTNAME=\tc-ubuntu9\ -DIDENT_USER_HASH=0x74a01716L -DIDENT_UNIX_TIME=0x4a9f6387L -DIDENT_UID_HASH=0x6f2374d2L Blink.nc -lm In file included 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/platform/pc/nido.h:63: `TOSH_NUM_NODES' undeclared here (not in a function) /opt/tinyos-1.x/tos/platform/pc/nido.h:63: enumerator value for `TOSNODES' not integer constant make: *** [exe0] Error 1 Any help or experiences you could provide would be great. Thank you very much in advance. 2009-09-03 童超 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problem on make pc of TOSSIM
Hi! If we try to compile a file with the command make pc to simulate it with TOSSIM (tinyos1.x), it doesn't works..the output is: Unknown target pc Known targets for TinyOS directory /opt/MoteWorks/tos are: iris m2100 m2110 m4100 m9100 mica mica2 mica2b mica2dot micaz micazb micazc msp430 rcb230 telos telosb make: *** [exe0] Error 2 Can somebody help us? thanks! -- Cyb3rk1wy!! ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problem with 'make pc'
Hi all I have a problem when i compile using make pc I can see the following message: --- [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc /opt/tinyos-2.x/support/make/Makerules:168: *** Usage: make target extras make target help Valid targets: all clean eyesIFX eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telos telosa telosb tinynode tmote Valid extras: docs ident_flags nowiring sim sim-fast tos_image verbose wiring Welcome to the TinyOS make system! You must specify one of the valid targets and possibly some combination of the extra options. Many targets have custom extras and extended help, so be sure to try make target help to learn of all the available features. Global extras: docs: compile additional nescdoc documentation tinysec : compile with TinySec secure communication ERROR, pc tos-ident-flags tos_image does not specify a valid target. Stop. [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc /opt/tinyos-2.x/support/make/Makerules:168: *** Usage: make target extras make target help Valid targets: all clean eyesIFX eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telos telosa telosb tinynode tmote Valid extras: docs ident_flags nowiring sim sim-fast tos_image verbose wiring Welcome to the TinyOS make system! You must specify one of the valid targets and possibly some combination of the extra options. Many targets have custom extras and extended help, so be sure to try make target help to learn of all the available features. Global extras: docs: compile additional nescdoc documentation tinysec : compile with TinySec secure communication ERROR, pc tos-ident-flags tos_image does not specify a valid target. Stop. [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ --- How can I solve this problem? Thank you so much Roberto ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problem with 'make pc'
Hi all I have a problem when i compile using make pc I can see the following message: --- [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc /opt/tinyos-2.x/support/make/Makerules:168: *** Usage: make target extras make target help Valid targets: all clean eyesIFX eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telos telosa telosb tinynode tmote Valid extras: docs ident_flags nowiring sim sim-fast tos_image verbose wiring Welcome to the TinyOS make system! You must specify one of the valid targets and possibly some combination of the extra options. Many targets have custom extras and extended help, so be sure to try make target help to learn of all the available features. Global extras: docs: compile additional nescdoc documentation tinysec : compile with TinySec secure communication ERROR, pc tos-ident-flags tos_image does not specify a valid target. Stop. [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc /opt/tinyos-2.x/support/make/Makerules:168: *** Usage: make target extras make target help Valid targets: all clean eyesIFX eyesIFXv1 eyesIFXv2 intelmote2 mica2 mica2dot micaz null telos telosa telosb tinynode tmote Valid extras: docs ident_flags nowiring sim sim-fast tos_image verbose wiring Welcome to the TinyOS make system! You must specify one of the valid targets and possibly some combination of the extra options. Many targets have custom extras and extended help, so be sure to try make target help to learn of all the available features. Global extras: docs: compile additional nescdoc documentation tinysec : compile with TinySec secure communication ERROR, pc tos-ident-flags tos_image does not specify a valid target. Stop. [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ --- How can I solve this problem? Thank you so much Roberto ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Problem with 'make pc'
Hi, 'PC' is not a correct argument to the make-command. You should specify on which node-platform do you want to compile the program to. Eg. make mica2 if your nodes are Mica2. See http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson1.html for tutorial on how to start with tinyos-programs. If you want to simulate the behavior of the program on a PC, then you should build with make micaz sim and read http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson11.html for instructions on how to proceed. Hope this helps, Risto Hietala On 1.9.2007, at 14.46, Roberto wrote: Hi all I have a problem when i compile using make pc I can see the following message: --- [EMAIL PROTECTED]:/opt/tinyos-2.x/apps/Blink$ make pc /opt/tinyos-2.x/support/make/Makerules:168: *** ... --- How can I solve this problem? Thank you so much ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Problem with 'make pc'
Hi, 'PC' is not a correct argument to the make-command. You should specify on which node-platform do you want to compile the program to. Eg. make mica2 if your nodes are Mica2. perhaps, is make pc used in previous versions of tinyOS? Anyway the command make platform sim works only for micaz I solved my problem installing g++. I hadn't this packet Now, it seems work well Thanks all ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Problem with Make PC after having latest installation of cygwin
Hello I have installed Tinyos1.1.0 inorder to have snapshot Tinyos1.1.11 or higher I need to upgrade cygwin so I installed the new version from http://www.cygwin.com/ the version Cygwin_NT-5.1 1.5.24. But after installation when I compile one of the existing application using Make Pc. I get the following error. Does any one have an idea [EMAIL PROTECTED] /opt/tinyos-1.x/apps/cnttorfm $ make pc compiling CntToRfm to a pc binary ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -I%T/lib/Count ers -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000 -fnesc-cfile=build/pc/app.c CntToRfm.nc -lm C:\tinyos\cygwin\opt\tinyos-1.x\tos\system\tos.h:57: redefinition of `uint8_t' /usr/include/stdint.h:24: previous declaration of `uint8_t' C:\tinyos\cygwin\opt\tinyos-1.x\tos\system\tos.h:62: redefinition of `uint16_t' /usr/include/stdint.h:25: previous declaration of `uint16_t' make: *** [build/pc/main.exe] Error 1 [EMAIL PROTECTED] /opt/tinyos-1.x/apps/cnttorfm $ Thanks Farhana - Don't get soaked. Take a quick peak at the forecast with theYahoo! Search weather shortcut.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] problem with make pc
I was getting the same error on Ubuntu, but it turns out that my version of nescc was too old. If you checked tinyos out from CVS, you'll need 1.2.4 it seems. If ncc --version reports something like 1.1.2b instead of 1.2.4, it will tank on the offset() function. The most difficult part in fixing this would probably be finding where the old version is coming from. There's a command called which that reports back where a given program is stored. For example: [EMAIL PROTECTED]:~$ which eclipse /usr/bin/eclipse Hopefully that fixes it. Justin Dugger On 5/30/06, Michael D [EMAIL PROTECTED] wrote: When i try to compile a application with make pc i get the following error 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 I already tried to recompile the nesc compiler with the patch that was suggested in : https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/012219.html but it doesnt work. I tried to change the offestof() macro in stddef.h to the old function, but i dont know how to do that. Can anyone help me with this? lg, mike ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] problem with make pc
When i try to compile a application with make pc i get the following error 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 I already tried to recompile the nesc compiler with the patch that was suggested in : https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-September/012219.html but it doesnt work. I tried to change the offestof() macro in stddef.h to the old function, but i dont know how to do that. Can anyone help me with this? lg, mike ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help