[Bug 2138929] Re: flags for variant are set despite an incompatible host arch
Julian Andres Klode
2138929 at bugs.launchpad.net
Sat Jan 24 09:58:27 UTC 2026
If you are overriding DEB_HOST_ARCH manually then you also need to
override DEB_HOST_ARCH_VARIANT, there isn't anything we can do about
this.
--
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