FS#72588 - [clang] Consider splitting the library and compiler parts like llvm
Attached to Project:
Arch Linux
Opened by Emil (xexaxo) - Saturday, 30 October 2021, 18:45 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:17 GMT
Opened by Emil (xexaxo) - Saturday, 30 October 2021, 18:45 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:17 GMT
|
Details
Description:
Currently the clang package provides both the compiler toolchain and backend libraries. If we have a OpenCL workload - we would install opencl-mesa or intel-opencl-clang. Either of them pulls the complete clang and all its dependencies - compiler-rt, gcc and binutils et al. Which is just wasteful, since we don't need neither the clang frontend nor gcc and friends. Thus instead of having ~80 MiB libclang libraries, we get 400 MiB of packages. Please consider splitting the clang compiler toolchain and libraries into separate packages. Just like we have llvm and llvm-libs. Additional info: * package version(s) - clang 12.0.1-1 Steps to reproduce: - get a simple Arch install, lacking any base-devel pkgs - pacman -S mesa - install overall mesa driver-set - pacman -S opencl-mesa - observe compiler-rt, gcc and binutils being pulled - manually remove said packages, remove all of clang but /usr/lib/libclang* - opencl drivers work \o/ |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:17 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/clang/issues/1
Saturday, 25 November 2023, 20:17 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/clang/issues/1
Any chance we can get it merged, or variation thereof?
This task/patch partially helps with https://bugs.archlinux.org/task/57215
(llvm-libs-minimal-git had gained a clang runtime lib a while ago and splitting of clang runtime libs makes sense)
I just want to understand why scan-build, libear, libscanbuild, libexec are moved in the clang-libs package?
By "they" I mean /usr/bin/scan-build and the python-scripts - both the libraries /usr/lib/python-3.10/site-packages/ and /usr/lib/clang/.