[cfe-dev] Fwd: Query regarding clang development

Nikola Smiljanic via cfe-dev cfe-dev at lists.llvm.org
Fri Apr 8 16:20:36 PDT 2016


I do it by passing -DCMAKE_CFLAGS=-fuse-ld=gold
-DCMAKE_CXX_FLAGS=-fuse-ld=gold

On Fri, Apr 8, 2016 at 9:48 PM, Ashwin Ganesh via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> How do I use it with cmake? I was just following this link
> http://llvm.lyngvig.org/Articles/How-to-Enable-the-Gold-Linker-on-Arch-Linux
>
> Is running  'export LD = ld.gold' before building clang enough?
>
> On Fri, Apr 8, 2016 at 11:54 AM, Nikola Smiljanic <popizdeh at gmail.com>
> wrote:
>
>> Or configuring with -fuse-ld=gold
>>
>> On Thu, Apr 7, 2016 at 9:03 PM, Manasij Mukherjee via cfe-dev <
>> cfe-dev at lists.llvm.org> wrote:
>>
>>>
>>>
>>>
>>>> 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.
>>>>  Next I tried building this plugin as given in
>>>> https://kevinaboos.wordpress.com/2013/07/29/clang-tutorial-part-iii-plugin-example/ .
>>>> 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?
>>>>
>>>> You are using too much memory when invoking the linker in parallel.
>>> On Linux, switching to the gold linker (which involves putting an
>>> appropriate symlink in /usr/local/bin nowadays) will solve this.
>>>
>>>
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>>
>>>
>>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160409/535f5a1c/attachment.html>


More information about the cfe-dev mailing list