<div dir="ltr">1) ensure you're using gold or lld to link, not bfd.ld (that should probably be enough to fix your issue)<br>2) consider using Split DWARF (there's an option for that in cmake) to reduce the size of the linked binaries, assuming you're building with debug info (if you don't need debug info, disable that)<br>3) there is some way (maybe a cmake option) to reduce the number of parallel link commands that could help as well</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Oct 20, 2019 at 12:43 AM phi clang via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi All<div>I don't  know if this is the proper distrilist here for the question.</div><div>I am new at clang, I tried a clang/llvm build  with the receipe on clang web pages and my build fail.</div><div><br></div><div>My build node is an hp dl360 24 proc 64 gb mem ubuntu 18.04 latest update. Native cc is gcc 7.</div><div><br></div><div>I followed the receipe to the letter for a git dowload build. I did the bare cmake line that is supposed to bringup a debug version.</div><div><br></div><div>The only variation I made is a final</div><div><br></div><div>$ make -j 48</div><div><br></div><div>The bulk build seems ok with progression going to 100% then massive  ld are fired that took for ever after 5 hours i killed the build.</div><div><br></div><div>The questions </div><div>Does make -j supported ?</div><div>And does those massive ld are expected and I should have waited longer</div><div><br></div><div>Thanx in advance </div><div>Cheers</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>