[cfe-dev] libcxxabi cmake test problem on Linux x86-64

Dan Albert danalbert at google.com
Fri Jul 11 11:56:47 PDT 2014


How are you building/running the tests? test/lit.cfg will link gcc_s into
each test executable. If you've enabled the llvm unwinder, the tests are
expected to fail on Linux.

- Dan

On Fri Jul 11 2014 at 10:29:44 AM, İsmail Dönmez <ismail at donmez.ws> wrote:

> Hi,
>
> Unless I apply the patch below exception tests fail on Linux x86-64.
>
> --- libcxxabi.orig/src/CMakeLists.txt
> +++ libcxxabi/src/CMakeLists.txt
> @@ -48,7 +48,7 @@ include_directories("${LIBCXXABI_LIBCXX_
>  set(libraries ${LIBCXXABI_CXX_ABI_LIBRARIES})
>  append_if(libraries LIBCXXABI_HAS_C_LIB c)
>
> -target_link_libraries(cxxabi ${libraries})
> +target_link_libraries(cxxabi ${libraries} gcc_s pthread)
>
>  # Setup flags.
>  append_if(compile_flags LIBCXXABI_HAS_FPIC_FLAG -fPIC)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140711/5f470e4a/attachment.html>


More information about the cfe-dev mailing list