“线程:BeagleBone, 测试”中讨论的其它部分
您好,
我正在尝试在 BeagleBone Black 和 LP-2652R7上设置线程边界路由器。 我正在执行资源管理器 https://dev.ti.com/tirex/explore/node?node=AP0oXq54dgMJ4g-gwa3-rw__BSEc4rl__LATEST 上提到的步骤
NCP-FTD 代码在 LP-2652R7上成功编译和散列,并附加到 BeagleBone Black。 LP 上的指示灯闪烁。
线程网络在检出 repo: ot-br-POSIX 的“主”分支时未“形成”。
因此,在阅读 完此 查询后,我已经检查了上面提到的标签“thread-br-certified-20180819”。
成功完成./脚本/引导。
在执行./script/setup 时遇到问题。
大约半小时后收到以下错误:
libtool: link: ranlib .libs/libcoap-1.a
libtool: link: ( cd ".libs" && rm -f "libcoap-1.la" && ln -s "../libcoap-1.la" "libcoap-1.la" )
Making all in doc
make[6]: Nothing to be done for 'all'.
Making all in tests
make[6]: Nothing to be done for 'all'.
Making all in examples
make[6]: Nothing to be done for 'all'.
make[4]: Nothing to be done for 'all-am'.
Making all in Simple-web-server
make[3]: Nothing to be done for 'all'.
Making all in mdl
make[3]: Nothing to be done for 'all'.
Making all in angular
make[3]: Nothing to be done for 'all'.
Making all in angular-material
make[3]: Nothing to be done for 'all'.
make[3]: Nothing to be done for 'all-am'.
Making all in include
make all-am
Making all in src
Making all in common
CXX logging.lo
CXXLD libotbr-logging.la
ar: `u' modifier ignored since `D' is the default (see `U')
CXX event_emitter.lo
CXXLD libotbr-event-emitter.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in utils
CXX crc16.lo
CXX hex.lo
CXX steeringdata.lo
CXXLD libutils.la
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in agent
CXX otbr_agent-main.o
CXX libotbr_agent_la-agent_instance.lo
CXX libotbr_agent_la-border_agent.lo
CXX libotbr_agent_la-coap_libcoap.lo
CXX libotbr_agent_la-dtls_mbedtls.lo
CXX libotbr_agent_la-ncp_wpantund.lo
ncp_wpantund.cpp: In constructor ‘ot::BorderRouter::Ncp::ControllerWpantund::ControllerWpantund(const char*)’:
ncp_wpantund.cpp:238:12: error: ‘char* strncpy(char*, const char*, size_t)’ specified bound 16 equals destination size [-Werror=stringop-truncation]
strncpy(mInterfaceName, aInterfaceName, sizeof(mInterfaceName));
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:716: libotbr_agent_la-ncp_wpantund.lo] Error 1
make[2]: *** [Makefile:444: all-recursive] Error 1
make[1]: *** [Makefile:570: all-recursive] Error 1
make: *** [Makefile:496: all] Error 2
root@beaglebone:/home/debian/ot-br-posix#
ncp_wpantund.cpp:在构造函数‘ot::BorderRouter:::ncp::ControllerWpantund::ControllerWpantund(const cha*)’中:
ncp_wpantund.cpp:238:12:错误:‘char* strncpy (cha*,const char *,size_t)’指定的绑定16等于目标大小[-Werror=stringop-truncion]
strncpy (mInterfaceName,aInterfaceName,sizeof (mInterfaceName));

如果您需要更多日志来调试此问题,请告诉我。