<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Did you follow the instruction on <a href="https://lld.llvm.org/getting_started.html">https://lld.llvm.org/getting_started.html</a>? I mean is this what you typed in?<br></div><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr">$ git clone <a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a></div><div><div>$ cd llvm-project</div><div>$ mkdir build && cd build</div><div>$ cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=lld ../llvm</div><div>$ make</div></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 20, 2019 at 10:52 AM Josh Sharp <<a href="mailto:mm92126@hotmail.com">mm92126@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
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<br>
</div>
<div id="gmail-m_-1892225081074220641appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_-1892225081074220641divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>><br>
<b>Sent:</b> Wednesday, March 20, 2019 10:38 AM<br>
<b>To:</b> Shoaib Meenai<br>
<b>Cc:</b> Josh Sharp; Rui Ueyama; via llvm-dev<br>
<b>Subject:</b> Re: [llvm-dev] Building lld</font>
<div> </div>
</div>
<div>
<div dir="ltr">Judging by this path:
<div><br>
</div>
<div><span style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">needed by 'tools/lld/Common/VCSVersion.</span><span style="font-family:Calibri,Helvetica,sans-serif;font-size:16px">inc'</span> <br>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
</div>
<br>
<div class="gmail-m_-1892225081074220641x_gmail_quote">
<div dir="ltr" class="gmail-m_-1892225081074220641x_gmail_attr">On Tue, Mar 19, 2019 at 3:49 PM Shoaib Meenai via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote class="gmail-m_-1892225081074220641x_gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_-1892225081074220641x_m_-8567769160556553880WordSection1">
<p class="gmail-m_-1892225081074220641x_MsoNormal">Hmm … does the file llvm-project/llvm/cmake/modules/GenerateVersionFromVCS.cmake exist? Can you `git pull`, and does `git status` show any changes?<u></u><u></u></p>
</div>
</div>
<div lang="EN-US">
<div class="gmail-m_-1892225081074220641x_m_-8567769160556553880WordSection1">
<p class="gmail-m_-1892225081074220641x_MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="gmail-m_-1892225081074220641x_MsoNormal"><b><span style="font-size:12pt;color:black">From: </span>
</b><span style="font-size:12pt;color:black">llvm-dev <<a href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">llvm-dev-bounces@lists.llvm.org</a>> on behalf of Josh Sharp via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Reply-To: </b>Josh Sharp <<a href="mailto:mm92126@hotmail.com" target="_blank">mm92126@hotmail.com</a>><br>
<b>Date: </b>Tuesday, March 19, 2019 at 3:15 PM<br>
<b>To: </b>Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>><br>
<b>Cc: </b>via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>><br>
<b>Subject: </b>Re: [llvm-dev] Building lld<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal">I tried deleting my build directory and restarting from scratch<u></u><u></u></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<pre><span style="color:black">$ cd llvm-project<u></u><u></u></span></pre>
<pre><span style="color:black">$ mkdir build && cd build<u></u><u></u></span></pre>
<pre><span style="color:black">$ cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS=lld ../llvm<u></u><u></u></span></pre>
<pre><span style="color:black">$ make<u></u><u></u></span></pre>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">I got this error:<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">make[2]: *** No rule to make target 'llvm/cmake/modules/GenerateVersionFromVCS.cmake', needed by 'tools/lld/Common/VCSVersion.inc'. Stop.<u></u><u></u></span></p>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">CMakeFiles/Makefile2:57166: recipe for target 'tools/lld/Common/CMakeFiles/lldCommon.dir/all' failed<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">make[1]: *** [tools/lld/Common/CMakeFiles/lldCommon.dir/all] Error 2<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">Makefile:151: recipe for target 'all' failed<u></u><u></u></span></p>
</div>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">Any idea?<u></u><u></u></span></p>
</div>
<div class="gmail-m_-1892225081074220641x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="gmail-m_-1892225081074220641x_m_-8567769160556553880divRplyFwdMsg">
<p class="gmail-m_-1892225081074220641x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Rui Ueyama <<a href="mailto:ruiu@google.com" target="_blank">ruiu@google.com</a>><br>
<b>Sent:</b> Wednesday, March 13, 2019 12:49 PM<br>
<b>To:</b> Josh Sharp<br>
<b>Cc:</b> via llvm-dev<br>
<b>Subject:</b> Re: [llvm-dev] Building lld</span> <u></u><u></u></p>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"> <u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal">lld is installed as ld.lld, so please look for ld.lld.<u></u><u></u></p>
</div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal">On Wed, Mar 13, 2019 at 11:46 AM Josh Sharp via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">I tried to build lld by following these steps:
<a href="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=" target="_blank">
https://lld.llvm.org/getting_started.html</a><u></u><u></u></span></p>
</div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><u></u> <u></u></p>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">But after 'make install' I can't find lld anywhere and 'make check-lld' results in this message:<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">make: *** No rule to make target 'check-lld'. Stop.<u></u><u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black"><u></u> <u></u></span></p>
</div>
<div>
<p class="gmail-m_-1892225081074220641x_MsoNormal"><span style="font-size:12pt;color:black">Any idea?<u></u><u></u></span></p>
</div>
</div>
<p class="gmail-m_-1892225081074220641x_MsoNormal">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="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=" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
</div>
</blockquote></div>