[Bug 2138929] Re: flags for variant are set despite an incompatible host arch
Matthias Klose
2138929 at bugs.launchpad.net
Sun Jan 25 04:47:08 UTC 2026
sure you can do something about that. DEB_HOST_ARCH is used by dpkg-
buildflags to determine the flags. So you must not add invalid flags for
a variant that doesn't match the architecture.
it's not just one package broken, it's the entire cross build building
broken on amd64v3.
** Changed in: dpkg (Ubuntu)
Importance: Wishlist => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2138929
Title:
flags for variant are set despite an incompatible host arch
Status in dpkg package in Ubuntu:
Confirmed
Bug description:
seen when trying to get target flags on an amd64v3 buildd, flags for
variant are set despite an incompatible host arch
$ DEB_HOST_ARCH_VARIANT=amd64v3 DEB_HOST_ARCH=arm64 dpkg-buildflags --get CFLAGS
dpkg-buildflags: warning: debian/changelog not found. Not setting ELF package metadata parameter.
-g -O2 -Werror=implicit-function-declaration -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/packages/tmp/m=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -march=x86-64-v3
these are the correct flags for arm64, but -march=x86-64-v3 is added
for no reason, letting builds fail.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2138929/+subscriptions
More information about the foundations-bugs
mailing list