clang versus apt

Dear clang community,

Today i noticed that on apt.llvm.org now with clang / llvm 7 there are
packages for libcxx / libcxxabi (not available in previous versions),
thanks.
Which amounts to the next level of "perfection": Would it be possible to
craft packages which depend on compiler-rt instead of libgcc?

Best regards

Franz

Bonjour,

Welcome! By the way, Reshabh and myself wrote this blog post about that: http://blog.llvm.org/2018/09/integration-of-libc-and-openmp-packages.html

I didn’t investigating replacing libgcc. Would you have some doc on this to evaluate the complexity?

Thanks

Sylvestre

Hi Sylvestre,

Thx again, and i indeed did a build without any dependency on libgcc (clang / libcxx / lld / compiler-rt / libunwind … version 6.0.1) on Ubuntu 16.04.
The main difficulty was the dependency of compiler-rt on libunwind and in the end the result was not 100% satisfying since on every link -L/usr/local/lib had to be given to not pull in the wrong (system) libunwind (in fact i removed the system libunwind-dev, link line without hassles now, but not 100% satisfying as well).
Not depending (runtime dependency) on libgcc would be a further improvement for apt.llvm.org IMO.
There still would be a dependency an crtbegin / crtend, but this is lacking an official solution by now and is only a link time dependency.

Best regards

Franz

P.S.

Another possible improvement here would be lld supporting file based configuration (e.g. /usr/local lib first) and / or linker scripts.

Hello

That could be a nice gsoc project for next year :slight_smile:
Would you mind opening a bug here https://bugs.llvm.org/enter_bug.cgi?product=Packaging + deb packages with the details?

Thanks
Sylvestre

I can enter a bug report (if i find some time so dont hold your breath) but i do not have any deb packages.

Hy Sylvestre,

Now there is https://bugs.llvm.org/show_bug.cgi?id=46318

Best regards

Franz