I think I have a similar problem on my system. I have a 1 week old tinyos2-x cvs version on a Linux system with python2.5 installed.
I tried 'make tmote sim' in the Blink app directory and got back an error msg (see below). Apparently a linker error but I have no clues. Vasoula, is this what you are experiencing ? Marek make tmote sim mkdir -p build/telosb placing object files in build/telosb writing XML schema to app.xml compiling BlinkAppC to object file sim.o ncc -c -shared -fPIC -o build/telosb/sim.o -g -O0 -O -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -mdisable-hwmul -Wall -Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -target=telosb -fnesc-cfile=build/telosb/app.c -board= -Wno-nesc-data-race BlinkAppC.nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml /data/hiwi/tinyos/tinyos-2.x/tos/lib/timer/TransformCounterC.nc: In function `TransformCounterC$0$CounterFrom$overflow': /data/hiwi/tinyos/tinyos-2.x/tos/lib/timer/TransformCounterC.nc:126: warning: implicit declaration of function `sim_node' /data/hiwi/tinyos/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc: In function `__nesc_nido_resolve': /data/hiwi/tinyos/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:158: warning: implicit declaration of function `strcmp' /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc: In function `__nesc_nido_initialise': /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:228: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:229: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:230: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:231: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:232: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:263: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:264: warning: passing arg 1 of `memset' discards qualifiers from pointer target type /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:270: warning: implicit declaration of function `memcpy' /data/hiwi/tinyos/tinyos-2.x/tos/interfaces/Scheduler.nc: At top level: /data/hiwi/tinyos/tinyos-2.x/tos/lib/timer/VirtualizeTimerC.nc:152: warning: `__nesc_nido_resolve' defined but not used /data/hiwi/tinyos/tinyos-2.x/tos/chips/msp430/McuSleepC.nc:222: warning: `__nesc_nido_initialise' defined but not used compiling Python support and C libraries into pytossim.o, tossim.o, and c-support.o g++ -c -shared -fPIC -o build/telosb/pytossim.o -g -O0 -O /data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim -DHAVE_CONFIG_H g++ -c -shared -fPIC -o build/telosb/tossim.o -g -O0 -O /data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim/tossim.c -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim g++ -c -shared -fPIC -o build/telosb/c-support.o -g -O0 -O /data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim/hashtable.c -I/usr/include/python2.5 -I/data/hiwi/tinyos/tinyos-2.x/tos/lib/tossim linking into shared object ./_TOSSIMmodule.so g++ -shared -fPIC build/telosb/pytossim.o build/telosb/sim.o build/telosb/tossim.o build/telosb/c-support.o -lstdc++ -o _TOSSIMmodule.so /usr/bin/ld: build/telosb/sim.o: Relocations in generic ELF (EM: 105) /usr/bin/ld: build/telosb/sim.o: Relocations in generic ELF (EM: 105) build/telosb/sim.o: could not read symbols: File in wrong format collect2: ld returned 1 exit status make: *** [sim-exe] Fehler 1 Am Samstag, den 02.06.2007, 11:34 +0300 schrieb Vasoula: > According to Lesson 11, compiling TOSSIM has five basic steps. > I believe that I am going through the first three steps successfully, > since I can see their products (files tos_image.xml, wiring-check.xml, > sim.o, tossim.o, pytossim.o) > But how do I check if the shared library is built (4th step) and if > the code in lib/tossim is copied into the local directory (5th step)? > That last one actually I am sure that doesn't work or I wouldn't have > problems with compiling. > I am using tinyos-2.x, cygwin on windows xp and python. I've tried to > compile Blink and Radio Count to Leds but both of them return a lot of > mistakes. > Waiting for any help at all. Thanks! > > Vasoula > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Marek Jawurek <[EMAIL PROTECTED]> _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
