[LLVMbugs] [Bug 22731] New: bootstrap failure using libc++abi on Linux -- libc++ does not re-export its symbols

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 27 11:17:53 PST 2015


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

            Bug ID: 22731
           Summary: bootstrap failure using libc++abi on Linux -- libc++
                    does not re-export its symbols
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: unassignedbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: eric at efcs.ca, llvmbugs at cs.uiuc.edu,
                    mclow.lists at gmail.com
    Classification: Unclassified

See:

 
http://lab.llvm.org:8011/builders/clang-x86_64-linux-selfhost-modules/builds/2/steps/compile/logs/stdio

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.

-- 
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/20150227/3f70438b/attachment.html>


More information about the llvm-bugs mailing list