[llvm-bugs] [Bug 49827] New: clang 13 bootstrap is failing on Debian i386 " Host compiler must support std::atomic!"

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 3 09:36:14 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49827

            Bug ID: 49827
           Summary: clang 13 bootstrap is failing on Debian i386 "  Host
                    compiler must support std::atomic!"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

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;
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210403/340e4341/attachment.html>


More information about the llvm-bugs mailing list