[cfe-dev] Using libcxx and libcxxabi from a build tree on OS X

Eric Fiselier eric at efcs.ca
Thu Feb 19 14:18:58 PST 2015


>Also, maybe I don't understand CMake well enough, but it doesn't
>seem like LIBCXX_LIBCPPABI_VERSION is ever populated and that
>ABI version 1 will always be chosen.

That's the bug. It should be populated with "2" as far as I know.

On Thu, Feb 19, 2015 at 2:03 PM, Meador Inge <meadori at gmail.com> wrote:
> On Thu, Feb 19, 2015 at 10:53 AM, Eric Fiselier <eric at efcs.ca> wrote:
>
>> It looks like we are selecting the wrong libc++abi symbol list when
>> linking libc++. I'll try and get a fix in today.
>
> I am using OS X 10.9.5 and CMake to build.
>
> It isn't readily apparent how the symbols in the .exp files are chosen
> or ordered.  However, adding the following fixed my issue (I can apply
> this if y'all deem it to be correct):
>
> diff --git a/lib/libc++abi.exp b/lib/libc++abi.exp
> index 87035b2..db965cd 100644
> --- a/lib/libc++abi.exp
> +++ b/lib/libc++abi.exp
> @@ -157,3 +157,10 @@ __ZTIy
>  __ZTIx
>  __ZTIw
>  __ZTIv
> +__ZSt13get_terminatev
> +__ZSt13set_terminatePFvvE
> +__ZSt14get_unexpectedv
> +__ZSt14set_unexpectedPFvvE
> +__ZSt15get_new_handlerv
> +__ZSt15set_new_handlerPFvvE
> +__ZSt9terminatev
>
> Also, maybe I don't understand CMake well enough, but it doesn't
> seem like LIBCXX_LIBCPPABI_VERSION is ever populated and that
> ABI version 1 will always be chosen.
>
> --
> # Meador



More information about the cfe-dev mailing list