Ceres 失败:"Makefile:138: recipe for target 'all' failed"

Ceres make fails: "Makefile:138: recipe for target 'all' failed"

我正在尝试在 Ubuntu 16.04 上安装 Ceres,遵循 installation guide on ceres website,但是当 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 的新手,所以如果能帮助我理解出了什么问题,我们将不胜感激。

“Killed”是您通常看到的东西(外部)向编译器进程发送 SIGKILL。这是另一个具有权限的用户被此进程打扰,或者更可能是 Linux OOM Killer 在内存压力下驱逐此进程。我建议看看编译“nist.cc”时的内存消耗。