HHVM生成中出现内部编译器错误

Internal Compiler error from HHVM build

本文关键字:内部 编译器 错误 HHVM      更新时间:2023-10-16

我一直在尝试使用makepkg -s从AUR包构建hhvm。构建是在一个相当基本的VM单核上执行的,单核有1GB的RAM(我提到这一点是因为我读到过,它可能会通过使用更多的核来解决)。当他的构建完成了大约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,因为它使用了大量的模板和元编程。

请增加虚拟机上的RAM,或者使用预编译包。