this question之后,我现在正在尝试按照Raspberry Pi上的pybind11
指令编译here测试用例。到目前为止,我所做的是:
pybind11
编译并安装here我的环境是:
然后运行命令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
如果能帮助我理解问题所在以及如何解决,我将不胜感激。
进行更多研究并使用the right keyword query,看来这个问题与bypynd11或Raspbian无关。问题似乎与先前许多帖子(包括here和here)中所述的内存溢出有关。解决方案可能是使用较少的并行进程-j <n>
,其中n < 4
,或者根本不使用建议的here。例如,我测试了
make check -j 3
并且有效。或者,也可以按照here所述创建交换文件。