On 9/1/21 1:55 PM, Florian Weimer wrote:
In autotools parlance, cross-compilation is defined by the inability
of
running even the most trivial program that was just compiled.
It is often possible to avoid this problem using qemu in user-mode
emulation mode, but even that is not needed here.
What you seem to be arguing for is using a multilib build
environment
that leans towards 64-bit, overridden towards 32-bit mode using build
flags. Like the environment that you have to use if you want to build
32-bit binaries on Red Hat Enterprise Linux outside of Red Hat. That
just does not work in current Koji, and probably does not work that well
with direct mock invocations, either. It's the reason why there are no
32-bit package builds in EPEL anymore.
This can be worked around by replacing /usr/bin/gcc and other binaries
with ones that have been built to produce 32-bit code, but which are
themselves 64-bit programs.
That said, building a package that isn’t going to be shipped is silly.
Demi