On Thu, 05 Nov 2026 11:22:22 +0100, Jeremie Courreges-Anglas <[email protected]> wrote: > > 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. >
I think adding whitespace is simpler than touching dubious build system to fix build on hppa and maybe something else like alpha with old gas. -- wbr, Kirill
