[Bug 2034536] Re: Amd64 build fails with "‘-fcf-protection=full’ is not supported for this target"

Steve Langasek 2034536 at bugs.launchpad.net
Sat Sep 23 04:48:48 UTC 2023


@Dave consider that dpkg-buildflags is sensitive to the dpkg arch env
variables.  E.g.:

$ DEB_HOST_ARCH=amd64 dpkg-buildflags --get CFLAGS
-g -O2 -ffile-prefix-map=/tmp=. -flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
$ DEB_HOST_ARCH=armhf dpkg-buildflags --get CFLAGS
-g -O2 -ffile-prefix-map=/tmp=. -fstack-protector-strong -Wformat -Werror=format-security
$

While stripping this one flag may fix the build, ideally we would have a
more general fix that uses target-appropriate flags for the cross-build.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to u-boot in Ubuntu.
https://bugs.launchpad.net/bugs/2034536

Title:
  Amd64 build fails with "‘-fcf-protection=full’ is not supported for
  this target"

Status in u-boot package in Ubuntu:
  New

Bug description:
  Rebuilding the u-boot package on the amd64 architecture failed with:

  cc1: error: ‘-fcf-protection=full’ is not supported for this target

  https://launchpadlibrarian.net/685589889/buildlog_ubuntu-mantic-
  amd64.u-boot_2023.07+dfsg-1ubuntu1_BUILDING.txt.gz

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/u-boot/+bug/2034536/+subscriptions




More information about the foundations-bugs mailing list