-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ICE in gcc 14.1.0 trying to compile emacs from source #20879
Comments
Thanks. Did this work before (with GCC 13.2.0)? |
Your example also fails like the other issues if the dwarf flags are not given, so it might be related at least. I'm going to reduce both cases and file them upstream. |
Haven't personally tested it, but I guess the current
Thanks! |
I saw that Also, the |
Reduced to this in the meantime: // gcc -c -O2 repro.c -> internal compiler error: in seh_cfa_offset
// gcc -c -g3 -O2 -gdwarf-2 repro.c -> internal compiler error: in dwarf2out_frame_debug_expr
void a() {
__builtin_unwind_init();
} |
Ah, I guess there's no need to add the In the meantime, I've confirmed that #17550 and #17343 still are a problem, so the |
Description / Steps to reproduce the issue
Trying to compile emacs from source, I get an internal compilation error. I do need to patch
src/syswait.c
to forcibly include<sys/wait.h>
, as I get an implicit function declaration error otherwise (I've reported this upstream). The (hacky) patch:syswait.patch
The steps to reproduce:
Contrary to #20861 (which seems similar), I'm not compiling with
-fno-omit-frame-pointer
, just the default CFLAGS-g3 -O2 -gdwarf-2
. OTOH, the issue does seem to go away when compiling with-O1
.Expected behavior
No ICE
Actual behavior
Verification
Windows Version
MINGW64_NT-10.0-19045
MINGW environments affected
Are you willing to submit a PR?
Sure
The text was updated successfully, but these errors were encountered: