Hi,
Could someone help me out? I ran 'make pc' for the Blink application and
it gave me the following errors:
compiling Blink to a pc binary
ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall
-Wshadow -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all -fnesc-nido-tosnodes=1000
-fnesc-cfile=build/pc/app.c Blink.nc -lm
/opt/tinyos-1.x/tos/system/tos.h:47:22: error: inttypes.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:71:20: error: string.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:72:20: error: stdlib.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:73:18: error: math.h: No such file or
directory
/opt/tinyos-1.x/tos/system/tos.h:75:19: error: ctype.h: No such file or
directory
In file included from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/hardware.h:40:19: error: stdio.h: No such
file or directory
/opt/tinyos-1.x/tos/platform/pc/hardware.h:42:20: error: signal.h: No such
file or directory
In file included from /opt/tinyos-1.x/tos/platform/pc/nido.h:67,
from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/event_queue.h:61:21: error: pthread.h: No
such file or directory
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:43,
from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/nido.h:74:22: error: sys/time.h: No such
file or directory
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:63,
from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/external_comm.h:35:23: error: sys/types.h:
No such file or directory
/opt/tinyos-1.x/tos/platform/pc/external_comm.h:36:24: error: sys/socket.h:
No such file or directory
/opt/tinyos-1.x/tos/platform/pc/external_comm.h:37:24: error: netinet/in.h:
No such file or directory
/opt/tinyos-1.x/tos/platform/pc/external_comm.h:38:20: error: unistd.h: No
such file or directory
/opt/tinyos-1.x/tos/platform/pc/external_comm.h:39:19: error: errno.h: No
such file or directory
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:108,
from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/event_queue.c:45:18: error: time.h: No such
file or directory
In file included from /opt/tinyos-1.x/tos/platform/pc/hardware.h:116,
from /opt/tinyos-1.x/tos/system/tos.h:132:
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:45:22: error: sys/stat.h: No such
file or directory
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:46:19: error: fcntl.h: No such file
or directory
/opt/tinyos-1.x/tos/platform/pc/eeprom.c:48:22: error: sys/mman.h: No such
file or directory
<commandline>: failed to preprocess /opt/tinyos-1.x/tos/system/tos.h
In file included from /opt/tinyos-1.x/tos/platform/pc/Main.nc:45:
/opt/tinyos-1.x/tos/types/AM.h:62: syntax error before `TOS_AM_GROUP'
/opt/tinyos-1.x/tos/types/AM.h:87: parse error before `uint16_t'
/opt/tinyos-1.x/tos/types/AM.h:87: warning: no semicolon at end of struct or
union
/opt/tinyos-1.x/tos/types/AM.h:88: syntax error before `type'
/opt/tinyos-1.x/tos/types/AM.h:89: syntax error before `group'
/opt/tinyos-1.x/tos/types/AM.h:90: syntax error before `length'
/opt/tinyos-1.x/tos/types/AM.h:91: syntax error before `data'
/opt/tinyos-1.x/tos/types/AM.h:92: syntax error before `crc'
/opt/tinyos-1.x/tos/types/AM.h:100: syntax error before `strength'
/opt/tinyos-1.x/tos/types/AM.h:101: syntax error before `ack'
/opt/tinyos-1.x/tos/types/AM.h:102: syntax error before `time'
/opt/tinyos-1.x/tos/types/AM.h:103: syntax error before `sendSecurityMode'
/opt/tinyos-1.x/tos/types/AM.h:104: syntax error before
`receiveSecurityMode'
/opt/tinyos-1.x/tos/types/AM.h:105: warning: type defaults to `int' in
declaration of `TOS_Msg'
/opt/tinyos-1.x/tos/types/AM.h:105: warning: data definition has no type or
storage class
/opt/tinyos-1.x/tos/types/AM.h:110: parse error before `uint16_t'
/opt/tinyos-1.x/tos/types/AM.h:110: warning: no semicolon at end of struct
or union
/opt/tinyos-1.x/tos/types/AM.h:111: syntax error before `type'
/opt/tinyos-1.x/tos/types/AM.h:113: syntax error before `length'
/opt/tinyos-1.x/tos/types/AM.h:114: syntax error before `group'
/opt/tinyos-1.x/tos/types/AM.h:115: syntax error before `data'
/opt/tinyos-1.x/tos/types/AM.h:116: syntax error before `crc'
/opt/tinyos-1.x/tos/types/AM.h:124: syntax error before `strength'
/opt/tinyos-1.x/tos/types/AM.h:125: syntax error before `ack'
/opt/tinyos-1.x/tos/types/AM.h:126: syntax error before `time'
/opt/tinyos-1.x/tos/types/AM.h:127: syntax error before `sendSecurityMode'
/opt/tinyos-1.x/tos/types/AM.h:128: syntax error before
`receiveSecurityMode'
/opt/tinyos-1.x/tos/types/AM.h:129: warning: type defaults to `int' in
declaration of `TOS_Msg_TinySecCompat'
/opt/tinyos-1.x/tos/types/AM.h:129: warning: data definition has no type or
storage class
/opt/tinyos-1.x/tos/types/AM.h:133: parse error before `uint16_t'
/opt/tinyos-1.x/tos/types/AM.h:133: warning: no semicolon at end of struct
or union
/opt/tinyos-1.x/tos/types/AM.h:134: syntax error before `type'
/opt/tinyos-1.x/tos/types/AM.h:135: syntax error before `length'
/opt/tinyos-1.x/tos/types/AM.h:137: syntax error before `iv'
/opt/tinyos-1.x/tos/types/AM.h:139: syntax error before `enc'
/opt/tinyos-1.x/tos/types/AM.h:141: syntax error before `mac'
/opt/tinyos-1.x/tos/types/AM.h:144: syntax error before `calc_mac'
/opt/tinyos-1.x/tos/types/AM.h:145: syntax error before `ack_byte'
/opt/tinyos-1.x/tos/types/AM.h:146: syntax error before `cryptoDone'
/opt/tinyos-1.x/tos/types/AM.h:147: syntax error before `receiveDone'
/opt/tinyos-1.x/tos/types/AM.h:149: syntax error before `validMAC'
/opt/tinyos-1.x/tos/types/AM.h:150: warning: type defaults to `int' in
declaration of `TinySec_Msg'
/opt/tinyos-1.x/tos/types/AM.h:155: invalid use of undefined type `struct
TOS_Msg'
/opt/tinyos-1.x/tos/types/AM.h:155: `uint16_t' undeclared here (not in a
function)
/opt/tinyos-1.x/tos/types/AM.h:155: enumerator value for `MSG_DATA_SIZE' not
integer constant
/opt/tinyos-1.x/tos/types/AM.h:156: invalid use of undefined type `struct
TinySec_Msg'
/opt/tinyos-1.x/tos/types/AM.h:156: enumerator value for
`TINYSEC_MSG_DATA_SIZE' not integer constant
/opt/tinyos-1.x/tos/types/AM.h:158: invalid use of undefined type `struct
TOS_Msg'
/opt/tinyos-1.x/tos/types/AM.h:158: enumerator value for
`LENGTH_BYTE_NUMBER' not integer constant
/opt/tinyos-1.x/tos/types/AM.h:159: `uint16_t' undeclared here (not in a
function)
/opt/tinyos-1.x/tos/types/AM.h:171: syntax error before `*'
/opt/tinyos-1.x/tos/types/AM.h:173: syntax error before `TOS_MsgLength'
In file included from /opt/tinyos-1.x/tos/platform/pc/PCRadio.h:97:
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:40:23: error: sys/types.h: No
such file or directory
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:41:22: error: sys/stat.h: No
such file or directory
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:42:19: error: fcntl.h: No such
file or directory
/opt/tinyos-1.x/tos/platform/pc/rfm_model.c:43:21: error: pthread.h: No such
file or directory
/opt/tinyos-1.x/tos/platform/pc/Main.nc:46: failed to preprocess
/opt/tinyos-1.x/tos/platform/pc/PCRadio.h
In file included from /opt/tinyos-1.x/tos/platform/pc/Main.nc:48:
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: only commands and events
can be defined in interfaces
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: warning: return-type
defaults to `int'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:63: parse error before `init'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: only commands and events
can be defined in interfaces
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: warning: return-type
defaults to `int'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: redefinition of `result_t'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:70: parse error before `start'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: only commands and events
can be defined in interfaces
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: warning: return-type
defaults to `int'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: redefinition of `result_t'
/opt/tinyos-1.x/tos/interfaces/StdControl.nc:78: parse error before `stop'
In file included from /opt/tinyos-1.x/tos/platform/pc/nido.h:67:
/opt/tinyos-1.x/tos/platform/pc/event_queue.h:61:21: error: pthread.h: No
such file or directory
/opt/tinyos-1.x/tos/platform/pc/nido.h:74:22: error: sys/time.h: No such
file or directory
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:44: failed to preprocess
/opt/tinyos-1.x/tos/platform/pc/nido.h
In file included from /opt/tinyos-1.x/tos/platform/pc/Nido.nc:48:
/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc:75: only commands and events
can be defined in interfaces
/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc:75: warning: return-type
defaults to `int'
/opt/tinyos-1.x/tos/interfaces/ReceiveMsg.nc:75: parse error before
`receive'
In file included from /opt/tinyos-1.x/tos/platform/pc/Nido.nc:52:
/opt/tinyos-1.x/tos/interfaces/Pot.nc:78: only commands and events can be
defined in interfaces
/opt/tinyos-1.x/tos/interfaces/Pot.nc:78: warning: return-type defaults to
`int'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:78: parse error before `init'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:87: only commands and events can be
defined in interfaces
/opt/tinyos-1.x/tos/interfaces/Pot.nc:87: warning: return-type defaults to
`int'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:87: redefinition of `result_t'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:87: parse error before `set'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:96: only commands and events can be
defined in interfaces
/opt/tinyos-1.x/tos/interfaces/Pot.nc:96: warning: return-type defaults to
`int'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:96: redefinition of `result_t'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:96: parse error before `increase'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:105: only commands and events can be
defined in interfaces
/opt/tinyos-1.x/tos/interfaces/Pot.nc:105: warning: return-type defaults to
`int'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:105: redefinition of `result_t'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:105: parse error before `decrease'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:112: only commands and events can be
defined in interfaces
/opt/tinyos-1.x/tos/interfaces/Pot.nc:112: warning: return-type defaults to
`int'
/opt/tinyos-1.x/tos/interfaces/Pot.nc:112: parse error before `get'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc: In function `usage':
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:70: implicit declaration of function
`fprintf'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:70: `stderr' undeclared (first use
in this function)
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:70: (Each undeclared identifier is
reported only once
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:70: for each function it appears
in.)
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:71: implicit declaration of function
`exit'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc: In function `help':
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:75: implicit declaration of function
`fprintf'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:75: `stderr' undeclared (first use
in this function)
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:93: implicit declaration of function
`dbg_help'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:95: implicit declaration of function
`exit'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc: At top level:
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:98: parse error before `*'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc: In function `event_boot_handle':
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:101: implicit declaration of
function `printTime'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:102: implicit declaration of
function `dbg'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:102: `DBG_BOOT' undeclared (first
use in this function)
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:106: implicit declaration of
function `nido_start_mote'
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:106: `uint16_t' undeclared (first
use in this function)
/opt/tinyos-1.x/tos/platform/pc/Nido.nc:106: parse error before `NODE_NUM'
...and many others along the same line.
Is it because it's not able to find the standard C libraries. How can I fix
this? Also, in the installation instructions it is given that
MAKERULES=$TOSROOT/tools/make/Makerules. However, I do not have a directory
called 'make' in 'tools'. When I run 'make' in tools, it gives me a huge
list of errors? Are these errors related? Please do tell.
Thanks and regards,
Bharat.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help