Bug#1126263: llvm-toolchain-21: Please enable libunwind on s390x, from llvm 15+

"Michael R. Crusoe" <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <9fe1a5d2-3078-4678-aecf-4ca82df6ebbf__27788.3238902845$1769178449$gmane$org@debian.org>
Source: llvm-toolchain-21
Version: 1:15
Severity: normal
Tags: patch
X-Debbugs-Cc: [email protected], [email protected]
User: [email protected]
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!
OpenPGP_signature.asc (application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE-----

wsF5BAABCAAjFiEEck1gkzcRPHEFUNdHPCZ2P2xn5uIFAmlzhQsFAwAAAAAACgkQPCZ2P2xn5uJV
ZBAAokM5yY1rhPqu9hqV/P/QWcfR+IN2N3JTEtFLaPgYww/N2QcnwbspaadFbPqfQoSf2YhiJ9+6
XSIbYigubLzjoZMiNjIw2L2glfz1pdH3dr017Xsow6byqOSuZozz08S+ccC7sEWg12uKkq4amF5x
xqlOR26pd+34mn8tPrCOZ9YAZqMsxSfWQTxLQf/82zAcBDHam/O5qHOyIUfIoZjqGM6a0ONuTrIK
ehS+U1uq+zTh2+bjnEQvfYhvNasqfnBk+ZDyisklVumKPydeQcCZ3w6JiEzNl0xMoxY0JyNfxRag
eQULm7YyB5VG1jSPM4tIX9BPrCP1AAkTDHsBEff1y30CNcg2FdpWXL2ryePcj5nSpMVU+ign96+1
lieISv0//ySUiKfM1IlWIo7/+VIYn6OuAzc69gfeV+9Iv5NltOy7JzIw1vC1SEsJslHoWkaSuH5R
7eVO0x5bpDNcyLSAOTCby5Y2BafzjZ3SyETari1DpDylvCuPo63+0UDuzGr/2H1C9ebWbYLKUqTJ
nPFe6I1fgcRYh51/7+kGWyNaH9jk5QVNMqllMvmLBtZnYTVBDz7Z2jvScrwiAR7xFD3LwjBMwabr
zR8OX+usNLBpZk3tXGSJou8BvNePSHWhAGEHmXfkeMzY+VIqyOdF1VxehQR44aVxZkaJEi6ITCA6
kEQ=
=3Uv9
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.