<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 --- - bootstrap failure using libc++abi on Linux -- libc++ does not re-export its symbols"
   href="http://llvm.org/bugs/show_bug.cgi?id=22731">22731</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>bootstrap failure using libc++abi on Linux -- libc++ does not re-export its symbols
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </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>cmake
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>richard-llvm@metafoo.co.uk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>eric@efcs.ca, llvmbugs@cs.uiuc.edu, mclow.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>See:

 
<a href="http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/2/steps/compile/logs/stdio">http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/2/steps/compile/logs/stdio</a>

This build is produced by doing the following on a Debian Linux 7.7 system:

 - checking out llvm + clang + libc++ + libc++abi
 - configuring with cmake
 - building and installing them
 - reconfiguring with cmake, using the just-built components
 - rebuilding

Apparently we failed to link libc++abi into libLTO.so. Our build system is
passing "-z defs" to the linker when linking this library, which results in the
error. Clang passes '-lc++' but not '-lc++abi' to this link, which is
appropriate because the clang driver has no idea which C++ ABI library is in
use.

On Apple systems, libc++ explicitly re-exports the symbols from libc++abi. We
don't seem to have anything comparable set up for Linux; we presumably should.</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>