0

我正在尝试在 tinyos-2.1.2/apps/tests/tkn154 下编译示例应用程序。telosb 和 micaz motes 的应用程序编译没有任何错误(使用 make telosb 或 make micaz)。

但是,在使用“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=micasb -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=\"精度\" -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=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc -dump=tags -fnesc-dumpfile=app.xml 在来自 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62 的文件中,来自 TestAssociateAppC.nc:39:在界面中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 =components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1 包含的文件中.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自 TestAssociateAppC.nc:39:在界面中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 =components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1 包含的文件中.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自 TestAssociateAppC.nc:39:在界面中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=components -fnesc-dump=variables -fnesc-dump=constants -fnesc -dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc 包含的文件中:62,来自 TestAssociateAppC.nc:39:在界面中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=components -fnesc-dump=variables -fnesc-dump=constants -fnesc -dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在 /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc 包含的文件中:62,来自 TestAssociateAppC.nc:39:在界面中nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在从/包含的文件中opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自TestAssociateAppC.nc:39:在界面中nc -fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml 在从/包含的文件中opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:62,来自TestAssociateAppC.nc:39:在界面中Timestamp': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/Timestamp.nc:67: warning: declaration oftime' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /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 functionMCPS_DATA.request'中:/opt/tinyos-2.1.2/tos/ lib/mac/tkn154/DataP.nc:103: union has no member named ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/DataP.nc:105: union has no member namedieee154' 在 /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,来自 TestAssociateAppC.nc:39:在组件中PibP': /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In functionPacket.clear':/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:566:联合没有名为ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:567: union has no member namedieee154 的成员'/opt/tinyos-2.1.2/tos/lib/mac/ tkn154/PibP.nc:568:联合没有名为ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In functionPacket.payloadLength'的成员:/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:573:联合没有名为ieee154' /opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc: In functionPacket.setPayloadLength'的成员:/opt/tinyos-2.1.2/tos/lib/mac/tkn154/PibP.nc:578:工会没有名为ieee154' In file included from /opt/tinyos-2.1.2/tos/lib/mac/tkn154/TKN154NonBeaconEnabledP.nc:100, from /opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/Ieee802154NonBeaconEnabledC.nc:68, from TestAssociateAppC.nc:39: In componentDispatchUnslottedCsmaP' 的成员:/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/heap.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 ofnext' 阴影全局声明 /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 ofnext' 阴影全局声明 /opt/tinyos-2.1.2/tos/lib/tossim/heap.c:71:警告:阴影声明的位置 在 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154 包含的文件中/CC2420TKN154P.nc:39,来自 /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:在 C 文件中:/opt/tinyos-2.1.2/tos/chips/cc2420/CC2420.h:在顶层:/opt/tinyos-2.1.2/tos/芯片/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 beforeack'之前的语法错误'/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:警告:类型默认为int' in declaration ofcc2420_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,来自/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:警告:组件CC2420TKN154P': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TKN154P.nc: In functionwaitBackoffDoneUnslottedCsma中阴影声明的位置':/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 functionwaitBackoffDoneSlottedCsma':/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 componentCC2420ControlP'的声明:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:58:接口CC2420Ram 未找到 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:59: 接口 CC2420Register not found /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:67: 接口CC2420Strobe not found /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/CC2420ControlP.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 functionCC2420Power.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 functionCC2420Power.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 namedstrobe 的命令或事件'/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.2/tos/chips/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/chips/cc2420_tkn154/CC2420ControlP.nc:278:接口没有命令或事件命名read' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:283: interface has no command or event namedstrobe' /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 functionCC2420Config.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 functionCC2420Power.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 functionInterruptCCA.fired'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:451:接口没有名为write' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc: In functionwriteFsctrl'的命令或事件:/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 functionwriteMdmctrl0': /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 functionwriteId':/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 namedwrite'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP的命令或事件。 nc: In function writeTxPower': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlP.nc:519: interface has no command or event namedwrite' 在 /opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:39 包含的文件中,来自 /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:在界面中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 oftime' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:47 包含的文件中, 来自 /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:在组件中Atm128GpioCaptureC': /opt/tinyos-2.1.2/tos/chips/atm128/timer/Atm128GpioCaptureC.nc:71: warning: declaration oftime' 阴影全局声明 /usr/include/time.h:192:警告:阴影声明的位置在 /opt/tinyos-2.1.2/tos/chips/atm128/timer/HplAtm128Timer1C.nc:53 包含的文件中,来自/opt/tinyos-2.1.2/tos/platforms/micaz/chips/cc2420/HplCC2420InterruptsC.nc:48,来自/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:在组件中HplAtm128Timer1P': /opt/tinyos-2.1.2/tos/chips/atm128/timer/HplAtm128Timer1P.nc:215: warning: declaration oftime' 阴影全局声明 /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 componentHplAtm128InterruptPinP'中:/opt/tinyos-2.1.2/tos/chips/atm128/pins/ HplAtm128InterruptC.nc:63:组件参数必须是组件中的常量HplAtm128InterruptPinP': /opt/tinyos-2.1.2/tos/chips/atm128/pins/HplAtm128InterruptC.nc:64: component arguments must be constants In componentHplAtm128InterruptPinP': /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 componentHplAtm128InterruptPinP': /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 componentHplAtm128InterruptPinP' 中:/opt/tinyos-2.1.2/tos/chips/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: componentCC2420SpiC' 不是通用的 在 /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ControlTransmitC.nc:113 包含的文件中,来自 /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:在组件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 functionCC2420Tx.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 namedwrite'/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc 的命令或事件:在顶层:/opt/tinyos- 2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:173: writeDone' is not in interfaceTXFIFO' /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 functionCC2420Tx.send的命令或事件':/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/ CC2420TransmitP.nc:203: 接口没有名为strobe' /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc:203: interface has no command or event namedstrobe 的命令或事件'/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 namedsfd'/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 functionCC2420Tx.modify 的命令或事件:/opt/tinyos-2.1.2/tos/chips/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 functionChipSpiResource.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 functionBackoffAlarm.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 functionsignalDone'的命令或事件:/opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420TransmitP.nc: 413: interface has no command or event named 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' is not in interface 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 componentCC2420ReceiveP': /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveP.nc:214: warning: declaration of 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' is not in interface 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 functionRXFIFO.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 namedcontinueRead'/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/chips /cc2420_tkn154/CC2420ReceiveP.nc:391: writeDone' is not in interfaceRXFIFO' /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 componentCC2420ReceiveC':/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 findRXFIFO' ... /opt/tinyos-2.1.2/tos/chips/cc2420_tkn154/CC2420ReceiveC.nc:75: 找不到MDMCTRL1' In componentCC2420ControlTransmitC': /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 findSACKPEND' 在 /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,来自 /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 forPLATFORM_MHZ' 不是整数常量 在 /opt/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:在组件AlarmOne16C': /opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:30: syntax error beforeTOne' 中包含的文件中 / opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:34,来自 /opt/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 包含的文件中,来自 /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:在组件AlarmOne16C': /opt/tinyos-2.1.2/tos/platforms/mica/AlarmOne16C.nc:35:TOne'此处未声明(不在函数中)/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 componentCounterOne16C':/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 componentCounter32khz32C': /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' 此处未声明(不在函数中)/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 componentAlarm32khz32C': /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/平台/云母/Alarm32khz32C.nc:37:不匹配/opt/tinyos-2.1.2/tos/platforms/telosb/mac/tkn154/timer/Alarm32khzTo62500hzTransformC.nc:53:2:警告:#warning“警告:MAC时间不符合标准!” make: *** [sim-exe] 错误 1

4

1 回答 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
于 2016-10-19T13:33:20.467 回答