在树莓派上编译pybind11测试用例时发生致命错误

问题描述 投票:0回答:1

this question之后,我现在正在尝试按照Raspberry Pi上的pybind11指令编译here测试用例。到目前为止,我所做的是:

  • the official page安装了Raspbian Raspbian Buster Lite
  • 更新/升级所有软件包
  • 按照here的说明更新/升级的python软件包
  • 按照说明pybind11编译并安装here

我的环境是:

  • Raspbian buster版本10
  • python 3.7.3
  • 点20.0.2
  • gcc 8.3.0

然后运行命令make check -j 4,编译器将在以下位置停止:

[68%]构建CXX对象CmakeFiles / pybind11_tests.dir / test_numpy_dtypes.cpp.o

错误是:

c ++:致命错误:信号终止程序cplusplus被杀死

编译终止。

make [3]:*** [CMakeFiles / pybind11_tests.dir / build.make:297:CMakeFiles / pybind11_tests.dir / test_local_bindings.cpp.o]错误1

make [3]:***等待未完成的工作...

make [2]:*** [CMakeFiles / Makefile2:110:CMakeFiles / pybind11_tests.dir / all]错误2

make [1]:*** [CMakeFiles / Makefile2:191:CMakeFile / check.dir / rule]错误2

make:*** [Makefile:157:检查]错误2

如果能帮助我理解问题所在以及如何解决,我将不胜感激。

c++ compiler-errors raspbian pybind11
1个回答
0
投票

进行更多研究并使用the right keyword query,看来这个问题与bypynd11或Raspbian无关。问题似乎与先前许多帖子(包括herehere)中所述的内存溢出有关。解决方案可能是使用较少的并行进程-j <n>,其中n < 4,或者根本不使用建议的here。例如,我测试了

make check -j 3

并且有效。或者,也可以按照here所述创建交换文件。

© www.soinside.com 2019 - 2024. All rights reserved.