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

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

问题描述

我正在使用opensuse,在 mono的网站上点击vmware

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

完整的/ home / rupert / Desktop / llvm / Debug + Asserts / bin / 此处

The full text can be found here

推荐答案

虚拟机没有足够的内存来执行链接阶段。链接通常是构建中内存密集程度最高的部分,因为它是所有对象代码聚集在一起并作为整体进行操作的地方。

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.

如果您可以分配更多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.

如果仅在构建期间增加RAM,最简单的做法是尽管如此。

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

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

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