<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><font size="2">Hi devs,<br><br></font></div><font size="2"><br></font></div><div><font size="2">I'm able to build llvm/clang following these instructions:<br><b><br></b></font><ol style="margin-top:0pt;margin-bottom:0pt" id="gmail-m_-8242135022667381869gmail-docs-internal-guid-74b43c28-7fff-8f71-2331-e50f9e98276a"><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">git clone <a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a></span></font></b></p></li><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">cd llvm-project</span></font></b></p></li><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> mkdir build</span></font></b></p></li><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">cd build</span></font></b></p></li><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">cmake -DLLVM_ENABLE_PROJECTS=clang -G "Unix Makefiles" ../llvm</span></font></b></p></li><li dir="ltr" style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">make </span></font></b></p></li></ol><font size="2"><br>For the test suite, I'm following the directions found here:<br><br><a href="https://llvm.org/docs/TestSuiteGuide.html" target="_blank">https://llvm.org/docs/TestSuiteGuide.html</a></font></div><div><font size="2"><br></font></div><div><font size="2">and execute the following commands in the same directory where I have cloned lllvm-project:<br></font></div><div><ol style="margin-top:0pt;margin-bottom:0pt" id="gmail-m_-8242135022667381869gmail-docs-internal-guid-74b43c28-7fff-8f71-2331-e50f9e98276a"><li style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><pre><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">git clone <a href="https://github.com/llvm/llvm-test-suite.git" target="_blank">https://github.com/llvm/llvm-test-suite.git</a> test-suite</span></font></b></pre><p style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><b><font size="2"><span style="color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></font></b></p></li><li style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><pre><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">mkdir test-suite-build
</span></font></b></pre></li><li style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><pre><b><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span class="gmail-m_-8242135022667381869gmail-nb">cd</span> test-suite-build<br></span></font></b></pre></li><li style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><pre><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">cmake -DCMAKE_C_COMPILER<span class="gmail-m_-8242135022667381869gmail-o">=</span><path to my build of clang>/llvm-project/build/bin/</span></font></b><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">clang <code class="gmail-m_-8242135022667381869gmail-docutils gmail-m_-8242135022667381869gmail-literal gmail-m_-8242135022667381869gmail-notranslate"><span class="gmail-m_-8242135022667381869gmail-pre">CMAKE_BUILD_TYPE=DEBUG</span></code> <span class="gmail-m_-8242135022667381869gmail-se"></span>-C../test-suite/cmake/caches/</span></font></b><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">O3.cmake <span class="gmail-m_-8242135022667381869gmail-se"></span>../test-suite</span></font></b></pre></li><li style="list-style-type:decimal;color:rgb(0,0,0);background-color:transparent;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><pre><b><font size="2"><span style="font-family:arial,helvetica,sans-serif">make</span></font></b></pre></li></ol><div><font size="2"><br></font></div><font size="2">but it seems to fail at 37% with this error (sorry for any formatting issues):</font><br><br><br><pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%">Scanning dependencies of target retref<span style="color:rgb(128,128,48)">-</span>bench
<span style="color:rgb(128,128,48)">[</span> <span style="color:rgb(0,140,0)">37</span><span style="color:rgb(128,128,48)">%</span><span style="color:rgb(128,128,48)">]</span> Building CXX object MicroBenchmarks<span style="color:rgb(128,128,48)">/</span>XRay<span style="color:rgb(128,128,48)">/</span>ReturnReference<span style="color:rgb(128,128,48)">/</span>CMakeFiles<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>dir<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>cc<span style="color:rgb(128,128,48)">.</span>o
<span style="color:rgb(128,128,48)">/</span>home<span style="color:rgb(128,128,48)">/</span>removed<span style="color:rgb(128,128,48)">/</span>release<span style="color:rgb(128,128,48)">/</span>test<span style="color:rgb(128,128,48)">-</span>suite<span style="color:rgb(128,128,48)">/</span>MicroBenchmarks<span style="color:rgb(128,128,48)">/</span>XRay<span style="color:rgb(128,128,48)">/</span>ReturnReference<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>cc<span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">18</span><span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">10</span><span style="color:rgb(128,0,128)">:</span> fatal error<span style="color:rgb(128,0,128)">:</span>
<span style="color:rgb(255,255,255);background:rgb(221,0,0) none repeat scroll 0% 0%;font-weight:bold;font-style:italic">'xray/xray_interface.h'</span> file not found
<span style="color:rgb(0,74,67)">#</span><span style="color:rgb(0,74,67)">include </span><span style="color:rgb(128,0,0)">"</span><span style="color:rgb(64,1,90)">xray/xray_interface.h</span><span style="color:rgb(128,0,0)">"</span>
<span style="color:rgb(128,128,48)">^</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span><span style="color:rgb(128,128,48)">~</span>
<span style="color:rgb(0,140,0)">1</span> error generated<span style="color:rgb(128,128,48)">.</span>
make<span style="color:rgb(128,128,48)">[</span><span style="color:rgb(0,140,0)">2</span><span style="color:rgb(128,128,48)">]</span><span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span> <span style="color:rgb(128,128,48)">[</span>MicroBenchmarks<span style="color:rgb(128,128,48)">/</span>XRay<span style="color:rgb(128,128,48)">/</span>ReturnReference<span style="color:rgb(128,128,48)">/</span>CMakeFiles<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>dir<span style="color:rgb(128,128,48)">/</span>build<span style="color:rgb(128,128,48)">.</span>make<span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">63</span><span style="color:rgb(128,0,128)">:</span> MicroBenchmarks<span style="color:rgb(128,128,48)">/</span>XRay<span style="color:rgb(128,128,48)">/</span>ReturnReference<span style="color:rgb(128,128,48)">/</span>CMakeFiles<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>dir<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>cc<span style="color:rgb(128,128,48)">.</span>o<span style="color:rgb(128,128,48)">]</span> Error <span style="color:rgb(0,140,0)">1</span>
make<span style="color:rgb(128,128,48)">[</span><span style="color:rgb(0,140,0)">1</span><span style="color:rgb(128,128,48)">]</span><span style="color:rgb(128,0,128)">:</span> <span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span> <span style="color:rgb(128,128,48)">[</span>CMakeFiles<span style="color:rgb(128,128,48)">/</span>Makefile2<span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">19890</span><span style="color:rgb(128,0,128)">:</span> MicroBenchmarks<span style="color:rgb(128,128,48)">/</span>XRay<span style="color:rgb(128,128,48)">/</span>ReturnReference<span style="color:rgb(128,128,48)">/</span>CMakeFiles<span style="color:rgb(128,128,48)">/</span>retref<span style="color:rgb(128,128,48)">-</span>bench<span style="color:rgb(128,128,48)">.</span>dir<span style="color:rgb(128,128,48)">/</span>all<span style="color:rgb(128,128,48)">]</span> Error <span style="color:rgb(0,140,0)">2</span>
<span style="color:rgb(227,74,220)">make:</span> <span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span><span style="color:rgb(128,128,48)">*</span> <span style="color:rgb(128,128,48)">[</span>Makefile<span style="color:rgb(128,0,128)">:</span><span style="color:rgb(0,140,0)">130</span><span style="color:rgb(128,0,128)">:</span> all<span style="color:rgb(128,128,48)">]</span> Error 2<br><br><br><br></pre><pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%">Any ideas what I may be missing? I haven't been able to turn anything up online. I should note I've also attempted to build both repos from the release 8.x branch as well, and ran into the same error.<br></pre><pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%"><span style="color:rgb(0,140,0)"></span></pre><pre style="color:rgb(0,0,0);background:rgb(255,255,255) none repeat scroll 0% 0%"><span style="color:rgb(0,140,0)"><span style="background-color:rgb(0,0,0)"><span style=""></span></span><br></span></pre></div></div></div></div></div>