为什么链接器终止于我?当我建立 CLang [英] Why is the linker terminating on me? when i build CLang

查看:16
本文介绍了为什么链接器终止于我?当我建立 CLang的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是opensuse,当你点击vmware时,mono的网站上的具体变种

I am using opensuse, specific the variant on mono's website when you click vmware

我收到此错误.有谁知道我该如何解决它?

I get this error. Does anyone know how i might fix it?

make[4]: Entering directory `/home/rupert/Desktop/llvm/tools/clang/tools/driver'
llvm[4]: Linking Debug+Asserts executable clang
collect2: ld terminated with signal 9 [Killed]
make[4]: *** [/home/rupert/Desktop/llvm/Debug+Asserts/bin/clang] Error 1

全文可见这里

推荐答案

您的虚拟机没有足够的内存来执行链接阶段.链接通常是构建中最占用内存的部分,因为它是所有目标代码聚集在一起并作为一个整体进行操作的地方.

Your virtual machine does not have enough memory to perform the linking phase. Linking is typical the most memory intensive part of a build since it's where all the object code comes together and is operated on as a whole.

如果您可以为 VM 分配更多 RAM,请执行此操作.或者,您可以增加交换空间的数量.我对虚拟机不太熟悉,但我想你设置的虚拟硬盘会有一个交换分区.如果你能把它做得更大或分配第二个交换分区会有所帮助.

If you can allocate more RAM to the VM then do that. Alternatively you could increase the amount of swap space. I am not that familiar with VMs but I imagine the virtual hard drive you set-up will have a swap partition. If you can make that bigger or allocate a second swap partition that would help.

增加内存,即使只是在构建期间,也是最简单的事情.

Increasing the RAM, if only for the duration of your build, is the easiest thing to do though.

这篇关于为什么链接器终止于我?当我建立 CLang的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