Unable to build lld from llvm/clang source

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Unable to build lld from llvm/clang source

Richard Pennington via cfe-dev
I use CMake and Ninja to build llvm/clang from the latest source on
Windows. There is an option I see in the CMake Gui program called
LLVM_TOOL_LLD_BUILD, which I check. After generating the new cmake files
I proceed to build with ninja. Ninja shows no errors so I look in the
bin directory. But lld.exe is not there.

I can see lld.exe as part of past llvm/clang distribututions from 3.4.1
on up. What do I need to do to build lld.exe as part of my build from
the latest source ?

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to build lld from llvm/clang source

Richard Pennington via cfe-dev
It should build automatically. I use CMake and Ninja as well, and never had to specify any option to build lld.

Are you cloning the lld repo in the right directory? It should go in <path to llvm>/tools.


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to build lld from llvm/clang source

Richard Pennington via cfe-dev
On 3/27/2017 12:44 AM, Ivan Garramona via cfe-dev wrote:
> It should build automatically. I use CMake and Ninja as well, and never
> had to specify any option to build lld.
>
> Are you cloning the lld repo in the right directory?

That woke me up. I thought it was part of the llvm repo. I have it now.
Thanks !

< It should go in
> <path to llvm>/tools.


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to build lld from llvm/clang source

Richard Pennington via cfe-dev

> On Mar 27, 2017, at 3:27 PM, Edward Diener via cfe-dev <[hidden email]> wrote:
>
> On 3/27/2017 12:44 AM, Ivan Garramona via cfe-dev wrote:
>> It should build automatically. I use CMake and Ninja as well, and never
>> had to specify any option to build lld.
>>
>> Are you cloning the lld repo in the right directory?
>
> That woke me up. I thought it was part of the llvm repo. I have it now. Thanks !
>
> < It should go in
>> <path to llvm>/tools.

See also: http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo to get everything in a single checkout.

You can have lld built by adding it to -DLLVM_ENABLE_PROJECTS in this setup.


Mehdi

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Unable to build lld from llvm/clang source

Richard Pennington via cfe-dev
On 3/27/2017 9:57 PM, Mehdi Amini via cfe-dev wrote:

>
>> On Mar 27, 2017, at 3:27 PM, Edward Diener via cfe-dev <[hidden email]> wrote:
>>
>> On 3/27/2017 12:44 AM, Ivan Garramona via cfe-dev wrote:
>>> It should build automatically. I use CMake and Ninja as well, and never
>>> had to specify any option to build lld.
>>>
>>> Are you cloning the lld repo in the right directory?
>>
>> That woke me up. I thought it was part of the llvm repo. I have it now. Thanks !
>>
>> < It should go in
>>> <path to llvm>/tools.
>
> See also: http://llvm.org/docs/GettingStarted.html#for-developers-to-work-with-a-git-monorepo to get everything in a single checkout.
>
> You can have lld built by adding it to -DLLVM_ENABLE_PROJECTS in this setup.

Thanks for the information. I have been able to build lld successfully.

>
> —
> Mehdi


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Loading...