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

标签 linux makefile cmake ubuntu-16.04 ceres-solver

<分区>

我正在尝试在 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”期间的内存消耗。

关于linux - Ceres make 失败 : "Makefile:138: recipe for target ' all' failed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53384750/

相关文章:

directory - 如何在 Makefile 中复制目录?

c - 在 .config 文件中定义预处理器宏

php - 在 linux 中使用 inotify 在 php 中读取文件

linux - Linux 内核中的 x86 分页与 mmu

android - Android平台如何查看init.rc(init进程)的输出?

linux - www 和邮件的 FQDN 主机名

c++ - 在 Linux 中创建的包含 make 文件的 Visual Studio 2015 中编译 C++ 项目

c - 链接 pthread 库问题

c++ - cmake source_group 无效

c++ - 使用 CMake 编译具有多配置的 Boost