<div dir="ltr">Mike, I know we've had a similar issue on a Linux distro that has some headers missing in the regular include path (I don't remember the details). We've had to supply -DGCC_INSTALL_PREFIX=<path-to-gcc> when building the stage1 compiler to get around the issue. It could be a similar problem that you're experiencing.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jan 21, 2017 at 12:36 AM, Mike Aizatsky via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here are CMake logs (in case they could shed a light):<div><br></div><div><a href="https://gist.github.com/anonymous/47a413ae30e2e6952f20d471b123def0" target="_blank">https://gist.github.com/<wbr>anonymous/<wbr>47a413ae30e2e6952f20d471b123de<wbr>f0</a><br></div><div><a href="https://gist.github.com/anonymous/1c1e85a154912f5d3479cc75a6e27aa1" target="_blank">https://gist.github.com/<wbr>anonymous/<wbr>1c1e85a154912f5d3479cc75a6e27a<wbr>a1</a><br></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 20, 2017 at 3:25 PM Mike Aizatsky <<a href="mailto:aizatsky@google.com" target="_blank">aizatsky@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I can reliably reproduce the issue on linux with the following CMake command line:<div><br></div><div>cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=OFF -DLLVM_PARALLEL_LINK_JOBS=8 -DCMAKE_C_COMPILER=$HOME/out/<wbr>llvm/bootstrap/bin/clang -DCMAKE_CXX_COMPILER=$HOME/<wbr>out/llvm/bootstrap/bin/clang++ -DLLVM_USE_SANITIZER=Address -DLLVM_USE_SANITIZE_COVERAGE=<wbr>YES -DLLVM_ENABLE_ASSERTIONS=ON ~/src/llvm/<br></div><div><br></div><div><div>- Performing Test LIBCXX_HAVE_CXX_ATOMICS_<wbr>WITHOUT_LIB</div><div>-- Performing Test LIBCXX_HAVE_CXX_ATOMICS_<wbr>WITHOUT_LIB - Failed</div><div>-- Looking for __atomic_fetch_add_8 in atomic</div><div>-- Looking for __atomic_fetch_add_8 in atomic - not found</div><div>CMake Warning at projects/libcxx/cmake/Modules/<wbr>CheckLibcxxAtomic.cmake:45 (message):</div><div> Host compiler appears to require libatomic, but cannot find it.</div><div>Call Stack (most recent call first):</div><div> projects/libcxx/cmake/config-<wbr>ix.cmake:47 (include)</div><div> projects/libcxx/CMakeLists.<wbr>txt:370 (include)</div><div><br></div><div><br></div><div>-- Performing Test LIBCXX_HAS_WX_FLAG</div><div>-- Performing Test LIBCXX_HAS_WX_FLAG - Failed</div><div>-- Performing Test LIBCXX_HAS_NO_WX_FLAG</div><div>-- Performing Test LIBCXX_HAS_NO_WX_FLAG - Failed</div><div>-- Performing Test LIBCXX_HAS_EHSC_FLAG</div><div>-- Performing Test LIBCXX_HAS_EHSC_FLAG - Failed</div><div>-- Performing Test LIBCXX_HAS_NO_EHS_FLAG</div><div>-- Performing Test LIBCXX_HAS_NO_EHS_FLAG - Failed</div><div>-- Performing Test LIBCXX_HAS_NO_EHA_FLAG</div><div>-- Performing Test LIBCXX_HAS_NO_EHA_FLAG - Failed</div><div>-- Performing Test LIBCXX_HAS_NO_GR_FLAG</div><div>-- Performing Test LIBCXX_HAS_NO_GR_FLAG - Failed</div><div>-- Looking for pthread_create in pthread</div><div>-- Looking for pthread_create in pthread - not found</div><div>-- Looking for ccos in m</div><div>-- Looking for ccos in m - not found</div><div>-- Looking for clock_gettime in rt</div><div>-- Looking for clock_gettime in rt - not found</div><div>-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_<wbr>FLAG</div><div>-- Performing Test LIBCXX_SUPPORTS_STD_EQ_CXX11_<wbr>FLAG - Failed</div><div>CMake Error at projects/libcxx/CMakeLists.<wbr>txt:423 (message):</div><div> C++11 or greater is required but the compiler does not support c++11</div><div><br></div><div><br></div><div>-- Configuring incomplete, errors occurred!</div><div>See also "/usr/local/google/home/<wbr>aizatsky/out/llvm/fuzzer/<wbr>CMakeFiles/CMakeOutput.log".</div><div>See also "/usr/local/google/home/<wbr>aizatsky/out/llvm/fuzzer/<wbr>CMakeFiles/CMakeError.log".</div><div>cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=OFF 23.14s user 12.73s system 100% cpu 35.826 total</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 12, 2016 at 11:10 AM Kostya Serebryany 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_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="m_-4953790424341870392gmail_msg">FTR, I've disabled libcxx checkout on that particular <a href="http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fuzzer" class="m_-4953790424341870392gmail_msg" target="_blank">bot</a> to make it green.<div class="m_-4953790424341870392gmail_msg">The problem remains, of course. :(</div></div><div class="gmail_extra m_-4953790424341870392gmail_msg"><br class="m_-4953790424341870392gmail_msg"><div class="gmail_quote m_-4953790424341870392gmail_msg">On Sun, Dec 11, 2016 at 7:23 AM, James Knight <span dir="ltr" class="m_-4953790424341870392gmail_msg"><<a href="mailto:jyknight@google.com" class="m_-4953790424341870392gmail_msg" target="_blank">jyknight@google.com</a>></span> wrote:<br class="m_-4953790424341870392gmail_msg"><blockquote class="gmail_quote m_-4953790424341870392gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="m_-4953790424341870392gmail_msg">On Dec 11, 2016, at 3:33 AM, Eric Fiselier via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="m_-4953790424341870392gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br class="m_-4953790424341870392gmail_msg">
> So it seems that libatomic went missing between build #1379 and #1380, so I don't think this is related to the -std=c++11 failure. Instead it seems likely that the compile test for -std=c++11 is failing due to mis-configuring -latomic.<br class="m_-4953790424341870392gmail_msg">
><br class="m_-4953790424341870392gmail_msg">
> Can you confirm the bot has libatomic installed?<br class="m_-4953790424341870392gmail_msg">
<br class="m_-4953790424341870392gmail_msg">
</span>You shouldn't need it on x86-64. The issue there is that cmake is reporting, incorrectly:<br class="m_-4953790424341870392gmail_msg">
-- Performing Test LIBCXX_HAVE_CXX_ATOMICS_<wbr>WITHOUT_LIB<br class="m_-4953790424341870392gmail_msg">
-- Performing Test LIBCXX_HAVE_CXX_ATOMICS_<wbr>WITHOUT_LIB - Failed<br class="m_-4953790424341870392gmail_msg">
<br class="m_-4953790424341870392gmail_msg">
despite that previously in the same run, the same test configuring llvm itself worked:<br class="m_-4953790424341870392gmail_msg">
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB<br class="m_-4953790424341870392gmail_msg">
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success<br class="m_-4953790424341870392gmail_msg">
<br class="m_-4953790424341870392gmail_msg">
I suspect that the flags change has somehow caused *all* compiler invocations to fail, and that results in both the erroneously-failed atomic check and the erroneously-failed std=c++11 check.</blockquote></div><br class="m_-4953790424341870392gmail_msg"></div>
______________________________<wbr>_________________<br class="m_-4953790424341870392gmail_msg">
LLVM Developers mailing list<br class="m_-4953790424341870392gmail_msg">
<a href="mailto:llvm-dev@lists.llvm.org" class="m_-4953790424341870392gmail_msg" target="_blank">llvm-dev@lists.llvm.org</a><br class="m_-4953790424341870392gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" class="m_-4953790424341870392gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br class="m_-4953790424341870392gmail_msg">
</blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Mike<br>Sent from phone</div></div></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Mike<br>Sent from phone</div></div>
</div></div><br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>