0

我正在尝试按照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 相当陌生,因此非常感谢任何帮助理解出了什么问题的人。

4

1 回答 1

0

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

于 2018-11-20T05:35:06.970 回答