2016-09-26 103 views
0

我正在编写tinyos-2.1.2/apps/tests/tkn154下的示例应用程序。 这些应用程序编译没有任何错误,对于telosb和micaz微粒(使用make telosb或制作micaz)。为TOSSIM编译tkn154测试应用程序时出错

但是,当使用'make micaz sim'编译TOSSIM模拟程序时,我得到了很多问题(附后)。 任何人都可以让我知道错误在哪里。

感谢和问候,


终端输出:

的mkdir -p simbuild/micaz 配售对象文件simbuild/micaz 写XML架构app.xml的 编译TestAssociateAppC到目标文件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 = mic asb -DDEFINED_TOS_AM_GROUP = 0x22 -param max -inline-insns-single = 100000 -I/opt/tinyos-2.1.2/apps/tests/tkn154/nonbeacon-enabled/TestAssociate/device/.. -DIDENT_APPNAME = \“TestAssociateAp \“-DIDENT_USERNAME = \”kbhargava \“-DIDENT_HOSTNAME = \”Precision \“-DIDENT_USERHASH = 0x78c52cfbL -DIDENT_TIMESTAMP = 0x57e996e9L -DIDENT_UIDHASH = 0xe5bdc59eL -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154 -I /opt/tinyos-2.1.2/tos/lib/mac/tkn154/dummies -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/MCPS -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/MLME -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/private -I/opt/tinyos-2.1.2/tos/lib/mac/tkn154/interfaces/public -I/opt/tinyos-2.1.2/tos/platforms/micaz/mac/tkn154 -I/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154 -I/opt /tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer -I/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 -Wno-nesc-data-race TestAssociateAppC.nc -fnesc-dump =组件-fnesc-dump =变量-fnesc-dump =常量-fnesc-dump = typedefs -fnesc-dump = interfa cedefs -fnesc-dump = tags -fnesc-dumpfile = app.xml 来自TestAssociateAppC.nc的/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62, 中的文件:39: In interface Timestamp': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/Timestamp.nc:67: warning: declaration of time'shadows global declaration /usr/include/time.h:192:warning:shadowed declaration的位置 从/opt/tinyos-2.1.2/tos/lib/mac/包含的文件中tkn154/TKN154NonBeaconEnabledP.nc:97, 从/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:68, 从TestAssociateAppC.nc:39: 在组件DataP': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DataP.nc: In function MCPS_DATA.request ': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DataP.nc:103:union没有名为的会员3210 ieee154' 从/opt/tinyos-2.1.2/tos/lib/mac/tkn154/TKN154NonBeaconEnabledP.nc:98, 包含的/opt/tinyos-2.1.2/tos/platforms/telosb/mac/文件中tkn154/Ieee802154NonBeaconEnabledC.nc:68, from TestAssociateAppC.nc:39: In component PibP': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function Packet.clear': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:566:union没有成员ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:567: union has no member named ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:568:union没有名为ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function Packet.payloadLength'的成员: /opt/tinyos-2.1。 2/tos/lib/mac/tkn154/PibP.nc:573:union没有名为ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In function的成员Packet.setPayloadLength': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:578 :工会没有名为的会员DispatchUnslottedCsmaP ': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:在功能updateState': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:255: warning: declaration of下一个' 屏蔽全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/堆。c:71:警告:影子声明的位置 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:功能tryTransmit': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:328: warning: declaration of下一个影子全局声明 /opt/tinyos-2.1.2/ tos/lib/tossim/heap.c:71:警告:影子声明的位置 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:在函数tryReceive': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:343: warning: declaration of下一个'阴影全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:影子声明的位置 /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:函数中trySwitchOff': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DispatchUnslottedCsmaP.nc:357: warning: declaration of下一个影子全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:影子声明的位置 从/opt/tinyos-2.1.2/tos/包含的文件中芯片/ /opt/tinyos-2.1.2/tos/platforms/telosb/mac/上的/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:64, cc2420_tkn154/CC2420TKN154P.nc:39, tkn154/Ieee802154NonBeaconEnabledC.nc:91, 来自TestAssociateAppC.nc:39: 在C文件中: /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:顶层: /opt/tinyos -2.1.2/tos/chips/cc2420/CC2420.h:132:nx_bool' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:132: warning: no semicolon at end of struct or union /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:133: syntax error before ack' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:134:timesync' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:143: syntax error before}之前的语法错误之前的语法错误} ' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:143:warning:type defaults to int' in declaration of cc2420_metadata_t' /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h :143:警告:数据定义没有类型或存储级别 从/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:65, 包含的文件from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C .NC:64, 从/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, 从TestAssociateAppC.nc:39: 在接口CC2420Tx': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420Tx.nc:52: warning: declaration of时间戳”屏蔽全局声明 /opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:135:warning:shadowed declaration的位置 In component CC2420TKN154P': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: In function waitBackoffDoneUnslottedCsma': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420TKN154P.nc:524:警告:dummy' shadows global declaration /opt/tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283: warning: location of shadowed declaration /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: In function的声明waitBackoffDoneSlottedCsma': /opt/tinyos -2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:646:警告:声明dummy' shadows global declaration /opt/tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283: warning: location of shadowed declaration /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: At top level: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:822: warning: declaration of时间'影子全局声明 /usr/include/time.h:192:警告:影子声明的位置 /opt/tinyos -2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc:901:警告:声明time' shadows global declaration /usr/include/time.h:192: warning: location of shadowed declaration In file included from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:72, from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, from TestAssociateAppC.nc:39: In component CC2420ControlP': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:58:interface CC2420Ram not找到 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:59:接口CC2420寄存器未找到 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:67:接口未找到CC2420Strobe /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:在函数CC2420Power.startOscillator': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:203: interface has no command or event named中写入' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC242 0ControlP.nc:207:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:209: interface has no command or event named写' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:215:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function CC2420Power.stopOscillator' : /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:236:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function CC2420Power.rxOn': /opt/tinyos-2.1.2/tos/chips/ cc2420_tkn154/CC2420ControlP.nc:248:接口没有命令或事件命名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:249: interface has no command or event named strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:功能CC2420Power.rfOff': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:261: interface has no command or event named频闪' /opt/tinyos-2.1 0.2/TOS /芯片/ cc2420_tkn154/CC2420ControlP。nc:功能CC2420Power.flushRxFifo': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:269: warning: declaration of虚拟阴影全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/sim_noise.c:283:警告:阴影声明的位置 /opt/tinyos-2.1.2/tos/芯片/ cc2420_tkn154/CC2420ControlP.nc:278:接口没有命令或事件名为read' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:283: interface has no command or event named strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:284:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function CC2420Config.sync': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:399:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function CC2420Power.rssi': /opt/tinyos-2.1.2/ tos/chips/cc2420_tkn154/CC2420ControlP.nc:425:接口没有命令或事件名为read' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function InterruptCCA.fired': /opt/tinyos-2.1.2/tos/chips/cc2 420_tkn154/CC2420ControlP.nc:451:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function writeFsctrl': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:468:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function writeMdmctrl0 ': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:481:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In function writeId': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 /CC2420ControlP.nc:511:接口没有名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:515: interface has no command or event named的命令或事件写' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:在函数writeTxPower': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:519: interface has no command or event named中写' 在/ opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:39, from /opt/tinyos-2.1.2/tos/chips/cc2420_t来自/opt/tinyos-2.1.2/tos/platforms/telosb/mac/的/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, 中的kn154/CC2420ControlTransmitC.nc:88, tkn154/Ieee802154NonBeaconEnabledC.nc:91, 从TestAssociateAppC.nc:39: 在接口GpioCapture': /opt/tinyos-2.1.2/tos/interfaces/GpioCapture.nc: At top level: /opt/tinyos-2.1.2/tos/interfaces/GpioCapture.nc:61: warning: declaration of时间”屏蔽全局声明 /usr/include/time.h:192:警告:阴影声明 的位置在文件从/选择包括/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:47, from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88, from/opt /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaco /tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, nEnabledC.nc:91, 来自TestAssociateAppC.nc:39: 在组件Atm128GpioCaptureC': /opt/tinyos-2.1.2/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:71: warning: declaration of时间'阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置 从/ opt/tinyos中包含的文件-2.1.2/TOS /芯片/ atm128 /定时器/ HplAtm128Timer1C.nc:53, 从/opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48, 从/选择/opt/tinyos-2.1 /tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88, from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, from /opt/tinyos-2.1 .2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, 来自TestAssociateAppC.nc:39: 在组件HplAtm128Timer1P': /opt/tinyos-2.1.2/tos/chips/atm128/timer/HplAtm128Timer1P.nc:215: warning: declaration of时间'阴影全局声明 /usr/include/time.h:192:警告:影子声明的位置 包含在/opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC中的文件中。 NC:53, 从/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:88, 从/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, 从/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, 从TestAssociateAppC.nc:39: 在组件HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:62: component arguments must be constants In component HplAtm128InterruptPinP': /opt/tinyos-2.1。 2/TOS /芯片/ atm128 /针/ HplAtm128InterruptC。NC:63:组分参数必须是常数 在部件HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:64: component arguments must be constants In component HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:65:组分参数必须是常数 在部件HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:66: component arguments must be constants In component HplAtm128InterruptPinP ': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:67:组件参数必须是常量 在组件HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:68: component arguments must be constants In component中HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/芯片/ atm128/pins/HplAtm128InterruptC.nc:69:组件参数必须为常量 从/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, 包含的文件来自/ opt/tinyos- 2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, 从TestAssociateAppC.nc:39: 在组件CC2420ControlTransmitC': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:91: component CC2420SpiC not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:91: component CC2420SpiC”不是通用 在文件从/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:113, 从/选择/ tinyos-包括2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, from TestAssociateAppC.nc:39 : 在组件CC2420TransmitP': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:65: interface ChipSpiResource not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:66: interface CC2420Fifo not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:80: interface CC2420Receive not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function CC2420Tx.loadTXFIFO ': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:164:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:167: interface has no command or event named写' /opt/tinyos-2.1。 2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:顶级: /opt/tinyos-2.1.2 /tos/chips/cc2420_tkn154/CC2420TransmitP.nc:173:0 writeDone' is not in interface TXFIFO' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:在函数TXFIFO.writeDone': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:178: interface has no command or event named中写' /opt/tinyos-2.1.2 /tos/chips/cc2420_tkn154/CC2420TransmitP.nc:182:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function CC2420Tx.send': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:203:interface has没有命令或事件strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:203: interface has no command or event named strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:211:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:245: warning: declaration of时间'阴影全局声明 /usr/include/time .h:192:警告:影子声明的位置 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:功能CaptureSFD.captured': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:297: interface has no command or event named sfd' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:320:接口没有命令或事件名为sfd_dropped' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function CC2420Tx.modify': /opt/tinyos-2.1.2/tos/芯片/ cc2420_tkn154/CC2420TransmitP.nc:336:接口没有命令或事件名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:351:释放'不在接口ChipSpiResource' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function ChipSpiResource.releasing': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: 353:接口没有命令或事件名为abortRelease' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:363:接收'不在接口CC2420Receive' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function BackoffAlarm.fired': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:386:接口没有命令或事件命名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: In function signalDone': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:413:interface ha s没有命令或事件名为attemptRelease' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: At top level: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:417: readDone'不在接口TXFIFO' In file included from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:51, from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:141, from /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154C.nc:83, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:91, from TestAssociateAppC.nc:39: In component CC2420ReceiveP'中: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:214:警告:声明time' shadows global declaration /usr/include/time.h:192: warning: location of shadowed declaration /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:214: sfd'不在接口中CC2420Receive' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:224: sfd_dropped“是不是在接口CC2420Receive' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:262: readDone”是不是在接口RXFIFO' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc: In function RXFIFO.readDone': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:288:接口没有命令或事件命名continueRead' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:321: interface has no command or event named继续读' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:337:接口没有命令或事件名为continueRead' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:364: interface has no command or event named收到' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420ReceiveP.nc:顶层: /opt/tinyos-2.1。2/TOS /芯片/ cc2420_tkn154/CC2420ReceiveP.nc:391:writeDone' is not in interface RXFIFO ' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:在功能flush': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:457: interface has no command or event named选通' /opt/tinyos-2.1。 2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:458:接口没有命令或事件名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc: In function接收': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:474:接口没有命令或事件名为beginRead' In component CC2420ReceiveC': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:顶级: /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC。 nc:52:组件CC2420SpiC' is not generic /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:69: no match /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:70: cannot find RXFIFO' ... /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:75:找不到MDMCTRL1' In component CC2420ControlTransmitC': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:92:不匹配 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:93:找不到SRXON' ... /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:139: cannot find SACKPEND' 从/opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:24包含的文件中: /opt/tinyos-2.1.2/tos/platforms/mica/MicaTimer.h :121:2:错误:#error“未知的时钟频率。 MHZ必须定义为1,2,4或8中的一个。“ 从/opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:24, 包含的/ opt/tinyos- 2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, 来自TestAssociateAppC.nc:39: 在C文件中: /opt/tinyos-2.1.2/tos/platforms/mica/MicaTimer.h:126:MHZ' undeclared here (not in a function) /opt/tinyos-2.1.2/tos/platforms/mica/MicaTimer.h:126: enumerator value for PLATFORM_MHZ'不是整数常量 在/ opt/tinyos- 2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from/opt/TinyOS的-2.1.2/TOS /平台/ telosb/MAC/tkn154/Ieee802154NonB eaconEnabledC.nc:92, 从TestAssociateAppC.nc:39: 在组件AlarmOne16C': /opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:30: syntax error before音” 在文件从/opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:34, 从/选择包括/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32, 从/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, 从/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, 从TestAssociateAppC.nc:39: 在组件InitOneP': /opt/tinyos-2.1.2/tos/platforms/mica/InitOneP.nc:24: MICA_PRESCALER_ONE”这里未声明(不是在功能) 在文件包括从/opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32, from /opt/tinyos-2.1.2/tos/platfo rms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, from TestAssociateAppC.nc:39 : 在组件AlarmOne16C': /opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:35:音 '这里未声明(不在函数) /opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:41:找不到Alarm' In file included from /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:28, from /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, from TestAssociateAppC.nc:39: In component CounterOne16C': /opt/tinyos-2.1 .2/tos/platforms/mica/CounterOne16C.nc:24:在TOne' /opt/tinyos-2.1.2/tos/platforms/mica/CounterOne16C.nc:29:之前出现语法错误TOne'未在此处声明(不在函数中) /opt/tinyos-2.1.2/tos/platforms/mica/CounterOne16C.nc:31 :找不到Counter' In file included from /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:32, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, from TestAssociateAppC.nc:39: In component Counter32khz32C': /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:29:TOne' undeclared here (not in a function) /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:30: MICA_DIVIDE_ONE_FOR_32KHZ_LOG2'undecla红色(不在功能中) /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:31:counter_one_overflow_t' undeclared here (not in a function) /opt/tinyos-2.1.2/tos/platforms/mica/Counter32khz32C.nc:34: no match In file included from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm62500hz32C.nc:8, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:92, from TestAssociateAppC.nc:39: In component Alarm32khz32C': /opt/tinyos-2.1.2/tos/platforms/mica/ Alarm32khz32C.nc:33:TOne' undeclared here (not in a function) /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C.nc:34: MICA_DIVIDE_ONE_FOR_32KHZ_LOG2'此处未声明(不在功能中) /opt/tinyos-2.1.2/tos/platforms/mica/Alarm32khz32C。nc:37:不匹配 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm32khzTo62500hzTransformC.nc:53:2:warning:#warning“警告:MAC时序不符合标准! “ make:*** [sim-exe]错误1

