Problem with -fno-stack-clash-protection flag on armhf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dpkg (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This concerns libdpkg-perl 1.22.4ubuntu5 in Ubuntu noble.
In /usr/share/
# Debian enables -fstack-
# (which are not fully analyzed as of writing this); disable it there in
# order to have time to investigate
if ($arch eq 'armhf') {
# Stack clash protector only available on amd64 and arm.
}
Then in /usr/share/
# Stack clash
if ($flags-
my $flag = '-fstack-
} else {
my $flag = '-fno-stack-
}
Which causes -fno-stack-
Unfortunately, in building Chromium for armhf on noble, I see this (build log excerpt):
[27780/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27781/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27782/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27783/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27784/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27785/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27786/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27787/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27788/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
[27789/60083] CXX obj/net/
clang++-16: warning: argument unused during compilation: '-fno-stack-
Basically, *every* invocation of the C or C++ compiler gives this warning.
I think the flag needs to be dropped altogether for armhf, not just negated.
The -fno-stack- clash-protectio n flag appears to have been dropped from Debian.pm at some point after I filed this report. Closing.