Control: tag -1 + moreinfo unreproducible

On Tue, 4 Feb 2025 10:15:59 +0100 Helmut Grohne <hel...@subdivi.de> wrote:
> Source: ipxe
> Version: 1.21.1+git20220113.fbbdc3926+dfsg-4
> Tags: patch
> User: debian-cr...@lists.debian.org
> Usertags: ftcbfs
> 
> ipxe fails to cross build from source e.g. for amd64 -> arm64 as it
> passes e.g. -mbranch-protection=standard to x86_64-linux-gnu-gcc and
> gcc does not like that. The way buildflags are computed does not
> correctly take the architecture switching into account. I'm attaching a
> patch to address this aspect.

Thanks for your report. However, I failed to reproduce the failure. I tried
to build the package for arm64 on an amd64 machine, and the build succeeded
without any error. From the build log, I can see no such 
-mbranch-protection=standard argument on the invocation of
x86_64-linux-gnu-gcc.

In the rules, I've already exported DEB_HOST_ARCH for src/bin-<arch>/%
targets. So when executing the build commands, dpkg-buildflags --get should
give the correct options for the corresponding architecture. The following
tests further proves this:

$ dpkg-architecture -a arm64 -f -c dpkg-buildflags --get CFLAGS
-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=.....=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -mbranch-protection=standard
$ dpkg-architecture -a arm64 -f -c env DEB_HOST_ARCH=amd64 dpkg-buildflags 
--get CFLAGS
-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=.....=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection
$ dpkg-architecture -a amd64 -f -c dpkg-buildflags --get CFLAGS
-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=.....=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection

As you can see from the last two tests, the results are the same, so there
is no need to explicitly add dpkg-architecture -a${DEB_HOST_ARCH} -f -c

Can you provide the full logs for the failed cross build for further
diagnosis?

Cheers,

Miao Wang

Reply via email to