libc++ 3.9.0 packaging improvements

Pauli suokkos at gmail.com
Tue Nov 1 18:42:16 UTC 2016


On Tue, Nov 1, 2016 at 7:20 PM, Sylvestre Ledru <sylvestre at mozilla.com> wrote:
> Le 01/11/2016 à 17:46, Pauli . a écrit :
>>
>> On Tue, Nov 1, 2016 at 6:29 PM, Pauli . <suokkos at gmail.com> wrote:
>>
>>>> In a chroot, tests are failing with:
>>>> /usr/bin/ld: cannot find -lc++
>>>
>>> -lc++ shouldn't be included for libc++abi. I didn't see that appearing
>>> in my system. Full log could help figure out what went wrong.
>>>
>> Adding LIBCXXABI_LIBCXX_LIBRARY_PATH to libcxxabi cmake options would
>> fix the issue. I didn't notice the test problem because I had libc++1
>> installed when building and running tests.
>>
>> -DLIBCXXABI_LIBCXX_LIBRARY_PATH=$(abspath libcxx/$(BUILDDIR)/lib)\
>
> So, you can easily reproduce it with:
> dpkg-source -b -i trunk
> sudo cowbuilder --build libc++_3.9.0-2.dsc
>
> Full log attached.
>
> Thanks again,
> Sylvestre
>

I'm partially afk for a few hours this evening.

Attached patch is updated version that managed to run test after I
removed all libc++ packages from my system. I didn't yet figure how to
setup cowbuilder correctly. I don't know if all build dependencies are
correct for chroot build. It would help if I could to my computer and
read the setup guide.

Looking building actually works correctly but it was only the path
issue for test runner. The runner isn't smart enough to build
libc++abi tests without libc++. That requires configure option for
libc++ build library path to allow testing work correctly.

I hope it works in chroot now.

Pauli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxx-use-cmake-build-v2.patch
Type: text/x-patch
Size: 25938 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20161101/8ac3208f/attachment-0001.bin>


More information about the Pkg-llvm-team mailing list