Subject: Re: bug#66709: gzip build fails on s390x because (version 1.13)
From: Paul Eggert <[email-masked]>
To: Sarah-Julia Kriesch <[email-masked]>
Cc: [email-masked]
Date: Mon, 23 Oct 2023 14:45:21 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks for the bug report. This bug was introduced during the flurry of 
patches just before 1.13 was released. Commit 
d826f7c04d824362dd1ba91c13d8f2c8b0996fff dated Sat Aug 19 11:23:45 2023 
-0700 removed Gnulib's stdalign module but did not add Gnulib's 
alignasof module that replaced stdalign. gzip needs this module because 
gzip.c and (as you noticed) dlftcc.c use alignas. We didn't notice the 
bug until now because gzip.c falls back on working code if alignas is 
absent, and we don't test on s390x.

I fixed the bug by installing the attached, which should appear in the 
next gzip release. In the meantime you should be able to build on s390x 
by compiling with 'gcc -Dalignas=_Alignas'.

From 900ecfd89fbe426c4cd1e2a86b0381d3d4050749 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Mon, 23 Oct 2023 13:12:10 -0700
Subject: [PATCH] maint: fix port to s390x

Problem reported by Sarah-Julia Kriesch <https://bugs.gnu.org/66709>.
* bootstrap.conf (gnulib_modules): Add alignasof.
---
 bootstrap.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bootstrap.conf b/bootstrap.conf
index 594dbee..a0229b0 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -18,6 +18,7 @@
 
 # gnulib modules used by this package.
 gnulib_modules='
+alignasof
 announce-gen
 calloc-gnu
 close
-- 
2.41.0