Hi Cherifa Boucetta,
I had some trouble very similar to this as well when I first started using
TOSSIM.
After a little investigation, I found my problem to be a conflicting problems
with the gcc
in msp430/bin and the normal gcc.
Try temporarily changing your PATH variable to by:
PATH=$PATH:/opt/msp430/bin
then
make micaz sim
see if it helps. That works for me.
Anthony
Date: Fri, 6 Mar 2009 08:33:56 +0100
From: [email protected]
To: [email protected]
Subject: [Tinyos-help] urgent:TOSSIM Error
Hi all,
When I use sim, i got this error
cher...@toshiba-laptop:/opt/tinyos-2.1.0/apps/Blink$ make mica2 sim
mkdir -p simbuild/mica2
placing object files in simbuild/mica2
writing XML schema to app.xml
compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/mica2/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)
-Wall -Wshadow -Wnesc-all -target=mica2 -fnesc-cfile=simbuild/mica2/app.c
-board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param
max-inline-insns-single=100000 -DIDENT_APPNAME=\"BlinkAppC\"
-DIDENT_USERNAME=\"cherifa\" -DIDENT_HOSTNAME=\"toshiba-laptop\"
-DIDENT_USERHASH=0x56a83370L -DIDENT_TIMESTAMP=0x49b022c8L
-DIDENT_UIDHASH=0x3bafddc8L -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
Unknown target mica2
Known targets for TinyOS directory /opt/tinyos-2.1.0/tos
and the specified include directories are:
mica2 telosa mica2dot micaz tinynode eyesIFXv1 eyesIFXv2 telosb shimmer null
intelmote2 iris
make: *** [sim-exe] Erreur 2
I'am configured the envirement
export TOSROOT=/opt/tinyos-2.1.0
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
export MAKERULES=$TOSROOT/support/make/Makerules
export PATH=/opt/msp430/bin:$PATH
When I simulate make micaz sim I got
cher...@toshiba-laptop:/opt/tinyos-2.1.0/apps/Blink$ make micaz sim
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\(\)
-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=\"cherifa\" -DIDENT_HOSTNAME=\"toshiba-laptop\"
-DIDENT_USERHASH=0x56a83370L -DIDENT_TIMESTAMP=0x49b023ddL
-DIDENT_UIDHASH=0xe836c4f8L -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
/usr/lib/ncc/deputy_nodeputy.h:4:20: error: stddef.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:16:22: error: inttypes.h: No such file or directory
/usr/lib/ncc/nesc_nx.h:235: syntax error before `__nesc_ntoh_uint8'
/usr/lib/ncc/nesc_nx.h:240: syntax error before `__nesc_hton_uint8'
/usr/lib/ncc/nesc_nx.h:242: warning: type defaults to `int' in declaration of
`base'
/usr/lib/ncc/nesc_nx.h:242: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:242: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:243: syntax error before `return'
/usr/lib/ncc/nesc_nx.h:246: syntax error before `__nesc_ntoh_leuint8'
/usr/lib/ncc/nesc_nx.h:251: syntax error before `__nesc_hton_leuint8'
/usr/lib/ncc/nesc_nx.h:253: warning: type defaults to `int' in declaration of
`base'
/usr/lib/ncc/nesc_nx.h:253: redefinition of `base'
/usr/lib/ncc/nesc_nx.h:242: previous declaration of `base'
/usr/lib/ncc/nesc_nx.h:253: `value' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:253: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:254: syntax error before `return'
....
....
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:110: warning: data definition has no
type or storage class
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:113: syntax error before
`nx_am_addr_t'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:113: warning: no semicolon at end of
struct or union
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:114: syntax error before `src
...
I don't Know how to resolve this problem, Help please.
Thanks.
--
cordialement
Cherifa Boucetta
--
cordialement
Cherifa Boucetta
_________________________________________________________________
Show them the way! Add maps and directions to your party invites.
http://www.microsoft.com/windows/windowslive/products/events.aspx
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help