回答

0
For linux systems try: 

Linux Installation 

Download JDK and put it in /usr/java directory 
sudo chown <output of whoami> -R /usr/java/jdk1.8.0_111/ 
sudo nano /etc/bash.bashrc 
export JAVA_HOME=/usr/java/jdk1.8.0_111 
export PATH=$JAVA_HOME/bin:$PATH 

sudo apt-get install update 
sudo apt-get upgrade 
sudo apt-get install git-core 
sudo apt-get install tinyos-tools 
sudo apt-get install tinyos-source 
sudo apt-get install automake 
sudo apt-get install avr-libc 
sudo apt-get install gcc-msp430 
sudo git clone /opt/git://github.com/tinyos/tinyos-main.git 
sudo chown <output of whoami> -R tinyos-main/ 
cd tinyos-main/tools/ 
./Bootstrap 
./configure 
make 
sudo make install 

For MacoS: 

Install JDK 
Install homebrew 
Install macports 
Install Xcode 

sudo port install gcc49   
sudo port select gcc      
sudo port select gcc mp-gcc49 
sudo port install msp430-gcc 
sudo port install msp430-libc 
sudo port install avr-libc 
brew install nesc 
cd /opt/ 
sudo git clone git://github.com/tinyos/tinyos-main.git 
cd tinyos-main/tools 
sudo ./Bootstrap 
sudo ./configure 
sudo make 
sudo make install