GNU bug report logs - #63365
30.0.50; GCC 13.1 breaks building Emacs with native-compilation

Previous Next

Package: emacs;

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>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 63365 <at> debbugs.gnu.org, akrl <at> sdf.org
Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation
Date: Tue, 09 May 2023 14:12:56 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Right, forgot about that factoid.  On Windows, the Sed part is not
> required, so the command is just
>
>   addr2line -C -f -i -p -e BINDIR/EMACS-BINARY < emacs_backtrace.txt

Tried this (with different setups, incl. adjusting sed to pipe the
addresses), and the result always looks like this:

  ?? ??:0
  ?? ??:0
  ?? ??:0
  ?? ??:0
  ?? ??:0
  ...

So that didn't work, for whatever reason :-(

> OK, so you compile with "-O2 -gdwarf-2 -g3", the default optimization
> options, and with -mtune=generic (also the default).  Things to try,
> in order to better understand the scope of the problem:
>
>   1) try removing -mtune=generic
>   2) try using -O1 instead of -O2
>
> For 1), edit src/Makefile to remove -mtune=generic from any GCC
> options there, then remove src/*.o files and say "make" to rebuild.
> For 2), edit src/Makefile to change -O2 to -O1, and again remove *.o
> files and rebuild.  But let's first establish the exact locus of the
> crashes first, without any changes in the build options.

Thanks, and I agree, let's keep the build options; I will try your
recipe for gdb next.

Best, Arash




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.