Bug 1975151

Summary: emacs: FTBFS with glibc 2.34 due to dynamic stack sizes
Product: Red Hat Enterprise Linux 9 Reporter: Florian Weimer <fweimer>
Component: emacsAssignee: Jacek Migacz <jmigacz>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: fsumsal, mprchlik
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: emacs-27.2-5.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 12:39:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2021-06-23 08:09:24 UTC
Emacs is currently not compatible with the dynamic stack sizes in upcoming glibc 2.34 (soon to be imported into the buildroot). The build fails like this:

../../src/sysdep.c:1821:22: error: variably modified 'sigsegv_stack' at file scope
 1821 | static unsigned char sigsegv_stack[SIGSTKSZ];
      |                      ^~~~~~~~~~~~~
make[2]: Leaving directory '/builddir/build/BUILD/emacs-27.2/build-gtk/src'

This Fedora commit

commit 181aafcdb7ee2fded9fce4cfc448f27edccc927f
Author: Scott Talbert <swt>
Date:   Sat Mar 27 00:10:16 2021 -0400

    Fix FTBFS with glibc 2.34

backports upstream commit f97e07ea807cc6d38774a3888a15091b20645ac6 ("Port alternate signal stack to upcoming glibc 2.34"), addressing this issue for now.

You can test a fix before glibc 2.34 is merged using this command:

koji -p stream build --scratch c9s-build-side-102-stack-gate git+https://gitlab.com/redhat/centos-stream/rpms/emacs#origin/c9s

Comment 2 Jacek Migacz 2021-08-10 13:21:53 UTC
*** Bug 1991941 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2022-05-17 12:39:29 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: emacs), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2369