[cfe-dev] How to build libc++ under Linux

Michael Spencer bigcheesegs at gmail.com
Fri Jan 11 13:48:09 PST 2013


On Wed, Jan 9, 2013 at 6:14 AM, Bruce Stephens
<bruce.r.stephens at gmail.com> wrote:
> Michael Spencer <bigcheesegs-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org>
> writes:
>
> [...]
>
>> 1) Configure libc++ with CMAKE_INSTALL_PREFIX=/usr (clang only looks
>> for libc++ here on Linux)
>> 2) Set LIBCXX_CXX_ABI to libsupc++ and reconfigure.
>> 3) Set LIBCXX_LIBSUPCXX_INCLUDE_PATHS to a ; separated list of paths
>> to the libsupc++ headers. On my linux machine this is
>> "usr/include/c++/4.6;/usr/include/c++/4.6/x86_64-linux-gnu"
>> 4) Reconfigure
>> 5) Generate, build, install
>>
>> I have been using libc++ with clang on Linux for over a year now and
>> I've only found one bug (that was fixed in less than 24 hours).
>
> That still crashes if you output to std::cerr, doesn't it? (Presumably
> there are other crashes, but that's the one that I noticed first.)
>
> [...]

No, it works fine here (x86-64 Linux Kubuntu 12.10 clang trunk + libc++ trunk).

Also there are updated install docs on http://libcxx.llvm.org/

- Michael Spencer



More information about the cfe-dev mailing list