[cfe-dev] Hard to make clang+lldb work on centos7

Dave Johansen via cfe-dev cfe-dev at lists.llvm.org
Fri Jan 8 07:29:45 PST 2016


No, the EPEL and COPR versions use the system C++ libraries for binary
compatibility with applications built with gcc.

On Tue, Jan 5, 2016 at 6:44 PM, 陶征霖 <zhenglin.taozl at gmail.com> wrote:

> Hi Dave,
>
> llvm/clang EPEL version doesn't include libc++ and libc++abi, I have to
> compile them alone where I encountered many issues. Does you COPR version
> with libc++ and libc++abi included?
>
>
> 2016-01-06 3:30 GMT+08:00 Dave Johansen <davejohansen at gmail.com>:
>
>> llvm/clang 3.4 is available in EPEL (
>> https://admin.fedoraproject.org/pkgdb/package/rpms/llvm/ ) and I have a
>> COPR with 3.7 ( https://copr.fedoraproject.org/coprs/daveisfera/llvm_3.7/
>> ).
>>
>> On Wed, Nov 18, 2015 at 2:12 AM, 陶征霖 via cfe-dev <cfe-dev at lists.llvm.org>
>> wrote:
>>
>>> Hi,
>>>
>>> I yum install clang, llvm-devel and lldb 3.4.2 on centos7. In order to
>>> add libc++ and libc++abi, I followed the guide in
>>> http://stackoverflow.com/questions/25840088/how-to-build-libcxx-and-libcxxabi-by-clang-on-centos-7.
>>> I only build libc++ without libc++abi and build libc++abi with libc++, and
>>> then workaround by copy /usr/include/c++/4.8.2/cxxabi.h to
>>> /usr/local/include/, otherwise cxxabi.h not be found.
>>>
>>> With all these steps done, I am able to compile like clang++ -std=c++11
>>> -stdlib=libc++ -lc++abi. OK, I used this to compile my own program, when
>>> the program runs, I found the following log "*exception_ptr not yet
>>> implemented*". And I can't find the root cause.
>>>
>>> Also lldb doesn't work. I tried to lldb a.out, set breakpoint, and run.
>>> But not able to reach the breakpoint.
>>>
>>> Could you please give me some hints on how to solve this problem?
>>>
>>> --
>>> Zhenglin
>>>
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>>
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160108/b3a42367/attachment.html>


More information about the cfe-dev mailing list