Bug#1126263: llvm-toolchain-21: Please enable libunwind on s390x, from llvm 15+
Michael R. Crusoe
crusoe at debian.org
Fri Jan 23 14:26:19 GMT 2026
Source: llvm-toolchain-21
Version: 1:15
Severity: normal
Tags: patch
X-Debbugs-Cc: debian-s390 at lists.debian.org, crusoe at debian.org
User: debian-s390 at lists.debian.org
Usertags: s390x
This is a follow-up to https://bugs.debian.org/1114980 ; Please enable libunwind for s390x, it is required for compiler-rt.
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/b8109f1e0c0b23f347df0d3362c0910726acab57/debian/rules#L616
libunwind has been supported on SystemZ since llvm 15: https://github.com/llvm/llvm-project/commit/364c5023d2ce1617c706b185892ddfaa2fd4d166
For me, it would be great to have this fixed for llvm-toolchain-snapshot as well. Perhaps other users would appreciate backporting this fix to -20 and before. If you want additional bugs filled for those versions, let me know and I'll do so.
Here's a simple patch:
diff --git a/debian/rules b/debian/rules
index 5d8a62cf..875bad9b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -607,7 +607,7 @@ ifneq (,$(filter $(DEB_HOST_ARCH), $(POLLY_ARCHS)))
endif
# Enable libunwind (or not)
-LIBUNWIND_ARCHS := amd64 arm64 armhf i386 loong64 ppc64 ppc64el riscv64
+LIBUNWIND_ARCHS := amd64 arm64 armhf i386 loong64 ppc64 ppc64el riscv64 s390x
LIBUNWIND_ENABLE=yes
ifeq (,$(filter $(DEB_HOST_ARCH), $(LIBUNWIND_ARCHS)))
LIBUNWIND_ENABLE=no
Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-llvm-team/attachments/20260123/c7c1aaf1/attachment.sig>
More information about the Pkg-llvm-team
mailing list