将错误与Movesense库1.9.0.RC3链接

Linking error with Movesense library 1.9.0.rc3

本文关键字:RC3 链接 错误 Movesense      更新时间:2023-10-16

我在项目中甚至在Hello World示例项目中更新Movesense库从1.8.1提高到1.9.0后会收到一个链接错误。还有其他人有这个问题,可以提供解决方案吗?

我在

上运行SDK
  • Ubuntu 18.04.2 LTS
  • 武器 - 无abi-GCC 7.3.1

GCC-NONE-AEBI-2017-Q4

与GCC-ARM-NONE-NONE-AEBI-eabi-eabi-a

这是调用忍者后链接失败的输出:

FAILED: Movesense 
: && /usr/bin/arm-none-eabi-gcc  -W -Wall -[...] ../platform/nRF5x/linker/gcc/appflash.ld CMakeFiles/Movesense.dir/App.cpp.obj CMakeFiles/Movesense.dir/HelloWorldService.cpp.obj CMakeFiles/Movesense.dir/generated/sbem-code/sbem_definitions.cpp.obj CMakeFiles/Movesense.dir/generated/app-resources/resources.cpp.obj CMakeFiles/Movesense.dir/app-metadata/metadata.cpp.obj  -o Movesense  /home/lukas/Projects/movesense/movesense-device-lib/MovesenseCoreLib/lib/GCCARM/libmovesense-coreD.a -lm -lstdc++ && :
lto1: internal compiler error: bytecode stream: expected tag round_div_expr instead of reference_type
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /usr/bin/arm-none-eabi-gcc returned 1 exit status
compilation terminated.
/usr/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

使用Movesense 1.8.1一切正常:

git checkout 38be3c2
[...]
cmake -G Ninja -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ -DCMAKE_TOOLCHAIN_FILE=../MovesenseCoreLib/toolchain/gcc-nrf52.cmake ../samples/hello_world_app
[...]
ninja
[...]
[8/8] Linking CXX executable Movesense

预先感谢!

from cansp.md(&amp; readme.md(以来是1.9.0

以来
  • 必需:仅使用Windows构建环境(由于GNU OSX BUG上述(
  • 必需:使用ARMv。7.2.12017Q4
  • 使用GNU工具链

这种情况是不幸的,将在即将到来的2.0版本中纠正新的基于Docker的构建环境。

完全免责声明:我为Movesense Team

工作