XPost: linux.debian.bugs.dist
From:
hugo.melder@gmail.com
Package: dpkg-dev
Version: 1.22.0
Severity: important
Hi,
The recent change (
https://git.dpkg.org/cgit/dpkg/dpkg.git/diff/?id=11efff1bf) breaks building Debian packages with clang on arm64. LLVM does not have -fstack-clash-protection enabled on aarch64 (
https://reviews.llvm.org/D96007).
Here is the original bug report for adding clash protection:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918914
The GNUstep Objective-C 2.0 toolchain depends on Clang as GCC does not have newer Objective-C features such as ARC, properties, and blocks.
Fedora enables stack-clash-protection based on the toolchain (
https://src.fedoraproject.org/fork/tstellar/rpms/redhat-rpm-config/blob/c0bad810b4b47086f58e7537e258333b14c92c45/f/rpmrc#_77), and omits the flag when the compiler is not gcc.
I would suggest either checking for the compiler (if possible), or disabling it for aarch64 until Clang has support for it as well. Right now, projects like Grand Central Dispatch (libdispatch) or other projects with -Werror turned on, refuse to build.
<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">
Package: dpkg-dev</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Version: 1.22.0</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color:
rgb(0, 0, 0); color: rgb(0, 0, 0);">Severity: important</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Hi,</span><
br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The recent change (</span><a href="
https://git.dpkg.org/cgit/dpkg/dpkg.
git/diff/?id=11efff1bf">
https://git.dpkg.org/cgit/dpkg/dpkg.git/diff/?id=11efff1bf</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">) breaks building Debian packages with clang on arm64. LLVM does not have -fstack-clash-protection enabled
on aarch64 (</span><a href="
https://reviews.llvm.org/D96007">https://reviews.llvm.org/D96007</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">).</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(
0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Here is the original bug report for adding clash protection: </span><a href="
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918914">https://bugs.debian.
org/cgi-bin/bugreport.cgi?bug=918914</a><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The GNUstep Objective-C 2.0
toolchain depends on Clang as GCC does not have newer Objective-C features such as ARC, properties, and blocks.</span><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="
caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Fedora enables stack-clash-protection based on the toolchain (</span><a href="
https://src.fedoraproject.org/fork/tstellar/rpms/redhat-rpm-config/blob/c0bad810b4b47086f58e7537e258333b14c92c45/f/rpmrc#_77">
https://src.fedoraproject.org/fork/tstellar/rpms/redhat-rpm-config/blob/c0bad810b4b47086f58e7537e258333b14c92c45/f/rpmrc#_77</a><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">), and omits the flag when the compiler is not gcc.</span><br
style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I would suggest either checking for the compiler (if possible), or disabling
it for aarch64 until Clang has support for it as well. Right now, projects like Grand Central Dispatch (libdispatch) or other projects with -Werror turned on, refuse to build.</span></body></html>
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)