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

时间:2014-04-13 15:00:49

标签: c++ compiler-construction archlinux hhvm

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

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来解决这个问题吗?

1 个答案:

答案 0 :(得分:2)

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

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

相关问题