https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111448
Levi Zim <rsworktech at outlook dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #6 from Levi Zim <rsworktech at outlook dot com> --- (In reply to Andreas Schwab from comment #5) > GCC tries to increase the stack limit to 64Mb, but the qemu user-space > emulation uses a fixed stack size (initialized on startup from the current > stack limit) and ignores the RLIMIT_STACK request. Thanks! That's indeed the crux. After increasing QEMU_STACK_SIZE, the bug disappears. Let's track it on qemu bug tracker instead: https://gitlab.com/qemu-project/qemu/-/issues/1895