2016-09-26 53 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