谷歌制作失败:“ Makefile:138:目标'全部'的食谱失败”

时间:2018-11-20 00:57:00

标签: linux makefile cmake ubuntu-16.04 ceres-solver

我正在尝试在installation guide on ceres website之后在Ubuntu 16.04上安装Ceres,但是当make命令失败时,显示以下错误:

[ 94%] Built target helloworld_numeric_diff
[ 94%] Built target helloworld_analytic_diff
[ 95%] Built target curve_fitting
[ 95%] Built target circle_fit
[ 95%] Building CXX object examples/CMakeFiles/nist.dir/nist.cc.o
g++-5: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
examples/CMakeFiles/nist.dir/build.make:62: recipe for target 'examples/CMakeFiles/nist.dir/nist.cc.o' failed
make[2]: *** [examples/CMakeFiles/nist.dir/nist.cc.o] Error 4
CMakeFiles/Makefile2:5885: recipe for target 'examples/CMakeFiles/nist.dir/all' failed
make[1]: *** [examples/CMakeFiles/nist.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

我对Linux还是很陌生,因此,如果能帮助您理解发生了什么问题,将非常感谢。

1 个答案:

答案 0 :(得分:0)

“杀死”是通常(如果外部)将SIGKILL发送到编译器进程的结果。这是另一位权限受到此过程干扰的用户,或者更有可能是Linux OOM Killer在内存压力下退出该过程。我建议看看“ nist.cc”的编译过程中的内存消耗。