On 2026-09-01 11:28, Bruno Haible via GNU gzip discussion and bug reports. wrote:
On OpenBSD 7.5/x86 (a VM built from https://cdn.openbsd.org/pub/OpenBSD/7.5/i386/install75.iso ),
Thanks for reporting that. That URL doesn't work for me, perhaps because OpenBSD supports only 7.9 and 7.8 (currently the two most recent versions). Does the issue still happen on 7.8 or 7.9? If so, does the attached patch work around the problem?
From 90fdedf1d2874b473f330d9fb28c112999e6825b Mon Sep 17 00:00:00 2001 From: Paul Eggert <[email protected]> Date: Tue, 1 Sep 2026 21:11:35 -0700 Subject: [PATCH] build: work around OpenBSD i386 glitch Problem reported by Bruno Haible (Bug#81766). * configure.ac (gzip_cv_assembler): 'no' on OpenBSD i386. --- configure.ac | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 4499cac..e6b0e8f 100644 --- a/configure.ac +++ b/configure.ac @@ -261,13 +261,16 @@ AC_CACHE_CHECK([for an assembler syntax supported by this package], [gzip_cv_assembler=no AS_CASE([$DEFS], [*NO_ASM*], [], - [# 'host_os?' ensures Gnulib sets host_os as usual. - AS_CASE([${host_os?}], - [*-musl* | midipix*], + [# 'host?' ensures Gnulib sets host as usual. + AS_CASE([${host?}], + [*-musl* | *-midipix*], [# Avoid a crash in musl libc's startup code, # because musl doesn't support TEXTRELs. # https://www.openwall.com/lists/musl/2020/09/25/1 ], + [i386*-openbsd*], + [# Avoid issue in OpenBSD i386 <https://bugs.gnu.org/81766>. + ], [if cp $srcdir/lib/match.c _match.S && eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" && eval "$ASCPPPOST < _match.i > match_.s"; then -- 2.55.0
