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

İsmail Dönmez ismail at donmez.ws
Fri Jul 11 12:18:48 PDT 2014


I am not enabling the llwn unwinder. Compiling with:


cmake -DLIBCXXABI_LIBCXX_INCLUDES=/usr/include/c++/v1

and run the tests with

make check-libcxxabi


On Fri, Jul 11, 2014 at 9:56 PM, Dan Albert <danalbert at google.com> wrote:

> 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/809e243a/attachment.html>


More information about the cfe-dev mailing list