[cfe-dev] Installing libc++

Howard Hinnant hhinnant at apple.com
Sun Apr 24 09:01:03 PDT 2011


On Apr 24, 2011, at 11:51 AM, Jon Kalb wrote:

> 
> Thanks Howard, you guessed right.
> 
> This is my testit result (summary):
> 
> ****************************************************
> Results for /Users/jonkalb/Documents/development/developement/libcxx/test:
> using Apple clang version 2.0 (tags/Apple/clang-138) (based on LLVM 2.9svn)
> Target: x86_64-apple-darwin10
> Thread model: posix
> with -std=c++0x -stdlib=libc++
> ----------------------------------------------------
> sections without tests   : 1
> sections with failures   : 153
> sections without failures: 910
>                       +   ----
> total number of sections : 1064
> ----------------------------------------------------
> number of tests failed   : 1221
> number of tests passed   : 3019
>                       +   ----
> total number of tests    : 4240
> ****************************************************
> 
> Is this what I should expect?

I would've expected significantly fewer test failures for clang -std=c++0x -stdlib=libc++:

****************************************************
Results for /test:
using Apple clang version 2.0 (trunk 125236) (based on LLVM 2.9svn)
Target: x86_64-apple-darwin10
Thread model: posix
with -std=c++0x -stdlib=libc++ -arch x86_64 -U__STRICT_ANSI__ -I../include /usr/lib/libc++.dylib
----------------------------------------------------
sections without tests   : 1
sections with failures   : 74
sections without failures: 989
                       +   ----
total number of sections : 1064
----------------------------------------------------
number of tests failed   : 215
number of tests passed   : 4023
                       +   ----
total number of tests    : 4238
****************************************************

However it has been a couple of months since I actually ran the full test suite (been busy elsewhere).  Did you get libc++abi.dylib from here:

http://home.roadrunner.com/~hinnant/libcppabi.zip

?

http://libcxx.llvm.org/ says:

> To build on Mac OS X 10.6, you need a helper library and header found here. cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib.


This library implements things like exception handling.  Lack of this library might explain your failure rate.

If that isn't it, email me privately your entire results and I'll take a look.

Howard




More information about the cfe-dev mailing list