[cfe-dev] Why no Debian package for libc++?

Ben Pope benpope81 at gmail.com
Sun Jul 28 23:00:24 PDT 2013


On 27/07/13 08:17, Arji Cot wrote:
> The errors are probably caused by the fact that you need ( and you are not
> providing it to the linker ) libcxxabi http://libcxxabi.llvm.org/ .
> 
> In general terms I personally consider both libcxx and libcxxabi under
> Linux pretty useless right now.
> 
> The main issues are:
>  - libcxx and libcxxabi are simply not ready yet for Linux, they are just
> incomplete and without a real support from the llvm project
>  - in the end libcxx and libcxxabi will use libsupc++ and stdlibc++ anyway,
> so there is no point in using them, you are just introducing a new
> dependence for nothing

I've built libc++ against libc++abi on Ubuntu 13.04, and yes, you do
need to specify -lc++ -lc++abi

ben at localhost:/usr/lib$ ldd libc++.so
	linux-vdso.so.1
	libc++abi.so.1
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
	/lib64/ld-linux-x86-64.so.2
ben at localhost:/usr/lib$ ldd libc++abi.so
	linux-vdso.so.1
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6
	libc++.so.1 => /usr/lib/libc++.so.1
	/lib64/ld-linux-x86-64.so.2
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1

libsupc++ is not required if libc++abi is used, and of course, libstdc++
is also not required.

In this configuration, with Clang 3.3, the llvm nightly test suite
passes. (Ok, there is one failure, but it's the same as with libstdc++)

Ben




More information about the cfe-dev mailing list