08.02.2024 16:38, Michael Tokarev:
Commit v7.0.0-1454-g33ab478742 "configure: enable cross-compilation of 
optionrom"
effectively broke building of optionroms on anything but real i386 or using
newly supported cross/docker image.  Before that, it was trivial to do that
using native x86_64 tools.

# Mac OS X ships with a broken assembler
if have_target i386-softmmu x86_64-softmmu && \
         test "$targetos" != "darwin" && test "$targetos" != "sunos" && \
         test "$targetos" != "haiku" && \
         probe_target_compiler i386-softmmu; then
     subdirs="$subdirs pc-bios/optionrom"
...

There, when run on x86_64 system, `probe_target_compiler i386-softmmu' return
false immediately, so whole thing gets skipped.

Okay, this is a bit more complex.

probe_target_compiler i386-softmmu actually tries to build i386 code, which -
in this restricted environment - does not work (missing 32bit libs etc).
This has always been enough to build bios/rom code, because it does not use
standard C library or even startup files.  And installing support for building
hello.c is something else due to an unrelated bug ;)

Sigh.

/mjt


Reply via email to