Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1057339: dash FTCBFS: host CFLAGS leak into build compiler invocation

5 views
Skip to first unread message

Helmut Grohne

unread,
Dec 3, 2023, 1:40:05 PM12/3/23
to
Source: dash
Version: 0.5.12-6
User: debian...@lists.debian.org
Usertags: ftcbfs
X-Debbugs-Cc: debia...@lists.debian.org

Hi arm people and Andrej,

this is one of those PAC/BTI "induced" cross build failures. Don't get
me wrong. This problem has always been there. The PAC/BTI work just
makes the bug visible. Still, this is now making quite a lot of packages
failing to cross build. Help appreciated.

Fundamentally, the host compiler flags and -mbranch-protection=standard
leak into a build architecture compiler invocation and that compiler
fails to understand the flag. Often times, we can get away with deleting
compiler flags from build architecture compiler invocations, but dpkg
also supports emitting CFLAGS_FOR_BUILD and friends.

So here is a patch for dash that adds CFLAGS_FOR_BUILD support and thus
solves this instance. I think there are many more of this and appreciate
help with fixing them. Thanks in advance.

Helmut
cross.patch
0 new messages