[Openmp-dev] [cfe-dev] [Release-testers] [6.0.0 Release] Release Candidate 2 tagged

Dimitry Andric via Openmp-dev openmp-dev at lists.llvm.org
Fri Feb 9 13:11:20 PST 2018


On 9 Feb 2018, at 20:40, Dimitry Andric via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
>> On 9 Feb 2018, at 10:20, Hans Wennborg <hans at chromium.org> wrote:
...
>> What are all these test failures? Does it seems like they have a
>> common root cause and do we have a bug for it?
...
> The Clang Tools and Extra Tools Unit tests all appear to crash with:
> 
>    exception_ptr not yet implemented

This turns out to be caused by libc++ being compiled without -DLIBCXXRT.  (In the FreeBSD base system build, we always add this option, so libc++ knows how to handle exceptions.)

In the libc++ CMakeFiles, it appears to be governed by LIBCXX_CXX_ABI_LIBNAME, but it isn't being set to the correct value of "cxxrt" on FreeBSD.  I am going to try the following diff:

--- llvm.src/projects/libcxx/CMakeLists.txt
+++ llvm.src/projects/libcxx/CMakeLists.txt
@@ -135,6 +135,8 @@
   elseif (APPLE)
     set(LIBCXX_CXX_ABI_LIBNAME "libcxxabi")
     set(LIBCXX_CXX_ABI_SYSTEM 1)
+  elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+    set(LIBCXX_CXX_ABI_LIBNAME "libcxxrt")
   else()
     set(LIBCXX_CXX_ABI_LIBNAME "default")
   endif()

-Dimitry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.llvm.org/pipermail/openmp-dev/attachments/20180209/baa56a54/attachment.sig>


More information about the Openmp-dev mailing list