[LLVMbugs] [Bug 10245] New: libc++ misses cxxabi when it built by clang + libc++

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 1 15:25:07 PDT 2011


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

           Summary: libc++ misses cxxabi when it built by clang + libc++
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: hhinnant at apple.com
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu


I was able to successfully build libc++ using CMake with options

  cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
        -DCMAKE_C_COMPILER:STRING="/usr/bin/clang" \
        -DCMAKE_CXX_COMPILER:STRING="/usr/bin/clang++" \
        -DCMAKE_CXX_FLAGS:STRING="-stdlib=libc++" \
        ../$_svnmod || return 1

i.e., utilizing C++ Standard Library from libc++ rather than libstdc++.

Then,

$ ldd -r /usr/lib/libc++.so
    linux-vdso.so.1 =>  (0x00007fffc51d8000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007f7d7f666000)
    libc.so.6 => /lib/libc.so.6 (0x00007f7d7f305000)
    librt.so.1 => /lib/librt.so.1 (0x00007f7d7f0fc000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f7d7eee6000)
    /lib/ld-linux-x86-64.so.2 (0x00007f7d7fc07000)
undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE   
(/usr/lib/libc++.so)
undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE    (/usr/lib/libc++.so)
undefined symbol: __cxa_pure_virtual    (/usr/lib/libc++.so)
undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE   
(/usr/lib/libc++.so)
undefined symbol: __gxx_personality_v0    (/usr/lib/libc++.so)
undefined symbol: __cxa_free_exception    (/usr/lib/libc++.so)
undefined symbol: __cxa_begin_catch    (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_release    (/usr/lib/libc++.so)
undefined symbol: __cxa_call_unexpected    (/usr/lib/libc++.so)
undefined symbol: __cxa_allocate_exception    (/usr/lib/libc++.so)
undefined symbol: __cxa_throw    (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_abort    (/usr/lib/libc++.so)
undefined symbol: __cxa_end_catch    (/usr/lib/libc++.so)
undefined symbol: __cxa_guard_acquire    (/usr/lib/libc++.so)
undefined symbol: __cxa_rethrow    (/usr/lib/libc++.so)

I see libcxxabi in llvm subproject, but I'm not sure how we integrate it into
libcxx...

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list