[cfe-dev] Libc++ and libc++abi on ubuntu/debian/linux
Ben Pope
benpope81 at gmail.com
Wed Jul 17 21:09:50 PDT 2013
On 18/07/13 11:08, Ben Pope wrote:
> On 16/07/13 19:22, David Irvine wrote:
>>
>> On Tue, Jul 16, 2013 at 10:18 AM, Ben Pope
>> <benpope81 at gmail.com
>> <mailto:benpope81 at gmail.com>> wrote:
>>
>>
>> These are the results of the nightly tests run against clang-3.3:
>> export CXXFLAGS=-stdlib=libc++ && sandbox/bin/lnt runtest --submit
>> perfdb nt --sandbox sandbox --cc /usr/bin/clang-3.3 --test-suite
>> llvm-test-suite -j6
>>
>>
>> Did you try these with libc++abi ? at all, sorry for the laziness here I
>> am in meetings just now
>
> ben at yyls03:~$ ldd /usr/lib/libc++.so
> linux-vdso.so.1 => (0x00007fff39bb2000)
> libc++abi.so.1 => /usr/lib/libc++abi.so.1 (0x00007f378202f000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x00007f3781e12000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3781a49000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3781744000)
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f378153c000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3781325000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f3782169000)
>
>
> I've just tested with:
> export CXXFLAGS=-stdlib=libc++ && export LDFLAGS=-lc++abi &&
> sandbox/bin/lnt runtest --submit perfdb nt --sandbox sandbox --cc
> /usr/bin/clang-3.3 --test-suite llvm-test-suite -j6
>
> And I get the same results.
Looks like the final flags ended up as "-lc++abi -lc++", so I reran
build with:
export CXXFLAGS=-stdlib=libc++ && export LDFLAGS="-lc++ -lc++abi" &&
sandbox/bin/lnt runtest --submit perfdb nt --sandbox sandbox --cc
/usr/bin/clang-3.3 --test-suite llvm-test-suite -j6
And got:
New Failures - Compile Time ▾
-----
MultiSource/Applications/kimwitu++/kc
MultiSource/Benchmarks/Prolangs-C++/city/city
MultiSource/Benchmarks/Prolangs-C++/deriv1/deriv1
MultiSource/Benchmarks/Prolangs-C++/deriv2/deriv2
MultiSource/Benchmarks/Prolangs-C++/employ/employ
MultiSource/Benchmarks/Prolangs-C++/office/office
MultiSource/Benchmarks/Prolangs-C++/shapes/shapes
MultiSource/Benchmarks/tramp3d-v4/tramp3d-v4
(I also got some runtime fails, but they were mostly the same tests)
Looks like the Makefiles all had
LDFLAGS = -lstdc++
so I changed them to
LDFLAGS += -lstdc++
And reran. Now it gets interesting, the results are:
New Failures - Execution Time
-----
MultiSource/Benchmarks/Olden/voronoi/voronoi
Yay! The same as without libc++.
Ben
More information about the cfe-dev
mailing list