<div dir="ltr">-llvmdev, +cfe-dev</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 3, 2015 at 2:55 PM, Greg Fitzgerald <span dir="ltr"><<a href="mailto:garious@gmail.com" target="_blank">garious@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On OS X 10.9.5, I can only get all libcxx tests to pass if I link<br>
against the system libcxxabi.  If instead, I link against the<br>
just-built libcxxabi (using Apple LLVM version 6.0 based on LLVM 3.5),<br>
I see the following test failures:<br>
<br>
Failing Tests (9):<br>
    libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp<br>
    libc++ :: std/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp<br>
    libc++ :: std/language.support/support.dynamic/new.delete/new.delete.single/new.pass.cpp<br>
    libc++ :: std/language.support/support.dynamic/new.delete/new.delete.single/new_nothrow.pass.cpp<br>
    libc++ :: std/language.support/support.exception/except.nested/rethrow_nested.pass.cpp<br>
    libc++ :: std/localization/locales/locale.global.templates/use_facet.pass.cpp<br>
    libc++ :: std/localization/locales/locale/locale.cons/char_pointer.pass.cpp<br>
    libc++ :: std/strings/basic.string/string.capacity/max_size.pass.cpp<br>
    libc++ :: std/thread/thread.threads/thread.thread.class/thread.thread.destr/dtor.pass.cpp<br>
<br>
Error messages include:<br>
<br>
libc++abi.dylib: terminating<br>
libc++abi.dylib: terminating with uncaught exception of type<br>
std::bad_cast: std::bad_cast<br>
libc++abi.dylib: terminating with uncaught exception of type<br>
std::runtime_error: locale constructed with null<br>
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc<br>
Assertion failed: (false), function main, file<br>
std/language.support/support.dynamic/new.delete/new.delete.array/new_array.pass.cpp,<br>
line 50.<br>
Assertion failed: (new_handler_called == 1), function main, file<br>
std/language.support/support.dynamic/new.delete/new.delete.array/new_array_nothrow.pass.cpp,<br>
line 42.<br>
<br>
<br>
<br>
To link against the just-built library, I'm adding the following CMake define:<br>
<br>
    -DLIBCXX_CXX_ABI_LIBRARY_PATH=../libcxxabi_install/lib<br>
<br>
Am I building libcxxabi correctly?  All tests in its own test suite<br>
pass.  Or perhaps is libcxxabi only supported for certain OS X<br>
versions?<br>
<br>
Thanks,<br>
Greg<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>