gpt4 book ai didi

ubuntu - 收集2 : fatal error: ld terminated with signal 9 [Killed]

转载 作者:行者123 更新时间:2023-12-03 16:56:18 26 4
gpt4 key购买 nike

我正在尝试构建 precimonious在 Ubuntu 16.04.3 x64 上。我为它分配了 1GB 内存。我的文件结构看起来像

~
|--- llvm/
|--- precimonious/

https://github.com/corvette-berkeley/precimonious#requirement 所述,llvm 的版本为 3.0。 .然后我按照自述文件中的步骤操作,但命令 make
...
llvm[1]: Linking Debug Shared Library libLLVM-3.0.so
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
...

我在网上浏览了一些答案,他们说这可能是因为没有足够的内存来执行链接。但是内存使用情况就像
enter image description here

我机器上的gcc版本是 gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)并通过 apt-get install build-essential 安装.这是我刚刚在 DigitalOcean 上创建的新液滴。任何帮助表示赞赏。

最佳答案

这是内存耗尽。内存测量的采样间隔不够小,不足以覆盖 OOM 杀手启动的确切点。

根据容器/VM 技术,您可以设置 vm.overcommit_memory=2在构建之前,这样进程就不会被杀死(但这样做实际上需要更多的内存和交换空间来完成构建)。

关于ubuntu - 收集2 : fatal error: ld terminated with signal 9 [Killed],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46259776/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com