Package: src:gcc-mingw-w64
Version: 29
Severity: important
Tags: sid forky

d/rules reads:

$(foreach flag,$(BUILDFLAGS),$(eval $(flag)_FOR_TARGET := $(shell $(dpkg_buildflags_target) --get $(flag))))

and the good thing at least, that this fails in the Ubuntu builds at least, because the build flags include some host specific non-generic flags (-mbranch-protection=none on arm64, -mbackchain on s390x).

These builds fail at the first place building the libgcc target library after the compiler is built.

This is plain wrong. These flags are for the host, not for any of your mingw targets, and I wouldn't be surprised, that different code for the target is generated depending on the host.

You need to set these on your own, independent of the host that you are building on.

Reply via email to