c++ - 来自 HHVM 构建的内部编译器错误

标签 c++ compiler-construction archlinux hhvm

我一直在尝试使用 makepkg -s 从 AUR 包构建 hhvm。该构建是在具有 1GB RAM 的非常基本的 VM 单核上执行的(我提到这一点是因为我读过它可能通过使用更多核来解决)。当他的构建完成大约 24% 时,我收到以下错误。

Scanning dependencies of target hphp_system
[ 24%] Building CXX object hphp/system/CMakeFiles/hphp_system.dir/class_map.cpp.o
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
hphp/system/CMakeFiles/hphp_system.dir/build.make:117: recipe for target 'hphp/system/CMakeFiles/hphp_system.dir/class_map.cpp.o' failed
make[2]: *** [hphp/system/CMakeFiles/hphp_system.dir/class_map.cpp.o] Error 4
CMakeFiles/Makefile2:1213: recipe for target 'hphp/system/CMakeFiles/hphp_system.dir/all' failed
make[1]: *** [hphp/system/CMakeFiles/hphp_system.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

我可以通过使用不同的编译器或直接编译而不是使用 PKGBUILD 来解决这个问题吗?

最佳答案

你的内存不足。 GCC 需要大量 RAM 来编译 HHVM,因为它使用大量模板和元编程。

增加 VM 上的 RAM 或使用预编译包。

关于c++ - 来自 HHVM 构建的内部编译器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23044290/

相关文章:

c++ - 在 C++ 中打印一个 char*

编译器和指令集

c++ - 错误 C2143 : syntax error : missing ';' before '' template <''

c++ - 从应用程序中使用提升的权限调用 win32 服务中的方法

compiler-construction - 了解不同平台对编译器的需求

vim - 如何禁用vim鼠标滚轮?

c++ - Arch Linux C++读取USB鼠标定位数据

java - 无法在 Linux 上的路径中运行 jar 可执行文件

c++ - 是否定义了运行时错误 C 风格转换的行为?

c - 为什么这个 C 代码可以编译? C 结构类型定义