Bug 1991941

Summary: emacs fails to build with gcc-11.2.1-2.1.el9
Product: Red Hat Enterprise Linux 9 Reporter: Miloš Prchlík <mprchlik>
Component: emacsAssignee: Jacek Migacz <jmigacz>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0   
Target Milestone: beta   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-10 13:21:53 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 Miloš Prchlík 2021-08-10 12:51:11 UTC
Description of problem:

$ rpmbuild -bc SPECS/emacs.spec
...
  CC       macros.o
  CC       keymap.o
  CC       sysdep.o
../../src/sysdep.c:1819:22: error: variably modified 'sigsegv_stack' at file scope
 1819 | static unsigned char sigsegv_stack[SIGSTKSZ];
      |                      ^~~~~~~~~~~~~
make[3]: *** [Makefile:402: sysdep.o] Error 1
make[3]: Leaving directory '/tmp/tmp.2Usu8Gxn9S/BUILD/emacs-27.1/build-gtk/src'
make[2]: *** [Makefile:424: src] Error 2
make[2]: Leaving directory '/tmp/tmp.2Usu8Gxn9S/BUILD/emacs-27.1/build-gtk'
make[1]: *** [Makefile:1119: bootstrap] Error 2
make[1]: Leaving directory '/tmp/tmp.2Usu8Gxn9S/BUILD/emacs-27.1/build-gtk'
error: Bad exit status from /var/tmp/rpm-tmp.4EtN06 (%build)

The full log can be found at [1].

The rebuild used to work in the past, see [2]. There is some difference between toolchain NVRs used, gcc-11.1.1-6.1.el9.x86_64 => gcc-11.2.1-2.1.el9.x86_64, and glibc-devel-2.33-14.el9 => glibc-devel-2.34-1.el9.


[1] http://lab-02.rhts.eng.bos.redhat.com/beaker/logs/tasks/130192+/130192794/taskout.log
[2] https://beaker-archive.host.prod.eng.bos.redhat.com/beaker-logs/2021/07/55290/5529079/10236232/128343091/taskout.log


Version-Release number of selected component (if applicable):

emacs-27.1-3.el9
gcc-11.2.1-2.1.el9
glibc-devel-2.34-1.el9
binutils-2.35.2-6.el9


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Jacek Migacz 2021-08-10 13:21:53 UTC

*** This bug has been marked as a duplicate of bug 1975151 ***