【问题标题】:"Internal compiler" error when installing HHVM on Centos 7在 Centos 7 上安装 HHVM 时出现“内部编译器”错误
【发布时间】:2015-09-25 19:03:15
【问题描述】:

我需要在我的 Linux 服务器上安装 HHVM 以使我的 hacklang 能够正常工作。但我在安装过程中收到此错误消息

c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [third-party/proxygen/CMakeFiles/hphp_proxygen.dir/lib/services/RequestWorker.cpp.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [third-party/proxygen/CMakeFiles/hphp_proxygen.dir/all] Error 2
make: *** [all] Error 2

【问题讨论】:

    标签: c++ linux centos hhvm hacklang


    【解决方案1】:

    这个错误可能是内存不足,运行命令查看你的服务器有多少内存

    free -h
    

    如果您没有太多可用空间,请尝试在您的服务器中添加交换空间 使用交换文件添加交换空间的过程

    sudo dd if=/dev/zero of=/swapfile bs=64M count=16
    sudo mkswap /swapfile
    sudo swapon /swapfile
    

    现在开始编译你的软件

    编译完成后你可以删除你的交换文件

    sudo swapoff /swapfile
    sudo rm /swapfile
    

    【讨论】:

    • 是的,OoM 是我过去也看到过这种情况的原因。 HHVM 需要相当多的 RAM 才能编译——至少 2G,可能更多,尤其是在您进行并行编译时 (make -j)。我建议确保你至少有这么多的实际 RAM,而不是交换,否则编译将永远花费。
    猜你喜欢
    • 2013-11-02
    • 2017-01-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-09
    • 1970-01-01
    • 2016-06-05
    相关资源
    最近更新 更多