<div dir="ltr"><div dir="auto">Thanks Brian. Someone sent me a email saying I missed
including the compiler-rt project when I built llvm. I've got it built
now and running tests and they all finished.<br><br></div><div>LLVM release 8.x with test-suite release 8.x on a 64 CPU google cloud machine took 954.90s to complete for anyone curious. All 918 tests passed. This was not with ninja, and I assume a debug build of llvm.<br></div><div dir="auto"><br></div><div>Encase you're using Ubuntu 18.10, you'll also
have to install python-dev, and tcl to have it fire off. You may need
tcl-dev, or an older tcl version. I kind of went to town installing those.<br><br></div><div>Also worth noting is that I had
to delete the contents of my test-suite-build folder and re-run it's cmake file after installing the tcl package.<br><br></div><div>Thanks everyone.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 28, 2019 at 1:17 PM Brian M. Rzycki <<a href="mailto:brzycki@gmail.com">brzycki@gmail.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 dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hi Tim, I'm seeing the same error here but haven't had time to really debug it.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I've worked around it by disabling the XRay MicroBenchmark by commenting out line 4 of <a href="https://github.com/llvm/llvm-test-suite/blob/master/MicroBenchmarks/CMakeLists.txt" target="_blank">https://github.com/llvm/llvm-test-suite/blob/master/MicroBenchmarks/CMakeLists.txt</a> . With this change I'm able to complete test-suite runs of the standard directories (SingleSource, MultiSource, MicroBenchmarks)</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace"><div class="gmail_default">diff --git a/MicroBenchmarks/CMakeLists.txt b/MicroBenchmarks/CMakeLists.txt</div><div class="gmail_default">index 77a8e89..897d051 100644</div><div class="gmail_default">--- a/MicroBenchmarks/CMakeLists.txt</div><div class="gmail_default">+++ b/MicroBenchmarks/CMakeLists.txt</div><div class="gmail_default">@@ -1,7 +1,7 @@</div><div class="gmail_default"> file(COPY lit.local.cfg DESTINATION ${CMAKE_CURRENT_BINARY_DIR})</div><div class="gmail_default"> </div><div class="gmail_default"> add_subdirectory(libs)</div><div class="gmail_default">-add_subdirectory(XRay)</div><div class="gmail_default">+#add_subdirectory(XRay)</div><div class="gmail_default"> add_subdirectory(LCALS)</div><div class="gmail_default"> add_subdirectory(harris)</div><div class="gmail_default"> add_subdirectory(ImageProcessing)</div><div><br></div></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 27, 2019 at 10:33 PM Tim Pugh via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</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 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_-8635926326205756217gmail-m_3407529166741998270gmail-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" target="_blank">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_-8635926326205756217gmail-m_3407529166741998270gmail-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_-8635926326205756217gmail-m_3407529166741998270gmail-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_-8635926326205756217gmail-m_3407529166741998270gmail-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_-8635926326205756217gmail-m_3407529166741998270gmail-m_-8242135022667381869gmail-docutils gmail-m_-8635926326205756217gmail-m_3407529166741998270gmail-m_-8242135022667381869gmail-literal gmail-m_-8635926326205756217gmail-m_3407529166741998270gmail-m_-8242135022667381869gmail-notranslate"><span class="gmail-m_-8635926326205756217gmail-m_3407529166741998270gmail-m_-8242135022667381869gmail-pre">CMAKE_BUILD_TYPE=DEBUG</span></code> <span class="gmail-m_-8635926326205756217gmail-m_3407529166741998270gmail-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_-8635926326205756217gmail-m_3407529166741998270gmail-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></span></span><br></span></pre></div></div></div></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>
</blockquote></div>