[llvm-dev] Building lld

Shoaib Meenai via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 19 15:48:33 PDT 2019


Hmm … does the file llvm-project/llvm/cmake/modules/GenerateVersionFromVCS.cmake exist? Can you `git pull`, and does `git status` show any changes?

From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Josh Sharp via llvm-dev <llvm-dev at lists.llvm.org>
Reply-To: Josh Sharp <mm92126 at hotmail.com>
Date: Tuesday, March 19, 2019 at 3:15 PM
To: Rui Ueyama <ruiu at google.com>
Cc: via llvm-dev <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] Building lld

I tried deleting my build directory and restarting from scratch


$ cd llvm-project

$ mkdir build && cd build

$ cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=lld ../llvm

$ make
I got this error:

make[2]: *** No rule to make target 'llvm/cmake/modules/GenerateVersionFromVCS.cmake', needed by 'tools/lld/Common/VCSVersion.inc'.  Stop.
CMakeFiles/Makefile2:57166: recipe for target 'tools/lld/Common/CMakeFiles/lldCommon.dir/all' failed
make[1]: *** [tools/lld/Common/CMakeFiles/lldCommon.dir/all] Error 2
Makefile:151: recipe for target 'all' failed



Any idea?
________________________________
From: Rui Ueyama <ruiu at google.com>
Sent: Wednesday, March 13, 2019 12:49 PM
To: Josh Sharp
Cc: via llvm-dev
Subject: Re: [llvm-dev] Building lld

lld is installed as ld.lld, so please look for ld.lld.

On Wed, Mar 13, 2019 at 11:46 AM Josh Sharp via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
I tried to build lld by following these steps: https://lld.llvm.org/getting_started.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__lld.llvm.org_getting-5Fstarted.html&d=DwMFAg&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=BbNB5LANgw5u5ck9pb-IEWZkvun8wiqGkRxAVD9G8Rs&s=p5wYrYnVMXv9Q_2cVMs2rp9M_iL-WVZ8UOlNipgMaPQ&e=>

But after 'make install' I can't find lld anywhere and 'make check-lld' results in this message:

make: *** No rule to make target 'check-lld'.  Stop.

Any idea?
_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwMFAg&c=5VD0RTtNlTh3ycd41b3MUw&r=o3kDXzdBUE3ljQXKeTWOMw&m=BbNB5LANgw5u5ck9pb-IEWZkvun8wiqGkRxAVD9G8Rs&s=OufZM-SRhjvJeJgj-V7ng4XUTSfFeDQWRDQviTw9Dsg&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190319/8f2fff70/attachment.html>


More information about the llvm-dev mailing list