Hello guys ! I am totally new to tinyos and i'm trying to compile the Blink application for a simulation by using the command : make micaz sim
Unfortunately it yields lots of errors which seem to be link errors : mkdir -p simbuild/micaz placing object files in simbuild/micaz writing XML schema to app.xml compiling BlinkAppC to object file sim.o ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim -fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jocelyn\" -DIDENT_HOSTNAME=\"Jocelyn-Ubuntu\" -DIDENT_USERHASH=0xc0121ce1L -DIDENT_TIMESTAMP=0x50afbd45L -DIDENT_UIDHASH=0xcc440c84L -I/usr/lib/gcc/i686-linux-gnu/4.7.2/include -I/usr/include -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 In file included from /usr/include/inttypes.h:26, from /usr/lib/ncc/nesc_nx.h:62: /usr/include/features.h:324:26: error: bits/predefs.h: No such file or directory /usr/include/features.h:357:25: error: sys/cdefs.h: No such file or directory /usr/include/features.h:389:23: error: gnu/stubs.h: No such file or directory In file included from /usr/lib/gcc/i686-linux-gnu/4.7.2/include/stdint.h:3, from /usr/include/inttypes.h:28, from /usr/lib/ncc/nesc_nx.h:62: /usr/include/stdint.h:27:24: error: bits/wchar.h: No such file or directory /usr/include/stdint.h:28:27: error: bits/wordsize.h: No such file or directory In file included from /usr/lib/ncc/nesc_nx.h:62: /usr/include/inttypes.h:288: syntax error before `typedef' /usr/include/inttypes.h:292: syntax error before `}' /usr/include/inttypes.h:292: warning: type defaults to `int' in declaration of `imaxdiv_t' /usr/include/inttypes.h:292: warning: data definition has no type or storage class /usr/include/inttypes.h: In function `imaxabs': /usr/include/inttypes.h:298: syntax error before `__THROW' /usr/lib/ncc/nesc_nx.h:282: `source' undeclared (first use in this function) /usr/lib/ncc/nesc_nx.h:282: (Each undeclared identifier is reported only once [........] VirtualizeTimerC: `Timer.startPeriodic' not implemented VirtualizeTimerC: `Timer.startOneShot' not implemented VirtualizeTimerC: `Timer.stop' not implemented In component `HilTimerMilliC': /home/jocelyn/tinyos-main/tos/platforms/mica/sim/HilTimerMilliC.nc:58: no match /home/jocelyn/tinyos-main/tos/platforms/mica/sim/HilTimerMilliC.nc:59: cannot find `TimerFrom' /home/jocelyn/tinyos-main/tos/platforms/mica/sim/HilTimerMilliC.nc:60: cannot find `Alarm' make: *** [sim-exe] Erreur 1 When I compile with make micaz it works well so I don't really get it. I tried lots of things, every solution find in google but nothing fixed this. Could you help me please ?! Best regards, Jocelyn -- Jocelyn Kevorkian Étudiant ingénieur en Génie Informatique Université de Technologie de Compiègne 06-81-38-53-70
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help