<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang 13 bootstrap is failing on Debian i386 " Host compiler must support std::atomic!""
   href="https://bugs.llvm.org/show_bug.cgi?id=49827">49827</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang 13 bootstrap is failing on Debian i386 "  Host compiler must support std::atomic!"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>release blocker
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sylvestre@debian.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The cmake fails with:

-- Performing Test HAVE_CXX_ATOMICS_WITH_LIB - Failed
CMake Error at cmake/modules/CheckAtomic.cmake:56 (message):
  Host compiler must support std::atomic!
Call Stack (most recent call first):
  cmake/config-ix.cmake:367 (include)
  CMakeLists.txt:670 (include)



/root/llvm-toolchain-snapshot-13~++20210403032730+89afec348dbd/build-llvm/./bin/clang++
-D_GNU_SOURCE  -fuse-ld=gold -fPIC  -DHAVE_CXX_ATOMICS_WITH_LIB  -std=c++11  
-std=c++14 -c foo.cpp 
In file included from foo.cpp:1:
In file included from
/usr/lib/gcc/i686-linux-gnu/8/../../../../include/c++/8/atomic:41:
/usr/lib/gcc/i686-linux-gnu/8/../../../../include/c++/8/bits/atomic_base.h:35:10:
fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
         ^~~~~~~~~~~~~~~~~~
1 error generated.

testcase:
#include <atomic>
std::atomic<int> x;
std::atomic<short> y;
std::atomic<char> z;
int main() {
  ++z;
  ++y;
  return ++x;
}</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>