HHVM 构建的内部编译器错误

问题描述 投票:0回答:1

我一直在尝试使用

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 来修复此问题吗?

c++ archlinux hhvm
1个回答
2
投票

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

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

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.