On s390x, the binutils package ships a windres binary, which is not included in for other architectures (e.g. compare the file list for binutils-2.35.2-17.el9.s390x vs binutils-2.35.2-17.el9.x86_64). Unfortunately, this binary doesn't actually work, failing with windres: Can't detect architecture. This is problematic because windres is sometimes detected by autotools, leading then to failed builds like https://koji.fedoraproject.org/koji/taskinfo?taskID=83236147
This also applies to Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=2057636
Need to update the binutils.spec file so that the windres binary is not shipped.
Fixed in binutils-2.35.2-18.el9
Bumping ITM by one week to gain more time for testing. I got distracted by the fallout of the recent PSI outage.
Verified with binutils-2.35.2-19.el9.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (binutils bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8281