[cfe-dev] libc++abi on linux

Chris Lattner clattner at apple.com
Mon Jul 9 16:51:23 PDT 2012


On Jul 9, 2012, at 4:32 PM, Chris Lattner wrote:

> 
> On Jul 9, 2012, at 9:44 AM, Ashok Nalkund wrote:
> 
>>>> What is the problem?  Is there some disagreement about the scope of
>>>> libc++abi?  Is there some specific part that has been excluded that is
>>>> required on linux but not darwin?  Does libc++abi replace libsupcxx (not
>>>> entirely)?  Does libunwind address just the missing bit or is there
>>>> overlap? If there is overlap is linking order enough to fix that? is
>>>> libc++abi equivalent to libcxxrt? And there are lots of other questions
>>>> that come up and it just makes it hard to get going.
>>> 
>>> The intention is that libc++abi + libc++ is a replacement libstdc++ in its entirety.  It is factored the way it is because Apple ships the "STL part" of libstdc++ on top of libc++abi: the ABI library is the common linkage between the two STL implementations.  It is a pretty direct replacement for libsupc++, but may not be a 100% analogue (I don't recall).
>>> 
>> So could you suggest a replacement for unwind? libc++abi + libc++ still requires unwind.h, and my temporary solution is to pull it from gcc.
> 
> Aha, I forgot about libunwind.  I'll see if I can get our sources released.

Ah, Nick reminded me that the sources are already public:
 http://www.opensource.apple.com/source/libunwind/libunwind-30/

They're just under the APSL, and are probably not fully portable to Linux at the moment.

-Chris



More information about the cfe-dev mailing list