GNU bug report logs -
#63365
30.0.50; GCC 13.1 breaks building Emacs with native-compilation
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Mon, 8 May 2023 08:17:02 UTC
Severity: normal
Tags: moreinfo
Merged with 65727
Found in version 30.0.50
Done: Andrea Corallo <acorallo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Arash Esbati <arash <at> gnu.org>
> Cc: 63365 <at> debbugs.gnu.org, akrl <at> sdf.org
> Date: Thu, 01 Feb 2024 12:11:25 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Does this mean the build of the master branch still crashes for you?
> > I thought this was resolved long ago... Or do you work around this in
> > some way?
>
> It did crash during this build, yes. The solution provided once was to
> set '-fno-optimize-sibling-calls', and this is what I usually do and it
> works:
>
> $ CFLAGS='-O2 -fno-optimize-sibling-calls' ./configure ...
Ah, okay. So this is still the same version of GCC/libgccjit, and
downgrading them to an older version also solves the problem?
> > Thanks. I think this means the problem with the backtrace addresses
> > has been solved, indeed: the frames which are printed with file name
> > and function name looks reasonable. Those which remained "??" I think
> > are due to optimizations or something. It would be educational to see
> > a corresponding backtrace from GDB, if you can capture it, since we
> > will be able then to compare the "??" portions with what GDB knows
> > about them.
>
> Did you give me a recipe how to produce the backtrace from GDB?
> Otherwise I'll go through this thread and look.
I don't mind giving the instructions again:
. run "make V=1"
. find the last command before the crash
. start GDB as "gdb ./emacs.exe" from the src subdirectory
. if the crashed command was run from the lisp/ subdirectory, type
at the GDB prompt "cd ../lisp"
. finally, type "run" followed by the failing command line, which
you can copy/paste from the output of "make V=1" above
This should run the failed command, and cause the crash. Then type:
(gdb) thread 1
(gdb) bt
and post here everything that command produces.
Thanks.
This bug report was last modified 1 year and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.