Re: [Tinyos-help] TOSSIM 2.x doesn't run
On Aug 7, 2007, at 6:29 PM, [EMAIL PROTECTED] wrote: When I try to compile an application fot TOSSIM I see always the same errors. I have tested some of the solution proposed in this Forum but noone solve my problem. My errors are: $ make micaz sim-cygwin sim-cygwin was deprecated long ago; what version of T2 are you using? With more recent versions, you should be able to just type 'make micaz sim' and have it work. In particular, sim-cygwin doesn't include a critical .o file that was introduced after sim-cygwin was deprecated. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM 2.x doesn't run
When I try to compile an application fot TOSSIM I see always the same errors. I have tested some of the solution proposed in this Forum but noone solve my problem. My errors are: $ make micaz sim-cygwin mkdir -p build/micaz placing object files in build/micaz writing XML schema to app.xml compiling BlinkAppC to object file sim.o ncc -c - DUSE_DL_IMPORT -fpic -o build/micaz/sim.o -g -O0 -tossim -fnesc-nido- tos nodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) - finline-limit= 10 -Wall -Wshadow -Wnesc-all -target=micaz -fnesc- cfile=build/micaz/app.c -b oard=micasb -Wno-nesc-data-race BlinkAppC. nc -fnesc-dump=components -fnesc-du mp=variables -fnesc- dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedef s -fnesc- dump=tags -fnesc-dumpfile=app.xml In file included from /opt/tinyos-2. x/tos/lib/tossim/sim_mac.c:34, from /opt/tinyos-2. x/tos/lib/tossim/tos.h:89: /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c: 14: warning: declaration of `link' sha dows global declaration /usr/include/sys/unistd.h:97: warning: location of shadowed declaration /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:20: warning: declaration of `link' sha dows global declaration /usr/include/sys/unistd.h:97: warning: location of shadowed declaration /opt/tinyos-2. x/tos/lib/tossim/sim_gain.c: In function `sim_gain_allocate_link': /opt/tinyos-2.x/tos/lib/tossim/sim_gain.c:134: warning: declaration of `link' sh adows global declaration /usr/include/sys/unistd.h:97: warning: location of shadowed declaration /opt/tinyos-2. x/tos/lib/tossim/sim_gain.c: At top level: /opt/tinyos-2. x/tos/lib/tossim/sim_gain.c:141: warning: declaration of `link' sh adows global declaration /usr/include/sys/unistd.h:97: warning: location of shadowed declaration In file included from /opt/tinyos-2.x /tos/chips/atm128/timer/sim/HplAtm128Timer0 AsyncC.nc:58, from /opt/tinyos-2.x /tos/platforms/mica/AlarmCounterMilliP.nc:3 0, from /opt/tinyos-2.x /tos/platforms/mica/sim/HilTimerMilliC.nc:4 1, from /opt/tinyos-2.x/tos/system/TimerMilliP.nc:41, from /opt/tinyos-2.x/tos/system/TimerMilliC.nc:40, from BlinkAppC.nc:46: In component `HplAtm128CompareC': /opt/tinyos-2. x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In function `ti mer0_compare_handle': /opt/tinyos-2. x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc:195: warning: de claration of `time' shadows global declaration /usr/include/time.h:49: warning: location of shadowed declaration cc1: warning: -fpic ignored for target (all code is position independent) compiling Python support into pytossim.o and tossim.o g++ -c -DUSE_DL_IMPORT -shared - fpic -o build/micaz/pytossim.o -g -O0 /opt/tiny os-2. x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.3 -I/opt/tinyos- 2.x /tos/lib/tossim -DHAVE_CONFIG_H cc1plus: warning: -fpic ignored for target (all code is position independent) g++ -c -DUSE_DL_IMPORT - shared -fpic -o build/micaz/tossim.o -g -O0 /opt/tinyos -2. x/tos/lib/tossim/tossim.c -I/usr/include/python2.3 -I/opt/tinyos-2.x /tos/lib/ tossim cc1plus: warning: -fpic ignored for target (all code is position independent) linking into shared object ./_TOSSIM.dll g++ -fpic -shared -W1,--enable-auto-image-base build/micaz/pytossim.o build/mic az/sim.o build/micaz/tossim.o -L/usr/lib/python2.3/config - lpython2.3-lstdc++ - o _TOSSIM.dll build/micaz/sim.o(.text+0x239): In function `fillInOutput': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:97: undefined reference to `_hashtable_ search' build/micaz/sim.o(. text+0x309):/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:127: und efined reference to `_hashtable_search' build/micaz/sim.o(.text+0x2f04): In function `sim_log_init': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:154: undefined reference to `_create_ha shtable' build/micaz/sim.o(. text+0x2f86): In function `sim_log_add_channel': /opt/tinyos-2. x/tos/lib/tossim/sim_log.c:166: undefined reference to `_hashtable _search' build/micaz/sim.o(.text+0x3050):/opt/tinyos-2. x/tos/lib/tossim/sim_log.c:181: un defined reference to `_hashtable_insert' build/micaz/sim.o(.text+0x3100): In function `sim_log_remove_channel': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:207: undefined reference to `_hashtable _search' build/micaz/tossim.o(. text+0x9c9): In function `_ZN4MoteC2EP8nesc_app': /opt/tinyos-2. x/tos/lib/tossim/tossim.c:125: undefined reference to `_create_has htable' build/micaz/tossim.o(.text+0xa01): In function `_ZN4MoteC1EP8nesc_app': /opt/tinyos-2.x/tos/lib/tossim/tossim.c:125: undefined reference to `_create_has htable' build/micaz/tossim.o(. text+0xb62): In function `_ZN4Mote11getVariableEPc': /opt/tinyos-2. x/tos/lib/tossim/tossim.c:172: undefined reference to `_hashtable_ search' build/micaz/tossim.o(.text+0xcaa):/opt/tinyos-2. x/tos/lib/tossim/tossim.c:188: u ndefined reference to `_hashtable_insert' collect2: ld returned 1 exit status make: *** [sim- exe] Error 1 Is t
Re: [Tinyos-help] TOSSIM 2.x doesn't run : pythonpath?
.nc:40, > from BlinkAppC.nc:46: > In component `HplAtm128CompareC': > /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc: In > function `ti > mer0_compare_handle': > /opt/tinyos-2.x/tos/chips/atm128/timer/sim/HplAtm128CompareC.nc:195: > warning: de > claration of `time' shadows global declaration > /usr/include/time.h:49: warning: location of shadowed declaration > cc1: warning: -fpic ignored for target (all code is position > independent) > compiling Python support into pytossim.o and tossim.o > g++ -c -DUSE_DL_IMPORT -shared -fpic -o build/micaz/pytossim.o -g -O0 > /opt/tiny > os-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.3 > -I/opt/tinyos-2.x > /tos/lib/tossim -DHAVE_CONFIG_H > cc1plus: warning: -fpic ignored for target (all code is position > independent) > g++ -c -DUSE_DL_IMPORT -shared -fpic -o build/micaz/tossim.o -g -O0 > /opt/tinyos > -2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.3 -I/opt/tinyos-2.x > /tos/lib/ > tossim > cc1plus: warning: -fpic ignored for target (all code is position > independent) > linking into shared object ./_TOSSIM.dll > g++ -fpic -shared -W1,--enable-auto-image-base build/micaz/pytossim.o > build/mic > az/sim.o build/micaz/tossim.o -L/usr/lib/python2.3/config -lpython2.3-lstdc++ - > o _TOSSIM.dll > build/micaz/sim.o(.text+0x239): In function `fillInOutput': > /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:97: undefined reference to > `_hashtable_ > search' > build/micaz/sim.o(.text+0x309):/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:127: > und > efined reference to `_hashtable_search' > build/micaz/sim.o(.text+0x2f04): In function `sim_log_init': > /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:154: undefined reference to > `_create_ha > shtable' > build/micaz/sim.o(.text+0x2f86): In function `sim_log_add_channel': > /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:166: undefined reference to > `_hashtable > _search' > build/micaz/sim.o(.text+0x3050):/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:181: > un > defined reference to `_hashtable_insert' > build/micaz/sim.o(.text+0x3100): In function `sim_log_remove_channel': > /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:207: undefined reference to > `_hashtable > _search' > build/micaz/tossim.o(.text+0x9c9): In function `_ZN4MoteC2EP8nesc_app': > /opt/tinyos-2.x/tos/lib/tossim/tossim.c:125: undefined reference to > `_create_has > htable' > build/micaz/tossim.o(.text+0xa01): In function `_ZN4MoteC1EP8nesc_app': > /opt/tinyos-2.x/tos/lib/tossim/tossim.c:125: undefined reference to > `_create_has > htable' > build/micaz/tossim.o(.text+0xb62): In function > `_ZN4Mote11getVariableEPc': > /opt/tinyos-2.x/tos/lib/tossim/tossim.c:172: undefined reference to > `_hashtable_ > search' > build/micaz/tossim.o(.text+0xcaa):/opt/tinyos- 2.x/tos/lib/tossim/tossim.c:188: > u > ndefined reference to `_hashtable_insert' > collect2: ld returned 1 exit status > make: *** [sim-exe] Error 1 > > > Any clue what can be done about this? > > Preeti > > > On 12/8/06, Daniele Munaretto <[EMAIL PROTECTED] > wrote: > > > > You should define your python path, because this error is due to the > > wrong path. > > Hoping this can be helpful and a good hint, > > cheers > > Daniele > > > > > > preeti k wrote: > > > I looked at this thread of the tinyos-help. > > > I seem to have the same problem wrt python > > > After "from tinyos.tossim import *" > > > runs but the new command "t=tossim([])" doesn't. > > > Can you help me out? May I know what changes and to which script > > should be made? > > > > > > Thanks > > > > > > > > > > > > Dear Dr.Levis, > > > Finally i solved, there was an error in a script. Thanks very much > > for your > > > help. > > > Instead i don't understand why, when i switch back to 1.x, i cannot > > compile > > > apps no more, while in 2.x yes. I'm following the instructions for > > changing the > > > paths but nothing...in the attached file there is the compiling > > result. > > > Cheers > > > Daniele > > > > > > > > > -Original Message- > > > From: Munaretto, Daniel > > > Sent: Tue 9/12/2006 10:02 AM > > > To: Philip Levis > > > > > > Cc: > > > Subject: RE: [Tinyos-help] TOSSIM 2.x doesn't run > > > > > > > > > > > &
Re: [Tinyos-help] TOSSIM 2.x doesn't run : pythonpath?
-I/usr/include/python2.3 -I/opt/tinyos-2.x /tos/lib/ tossim cc1plus: warning: -fpic ignored for target (all code is position independent) linking into shared object ./_TOSSIM.dll g++ -fpic -shared -W1,--enable-auto-image-base build/micaz/pytossim.o build/mic az/sim.o build/micaz/tossim.o -L/usr/lib/python2.3/config -lpython2.3-lstdc++ - o _TOSSIM.dll build/micaz/sim.o(.text+0x239): In function `fillInOutput': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:97: undefined reference to `_hashtable_ search' build/micaz/sim.o(.text+0x309):/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:127: und efined reference to `_hashtable_search' build/micaz/sim.o(.text+0x2f04): In function `sim_log_init': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:154: undefined reference to `_create_ha shtable' build/micaz/sim.o(.text+0x2f86): In function `sim_log_add_channel': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:166: undefined reference to `_hashtable _search' build/micaz/sim.o(.text+0x3050):/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:181: un defined reference to `_hashtable_insert' build/micaz/sim.o(.text+0x3100): In function `sim_log_remove_channel': /opt/tinyos-2.x/tos/lib/tossim/sim_log.c:207: undefined reference to `_hashtable _search' build/micaz/tossim.o(.text+0x9c9): In function `_ZN4MoteC2EP8nesc_app': /opt/tinyos-2.x/tos/lib/tossim/tossim.c:125: undefined reference to `_create_has htable' build/micaz/tossim.o(.text+0xa01): In function `_ZN4MoteC1EP8nesc_app': /opt/tinyos-2.x/tos/lib/tossim/tossim.c:125: undefined reference to `_create_has htable' build/micaz/tossim.o(.text+0xb62): In function `_ZN4Mote11getVariableEPc': /opt/tinyos-2.x/tos/lib/tossim/tossim.c:172: undefined reference to `_hashtable_ search' build/micaz/tossim.o(.text+0xcaa):/opt/tinyos- 2.x/tos/lib/tossim/tossim.c:188: u ndefined reference to `_hashtable_insert' collect2: ld returned 1 exit status make: *** [sim-exe] Error 1 Any clue what can be done about this? Preeti On 12/8/06, Daniele Munaretto <[EMAIL PROTECTED]> wrote: > > You should define your python path, because this error is due to the > wrong path. > Hoping this can be helpful and a good hint, > cheers > Daniele > > > preeti k wrote: > > I looked at this thread of the tinyos-help. > > I seem to have the same problem wrt python > > After "from tinyos.tossim import *" > > runs but the new command "t=tossim([])" doesn't. > > Can you help me out? May I know what changes and to which script > should be made? > > > > Thanks > > > > > > > > Dear Dr.Levis, > > Finally i solved, there was an error in a script. Thanks very much for > your > > help. > > Instead i don't understand why, when i switch back to 1.x, i cannot > compile > > apps no more, while in 2.x yes. I'm following the instructions for > changing the > > paths but nothing...in the attached file there is the compiling > result. > > Cheers > > Daniele > > > > > > -Original Message- > > From: Munaretto, Daniel > > Sent: Tue 9/12/2006 10:02 AM > > To: Philip Levis > > > > Cc: > > Subject: RE: [Tinyos-help] TOSSIM 2.x doesn't run > > > > > > > > Dear Dr.Levis, > > > > thanks very much for your help. But after "from > tinyos.tossim import > > *", that runs, the new command "t=Tossim([])" doesn't work. Changing > Tossim > > with TOSSIM or tossim it is the same: > > "NameError: name 'tossim' is not defined". > > > > > > Cheers > > Daniele > > > > -Original Message- > > > > From: Philip Levis [mailto:[EMAIL <mailto:%5bEMAIL> PROTECTED] > > > >Sent: Mon 9/11/2006 6:08 PM > > To: Munaretto, Daniel > > > > Cc: tinyos-help@Millennium.Berkeley.EDU <mailto:tinyos-help@Millennium.Berkeley.EDU > > > > Subject: Re: [Tinyos-help] TOSSIM > > 2.x doesn't run > > > > > > > > > > On Sep 11, 2006, at 6:42 AM, Munaretto, Daniel wrote: > > > > > > > Dear all, > > >following the tutorial and archive cause of some > problems, > > i > > > compiled Blink apps as: > > > > > > > > make micaz sim- cygwin > > > > > > > > in order to run then TOSSIM. > > > > > But after writing > > > "from TOSSIM import *" > > > > > in python environment, the bash displays "no module > named > > TOSSIM". > > > > > Does it mean that with the sim- cygwin command i > cannot run > > TOSSIM > > > in tinyos-2.x? > > > > You need to add > > tinyos-2.x/support/sdk/python to your > > PYTHONPATH > > variable. > > > > > > Phil > > > > > > > > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM 2.x doesn't run
atus make: *** [sim-exe] Error 1 Any clue what can be done about this? Preeti On 12/8/06, Daniele Munaretto <[EMAIL PROTECTED]> wrote: You should define your python path, because this error is due to the wrong path. Hoping this can be helpful and a good hint, cheers Daniele preeti k wrote: > I looked at this thread of the tinyos-help. > I seem to have the same problem wrt python > After "from tinyos.tossim import *" > runs but the new command "t=tossim([])" doesn't. > Can you help me out? May I know what changes and to which script should be made? > > Thanks > > > > Dear Dr.Levis, > Finally i solved, there was an error in a script. Thanks very much for your > help. > Instead i don't understand why, when i switch back to 1.x, i cannot compile > apps no more, while in 2.x yes. I'm following the instructions for changing the > paths but nothing...in the attached file there is the compiling result. > Cheers > Daniele > > > -Original Message- > From: Munaretto, Daniel > Sent: Tue 9/12/2006 10:02 AM > To: Philip Levis > > Cc: > Subject: RE: [Tinyos-help] TOSSIM 2.x doesn't run > > > > Dear Dr.Levis, > > thanks very much for your help. But after "from tinyos.tossimimport > *", that runs, the new command "t=Tossim([])" doesn't work. Changing Tossim > with TOSSIM or tossim it is the same: > "NameError: name 'tossim' is not defined". > > > Cheers > Daniele > > -Original Message- > > From: Philip Levis [mailto:[EMAIL <mailto:%5bEMAIL> PROTECTED] > >Sent: Mon 9/11/2006 6:08 PM > To: Munaretto, Daniel > > Cc: tinyos-help@Millennium.Berkeley.EDU > Subject: Re: [Tinyos-help] TOSSIM > 2.x doesn't run > > > > > On Sep 11, 2006, at 6:42 AM, Munaretto, Daniel wrote: > > > > Dear all, > >following the tutorial and archive cause of some problems, > i > > compiled Blink apps as: > > > > > make micaz sim- cygwin > > > > > in order to run then TOSSIM. > > > But after writing > > "from TOSSIM import *" > > > in python environment, the bash displays "no module named > TOSSIM". > > > Does it mean that with the sim- cygwin command i cannot run > TOSSIM > > in tinyos-2.x? > > You need to add > tinyos-2.x/support/sdk/python to your > PYTHONPATH > variable. > > > Phil > > > ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] TOSSIM 2.x doesn't run
Dear Dr.Levis, Finally i solved, there was an error in a script. Thanks very much for your help. Instead i don't understand why, when i switch back to 1.x, i cannot compile apps no more, while in 2.x yes. I'm following the instructions for changing the paths but nothing...in the attached file there is the compiling result. Cheers Daniele -Original Message- From: Munaretto, Daniel Sent: Tue 9/12/2006 10:02 AM To: Philip Levis Cc: Subject: RE: [Tinyos-help] TOSSIM 2.x doesn't run Dear Dr.Levis, thanks very much for your help. But after "from tinyos.tossim import *", that runs, the new command "t=Tossim([])" doesn't work. Changing Tossim with TOSSIM or tossim it is the same: "NameError: name 'tossim' is not defined". Cheers Daniele -Original Message- From: Philip Levis [mailto:[EMAIL PROTECTED] Sent: Mon 9/11/2006 6:08 PM To: Munaretto, Daniel Cc: tinyos-help@Millennium.Berkeley.EDU Subject: Re: [Tinyos-help] TOSSIM 2.x doesn't run On Sep 11, 2006, at 6:42 AM, Munaretto, Daniel wrote: > Dear all, >following the tutorial and archive cause of some problems, i > compiled Blink apps as: > > make micaz sim- cygwin > > in order to run then TOSSIM. > But after writing > "from TOSSIM import *" > in python environment, the bash displays "no module named TOSSIM". > Does it mean that with the sim- cygwin command i cannot run TOSSIM > in tinyos-2.x? You need to add tinyos-2.x/support/sdk/python to your PYTHONPATH variable. Phil check.rar Description: check.rar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TOSSIM 2.x doesn't run
On Sep 11, 2006, at 6:42 AM, Munaretto, Daniel wrote: Dear all, following the tutorial and archive cause of some problems, i compiled Blink apps as: make micaz sim- cygwin in order to run then TOSSIM. But after writing "from TOSSIM import *" in python environment, the bash displays "no module named TOSSIM". Does it mean that with the sim- cygwin command i cannot run TOSSIM in tinyos-2.x? You need to add tinyos-2.x/support/sdk/python to your PYTHONPATH variable. Phil ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TOSSIM 2.x doesn't run
Dear all, following the tutorial and archive cause of some problems, i compiled Blink apps as: make micaz sim- cygwin in order to run then TOSSIM. But after writing "from TOSSIM import *" in python environment, the bash displays "no module named TOSSIM". Does it mean that with the sim- cygwin command i cannot run TOSSIM in tinyos-2.x? cheers Daniele ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help