我一直在尝试使用 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/