<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - 32-bit Linux fails to compile with clang due to std::atomic support"
   href="http://llvm.org/bugs/show_bug.cgi?id=18311">18311</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>32-bit Linux fails to compile with clang due to std::atomic support
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </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>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andrew.macp@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 (<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - 64-bit __atomic_add_fetch(__ATOMIC_RELAXED) is not supported with -m32"
   href="show_bug.cgi?id=15034">bug 15034</a>) and this is used at least in Address::m_offset.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>