gcc 11 can't build cmucl.
Describe the bug
Building cmucl on Fedora 35 with gcc 11 or clang 13 fails with an error while compiling the C runtime.
To Reproduce
Steps to reproduce the behavior:
- Build cmucl via `bin/build.sh -C "" -o cmulisp"
- See error compiling
interrupt.lisp
Expected behavior
Compilation should work.
Actual behavior
To debug this, I did gcc <options> -E ...
. The interesting part is the declaration for altstack is now expanded to
char altstack[sysconf(_SC_SIGSTKSZ)];
Previously, this was just the constant SIGSTKSZ
. For some reason
it's expanded to a call to sysconf
. The compiler can't dynamically
allocate such an array.
Desktop (please complete the following information):
- OS: Linux
- Version: Fedora 35
- GCC 11.2
- Clang 13.0