<div dir="ltr">Gold in my case is still not helping, since I leave many programs open at once and swap gets crazy in the last linking steps of the debug binaries...<div><br></div><div>Funny, though, that it starts swapping before it actually hits the maximum memory, and I think that's why Linux is not killing the process just yet, but it is flogging the usability of the desktop.</div>
<div><br></div><div>--renato</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 January 2013 02:27, Nikola Smiljanic <span dir="ltr"><<a href="mailto:popizdeh@gmail.com" target="_blank">popizdeh@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had this issue while using Linux VMs and someone suggested just<br>
using gold instead of ld which resolved my issues. Having some swap<br>
space just in case is also useful.<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Jan 22, 2013 at 11:16 AM, Andre Cunha <<a href="mailto:andrecunha.usp@gmail.com">andrecunha.usp@gmail.com</a>> wrote:<br>
> Hello;<br>
><br>
> This is my first time compiling clang; I tried to do it in a computer with 4<br>
> GiB of RAM but no swap, and I had a problem: I checked out the latest<br>
> version of clang and llvm from the SVN repositories; when I ran 'make', the<br>
> computer freezed while linking clang, and I needed to do a hardware reset.<br>
><br>
> After that, I ran 'make' again, this time with a process monitor, and<br>
> realized that when 'make' called 'ld' to generate the 'clang' executable,<br>
> the 'ld' process allocated memory on and on until the computer freezed.<br>
><br>
> I searched the Web, and found someone saying that linking is a very<br>
> memory-hungry process<br>
> (<a href="http://forums.mozillazine.org/viewtopic.php?f=42&t=2300015" target="_blank">http://forums.mozillazine.org/viewtopic.php?f=42&t=2300015</a>), and that it's<br>
> necessary a big amount of swap memory in order to compile certain projects.<br>
><br>
> As I never experienced such a behavior when compiling other projects, I<br>
> decided to ask here: is this really supposed to happen? If so, what is the<br>
> minimum requirement (in terms of virtual memory) to build clang?<br>
><br>
> The environment was:<br>
> Fedora 18 (3.7.2-204.fc18.x86_64)<br>
> clang 3.1<br>
> GNU ld version 2.23.51.0.1-3.fc18 20120806<br>
><br>
> Thanks in advance, and sorry if this is a stupid question.<br>
> --<br>
> Andre Cunha<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> cfe-dev mailing list<br>
> <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>