<div dir="ltr"><div><div>Are you building with debug symbols?<br><br></div>If so, then be aware that linking libLLVM and libLLDB will require 3-5GB of memory, just for the link step.<br><br></div>On my 8GB machine, I cannot use -j2 to compile LLVM with debug symbols, as I will page to death during linking.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 6, 2016 at 5:54 PM, Wink Saville via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've got a i7 with 12 logical cores and 16GB of RAM I successfully<br>
built RELEASE_390/final but for the last 100 or so files I'd to use<br>
"ninja -j2" so as not to keep from swapping in the best case and and<br>
in the worst case the build kills itself without completing because<br>
apparently its run out of memory.<br>
<br>
For the first 3200 files or so it was doing just fine with "ninja"<br>
which is probably "ninja -j12" but as I said for the last 100 or so<br>
files I had to use "ninja -j2" to get it to complete.<br>
<br>
So what is the recommended computer resources, and I guess RAM size in<br>
particular, for building llvm "quickly"?<br>
<br>
-- wink<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br></div>