GNU bug report logs -
#66709
gzip build fails on s390x because (version 1.13)
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Mon, 23 Oct 2023 14:45:21 -0700
with message-id <50d91fcc-5341-4159-bd44-a6159901331c <at> cs.ucla.edu>
and subject line Re: bug#66709: gzip build fails on s390x because (version 1.13)
has caused the debbugs.gnu.org bug report #66709,
regarding gzip build fails on s390x because (version 1.13)
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
66709: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=66709
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
Hi,
we are using gzip 1.13 for builds on openSUSE Tumbleweed.
It is failing for the hardware architecture s390x with the following error message:
[ 246s] gcc -DHAVE_CONFIG_H -I. -I./lib -I./lib -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fomit-frame-pointer -W -Wall -Wno-unused-parameter -Wstrict-prototypes -Wpointer-arith -fPIE -DDFLTCC_LEVEL_MASK=0x7e -fprofile-generate -c -o dfltcc.o dfltcc.c
[ 246s] dfltcc.c:86:17: error: expected declaration specifiers or '...' before numeric constant
[ 246s] 86 | char alignas (8) aligned;
[ 246s] | ^
[ 246s] dfltcc.c:87:1: warning: no semicolon at end of struct or union
[ 246s] 87 | };
[ 246s] | ^
[ 246s] dfltcc.c:138:17: error: expected declaration specifiers or '...' before numeric constant
[ 246s] 138 | char alignas (8) aligned;
[ 246s] | ^
[ 246s] dfltcc.c:139:1: warning: no semicolon at end of struct or union
[ 246s] 139 | };
[ 246s] | ^
[ 246s] make[2]: *** [Makefile:1945: dfltcc.o] Error 1
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
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'.
[0001-maint-fix-port-to-s390x.patch (text/x-patch, attachment)]
This bug report was last modified 86 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.