Bug#1113237: llvm-toolchain-19: FTBFS with CMake 4

Aurelien Jarno aurel32 at debian.org
Wed Jun 10 05:34:31 BST 2026


control: clone -1 -2
control: reassign -2 src:llvm-toolchain-20
control: retitle -2 llvm-toolchain-20: FTBFS with CMake 4: ADD_LIBRARY called with SHARED option but the target platform does not support dynamic linking

On 2025-11-22 00:12, Timo Röhling wrote:
> Hi,
> 
> * Matthias Klose <doko at debian.org> [2025-10-25 19:25]:
> > I haven't seen any upstream support for cmake 4.x, not even in the trunk
> > (llvm-toolchain-snapshot). So if you upgrade to cmake 4.x, all LLVM
> > package stay unbuildable for some unseen time. What do you suggest?
> 
> The actual bug is that LLVM {17,18,19} try to build shared libraries for
> WebAssembly, which does not support them. CMP0164 [1] turned this into a
> fatal error, and CMake 4 implicitly activates this policy in export files
> [2], which is why this became a FTBFS.

It also affects llvm-toolchain-20 (currently only in experimental). 
Cloning the bug.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien at aurel32.net                     http://aurel32.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20260610/b2bc1b71/attachment.sig>


More information about the Pkg-llvm-team mailing list