<div dir="ltr">How do I use it with cmake? I was just following this link <a href="http://llvm.lyngvig.org/Articles/How-to-Enable-the-Gold-Linker-on-Arch-Linux">http://llvm.lyngvig.org/Articles/How-to-Enable-the-Gold-Linker-on-Arch-Linux</a> <div>Is running  'export LD = ld.gold' before building clang enough? </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 8, 2016 at 11:54 AM, 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"><div dir="ltr">Or configuring with -fuse-ld=gold</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Apr 7, 2016 at 9:03 PM, Manasij Mukherjee via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Thanks for the inputs , will try them. Initially when I tried building I got "ld terminated with signal 9 error ", after which I increased the swap file sizeThen, it got successfully built once. <div> Next I tried building this plugin as given in <a href="https://kevinaboos.wordpress.com/2013/07/29/clang-tutorial-part-iii-plugin-example/" target="_blank">https://kevinaboos.wordpress.com/2013/07/29/clang-tutorial-part-iii-plugin-example/</a> . Even building a plugin requires building clang executable again? In this case , I received this error, "error: ld terminated with signal 7 [Bus error], core dumped ". Why did this happen?<div><br></div></div></div></div></div></blockquote></span><div>You are using too much memory when invoking the linker in parallel.</div><div>On Linux, switching to the gold linker (which involves putting an appropriate symlink in /usr/local/bin nowadays) will solve this.</div><div><br></div></div></div></div>
<br></div></div><span class="">_______________________________________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>