[llvm-dev] Building lld

Rui Ueyama via llvm-dev llvm-dev at lists.llvm.org
Wed Mar 20 11:00:21 PDT 2019


Did you follow the instruction on https://lld.llvm.org/getting_started.html?
I mean is this what you typed in?

$ git clone https://github.com/llvm/llvm-project.git
$ cd llvm-project
$ mkdir build && cd build
$ cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=lld ../llvm
$ make

On Wed, Mar 20, 2019 at 10:52 AM Josh Sharp <mm92126 at hotmail.com> wrote:

> The way I'm having it set up, inside my llvm-project directory, there are
> 3 sub-directories at the same level: llvm, build and lld
> ------------------------------
> *From:* Zachary Turner <zturner at google.com>
> *Sent:* Wednesday, March 20, 2019 10:38 AM
> *To:* Shoaib Meenai
> *Cc:* Josh Sharp; Rui Ueyama; via llvm-dev
> *Subject:* Re: [llvm-dev] Building lld
>
> Judging by this path:
>
> needed by 'tools/lld/Common/VCSVersion.inc'
>
> It looks to me like this is **not** a monorepo layout (if it were, lld
> would not appear in the tools directory).  Therefore the
> LLVM_ENABLE_PROJECTS=lld is not even doing anything.
>
> I don't know how to build without a monorepo these days, and I also don't
> know what the most recent guidance setting up a monorepo is, but maybe
> someone else can chime in.
>
> On Tue, Mar 19, 2019 at 3:49 PM Shoaib Meenai via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> 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> 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
> 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=>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190320/f8c035ba/attachment.html>


More information about the llvm-dev mailing list