[Bug 2138929] Re: flags for variant are set despite an incompatible host arch

Matthias Klose 2138929 at bugs.launchpad.net
Sat Jan 24 03:47:07 UTC 2026


wishlist? this completely breaks any cross building with amd64v3 as the
host. Please note that DEB_HOST_ARCH_VARIANT is set on the buildds, not
by myself. Setting DEB_HOST_ARCH for the dpkg-architecture call seems to
be valid behavior, so the variant should not break that.

-- 
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