【问题标题】:Ceres make fails: "Makefile:138: recipe for target 'all' failed" [duplicate]谷神星制作失败:“Makefile:138:目标“全部”的配方失败”[重复]
【发布时间】:2018-11-20 00:57:00
【问题描述】:

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

【问题讨论】:

  • 您不会自己修复 ICE,无论如何 GCC 5 正在运行,您可能应该安装更新的版本。

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


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2018-06-06
    • 1970-01-01
    • 1970-01-01
    • 2022-01-22
    • 2018-11-24
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    • 2021-11-13
    相关资源
    最近更新 更多