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'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_int8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_ntoh_leint8'
/usr/lib/ncc/nesc_nx.h:257: syntax error before `__nesc_hton_leint8'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `__nesc_bf_decode8'
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: syntax error before `if'
/usr/lib/ncc/nesc_nx.h:258: warning: type defaults to `int' in declaration
of `x'
/usr/lib/ncc/nesc_nx.h:258: `uint8_t' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: `msg' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: subscripted value is neither array nor pointer
/usr/lib/ncc/nesc_nx.h:258: `length' undeclared here (not in a function)
/usr/lib/ncc/nesc_nx.h:258: warning: data definition has no type or storage
class
/usr/lib/ncc/nesc_nx.h:258: syntax error before `++'
/usr/lib/ncc/nesc_nx.h:258: syntax error before `|='
/usr/lib/ncc/nesc_nx.h:258: syntax error before `*'
/usr/lib/ncc/nesc_nx.h: In function `__nesc_bf_encode8':
/usr/lib/ncc/nesc_nx.h:258: warning: declaration of `byte_offset' shadows
global declaration
/usr/lib/ncc/nesc_nx.h:258: warning: location of shadowed declaration
/usr/lib/ncc/nesc_nx.h:258: `offset' undeclared (first use in this function)
/usr/lib/ncc/nesc_nx.h:258: (Each undeclared identifier is reported only
once
/usr/lib/ncc/nesc_nx.h:258: for each function it appears in.)
/usr/lib/ncc/nesc_nx.h:258: warning: declaration of `bit_offset' shadows
global declaration
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:49:20: error: string.h: No such file
or directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:50:20: error: stdlib.h: No such file
or directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:51:18: error: math.h: No such file or
directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:52:20: error: stddef.h: No such file
or directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:53:19: error: ctype.h: No such file
or directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:54:19: error: stdio.h: No such file
or directory
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:57: syntax error before `bool'
/opt/tinyos-2.1.0/tos/lib/tossim/tos.h:70: syntax error before `TOS_NODE_ID'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/sim_event_queue.h:40,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:78:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.h:63: syntax error before `FILE'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.h:64: syntax error before
`sim_remove_channel'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.h:66: syntax error before
`sim_run_next_event'
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:78:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_log.c:254: syntax error before `args'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_log.c:255: warning: declaration of `i'
shadows global declaration
/opt/tinyos-2.1.0/tos/lib/tossim/sim_log.c:206: warning: location of
shadowed declaration
/opt/tinyos-2.1.0/tos/lib/tossim/sim_log.c:256: `outputs' undeclared (first
use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.c:39:22: error: sys/time.h: No
such file or directory
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/sim_tossim.c:41,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:96:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.h: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.h:69: syntax error before
`uint32_t'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.h:69: warning: no semicolon at
end of struct or union
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:97:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:37:18: error: time.h: No such
file or directory
In file included from /opt/tinyos-2.1.0/tos/lib/tossim/sim_mac.c:38,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:97:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:48: syntax error before
`FreqKeyNum'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:50: syntax error before
`noiseData'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:55: syntax error before
`node_id'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:56: syntax error before
`node_id'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:57: syntax error before
`search_bin_num'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: In function `sim_noise_init':
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:66: `noiseData' undeclared
(first use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:66: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:67: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:68: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:68: warning: implicit
declaration of function `malloc'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:69: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:70: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:76: syntax error before
`node_id'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: In function
`sim_noise_create_model':
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:77: `node_id' undeclared (first
use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:81: syntax error before
`node_id'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: In function `sim_real_noise':
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:82: `cur_t' undeclared (first
use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:82: `noiseData' undeclared
(first use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:82: `node_id' undeclared (first
use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:82: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:83: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:86: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:86: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:89: syntax error before
`node_id'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: In function
`sim_noise_trace_add':
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:91: `noiseData' undeclared
(first use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:91: `node_id' undeclared (first
use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:91: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:92: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:93: warning: declaration of
`data' shadows global declaration
/opt/tinyos-2.1.0/tos/lib/tossim/sim_event_queue.h:51: warning: location of
shadowed declaration
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:93: warning: implicit
declaration of function `malloc'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:93: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:94: warning: implicit
declaration of function `memcpy'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:94: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:94: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:95: warning: implicit
declaration of function `free'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:95: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:96: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:97: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:99: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:99: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:99: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:99: `noiseVal' undeclared
(first use in this function)
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:100: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:100: wrong type argument to
increment
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:101: subscripted value is
neither array nor pointer
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c: At top level:
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:105: syntax error before
`search_bin_num'
/opt/tinyos-2.1.0/tos/lib/tossim/sim_noise.c:111: warning: type defaults to
`int' in declaration of `bin'
In file included from
/opt/tinyos-2.1.0/tos/lib/tossim/platform_message.h:38,
from /opt/tinyos-2.1.0/tos/types/message.h:4,
from /opt/tinyos-2.1.0/tos/lib/tossim/sim_packet.c:36,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:98:
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:7: syntax error before
`nx_am_addr_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:7: warning: no semicolon
at end of struct or union
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:8: syntax error before
`src'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:9: syntax error before
`length'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:10: syntax error before
`group'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:11: syntax error before
`type'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:12: warning: type defaults
to `int' in declaration of `tossim_header_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:12: warning: data
definition has no type or storage class
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:15: syntax error before
`nxle_uint16_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:15: warning: no semicolon
at end of struct or union
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:16: warning: type defaults
to `int' in declaration of `tossim_footer_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:16: warning: data
definition has no type or storage class
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:19: syntax error before
`nx_int8_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:19: warning: no semicolon
at end of struct or union
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:20: syntax error before
`ack'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:21: syntax error before
`time'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:22: warning: type defaults
to `int' in declaration of `tossim_metadata_t'
/opt/tinyos-2.1.0/tos/lib/tossim/TossimRadioMsg.h:22: warning: data
definition has no type or storage class
In file included from
/opt/tinyos-2.1.0/tos/lib/tossim/platform_message.h:39,
from /opt/tinyos-2.1.0/tos/types/message.h:4,
from /opt/tinyos-2.1.0/tos/lib/tossim/sim_packet.c:36,
from /opt/tinyos-2.1.0/tos/lib/tossim/tos.h:98:
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:72: syntax error before
`uart_id_t'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:99: syntax error before `uint8_t'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:99: warning: no semicolon at end
of struct or union
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:100: syntax error before `flags'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:101: syntax error before
`reserved'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:102: syntax error before
`platform'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:103: syntax error before `MTU'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:104: syntax error before
`radio_crc_fail'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:105: syntax error before
`radio_queue_drops'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:106: syntax error before
`serial_crc_fail'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:107: syntax error before
`serial_tx_fail'
/opt/tinyos-2.1.0/tos/lib/serial/Serial.h:108: syntax error before
`serial_short_packets'
/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*
...
[Message tronqué]
--
cordialement
Cherifa Boucetta
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help