[cfe-dev] libc++abi on linux
Ashok Nalkund
ashoknn at qualcomm.com
Sun Jul 8 18:21:35 PDT 2012
On 7/8/2012 5:49 PM, "C. Bergström" wrote:
> On 07/ 9/12 07:48 AM, Ashok Nalkund wrote:
>> Hi All,
>> I tried to compile libc++abi using clang and it reported:
>>> src/cxa_exception.hpp:66:9: error: unknown type name '_Unwind_Exception'
>> This is defined in
>> /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include/unwind.h. I
>> found previous posts online that suggested including
>> /usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.5/include in the
>> include path so that compilation will pick up unwind.h. But I'm trying
>> to be completely free of gcc, so using file will not help.
>>
>> I am reading up on libunwind (X11 license, so maybe ok for me). Is
>> there any other alternative?
> libcxxrt + libunwind is the way to go imho
> https://github.com/pathscale/libcxxrt
> https://github.com/pathscale/libunwind
>
> These have been tested to work with clang - Admittedly the build process
> may not be straight forward, but if enough interest maybe we solve that
Thanks for the pointers. I chose libc++abi since it is developed
LLVM/Clang community and due to the complexity of the build process for
libcxxrt. What does the rest of LLVM/clang community use?
And is http://www.nongnu.org/libunwind/ different from the one you
mentioned?
thanks
More information about the cfe-dev
mailing list