[lldb-dev] [Bug 18311] New: 32-bit Linux fails to compile with clang due to std::atomic support

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 22 10:58:57 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18311

            Bug ID: 18311
           Summary: 32-bit Linux fails to compile with clang due to
                    std::atomic support
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: andrew.macp at gmail.com
    Classification: Unclassified

Trying to compile the latest lldb from trunk on 32-bit Linux currently fails
with this error:

In file included from SBBlock.cpp:10:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/API/SBBlock.h:13:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/API/SBDefines.h:18:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/lldb-defines.h:13:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/lldb-types.h:14:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/lldb-forward.h:15:
In file included from
/home/andrew/src/llvm-trunk/tools/lldb/source/API/../../include/lldb/Utility/SharingPtr.h:22:
In file included from
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/atomic:41:
/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/bits/atomic_base.h:420:16:
error:
      cannot compile this atomic library call yet
      { return __atomic_add_fetch(&_M_i, __i, memory_order_seq_cst); }
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The error appears to be because clang doesn't yet support C++11 std::atomic on
64-bit values (bug 15034) and this is used at least in Address::m_offset.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20131222/07ba4eee/attachment.html>


More information about the lldb-dev mailing list