On Thu, Nov 05, 2026 at 11:04:33AM +0100, Kirill A. Korinsky wrote: > Bjorn, > > I had tried to build zstd in OpenBSD/hppa and it failed as: > > /usr/ports/pobj/zstd-1.5.7/zstd-1.5.7/lib//decompress/huf_decompress_amd64.S: > Assembler messages: > /usr/ports/pobj/zstd-1.5.7/zstd-1.5.7/lib//decompress/huf_decompress_amd64.S:17: > Error: unknown pseudo-op: `.note.gnu' > gmake[2]: *** [Makefile:231: > obj/conf_e40a5586737ee70892113c62a76c445f/static/huf_decompress_amd64.o] > Error 1 > > the reason is 20 years old gas which requires a whitespace before .section; > > Ok?
That's weird, this file is only useful on amd64. It contains 10+ lines about aarch64 so that the .o doesn't end up with stupid/incompatible features. Clearly it is being built everywhere for dubious build system reasons. Since this file is the only asm file in the distfile you could just use ZSTD_NO_ASM=1 in MAKE_FLAGS on non-amd64. > Index: patches/patch-lib_decompress_huf_decompress_amd64_S > =================================================================== > RCS file: patches/patch-lib_decompress_huf_decompress_amd64_S > diff -N patches/patch-lib_decompress_huf_decompress_amd64_S > --- /dev/null 1 Jan 1970 00:00:00 -0000 > +++ patches/patch-lib_decompress_huf_decompress_amd64_S 5 Nov 2026 > 10:01:33 -0000 > @@ -0,0 +1,12 @@ > +Index: lib/decompress/huf_decompress_amd64.S > +--- lib/decompress/huf_decompress_amd64.S.orig > ++++ lib/decompress/huf_decompress_amd64.S > +@@ -14,7 +14,7 @@ > + /* Stack marking > + * ref: https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart > + */ > +-.section .note.GNU-stack,"",%progbits > ++ .section .note.GNU-stack,"",%progbits > + > + #if defined(__aarch64__) > + /* Mark that this assembly supports BTI & PAC, because it is empty for > aarch64. > > > -- > wbr, Kirill > -- jca
