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: [email protected]
          Reporter: [email protected]
    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.
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to