You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::notice::no host assembler emits x86 ELF here; the emulator's --version is the check on this leg"
423
+
# ⚠️ THE GATE IS "CAN THIS HOST LINK AN x86 ELF", AND MY FIRST VERSION
424
+
# ASKED THE WRONG QUESTION.
425
+
#
426
+
# It checked for a 32-bit COMPILER and let the link run. On Windows
427
+
# that passes — MinGW's `cc -m32` happily produces an object — and
428
+
# then the link fails, because the linker beside it emits PE and
429
+
# nothing else:
430
+
#
431
+
# ld.exe: unrecognised emulation mode: elf_i386
432
+
# Supported emulations: i386pep i386pe
433
+
#
434
+
# An arm64 or macOS runner fails earlier for a different reason. One
435
+
# check covers all of them: ask the LINKER whether it knows the
436
+
# emulation, which is the step that actually has to work.
437
+
if ! ld -V 2>/dev/null | grep -q "elf_i386"; then
438
+
echo "::notice::this host's linker emits no x86 ELF (supported: $(ld -V 2>/dev/null | tr '\n' ' ' | head -c 120)); the emulator's --version is the whole of the check on this leg"
427
439
exit 0
428
440
fi
429
441
cc -m32 -c -o probe.o probe.S -nostdlib 2>/dev/null \
0 commit comments