GNU bug report logs - #65640
30.0.50; segfault when building emacs with native-comp

Previous Next

Package: emacs;

Reported by: StrawberryTea <look <at> strawberrytea.xyz>

Date: Wed, 30 Aug 2023 22:34:02 UTC

Severity: normal

Tags: moreinfo, notabug

Found in version 30.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: LemonBreezes <look <at> strawberrytea.xyz>
To: "Eli Zaretskii" <eliz <at> gnu.org>
Cc: 65640 <at> debbugs.gnu.org, Andrea Corallo <acorallo <at> gnu.org>
Subject: bug#65640: 30.0.50; segfault when building emacs with native-comp
Date: Fri, 01 Sep 2023 15:48:33 -0500
[Message part 1 (text/plain, inline)]
Hi. I updated from the unstable GCC 13.2.1_p20230826 Gentoo package to the live 14.0.0.9999 version of GCC and the issue disappeared. Thank you. :))

On Fri, Sep 1, 2023, at 12:27 PM, Eli Zaretskii wrote:
> > Date: Fri, 01 Sep 2023 11:40:56 -0500
> > From: LemonBreezes <look <at> strawberrytea.xyz>
> > Cc: "Andrea Corallo" <acorallo <at> gnu.org>, 65640 <at> debbugs.gnu.org
> > 
> > Okay. So I can reproduce it by native-compiling org.el. But instead of Emacs segfaulting, I get the
> > following error:
> > 
> > Debugger entered--Lisp error: (wrong-type-argument
> > "/home/st/.config/emacs/.local/straight/repos/org/l..." number-or-marker-p "Segmentation fault")
> >   signal(wrong-type-argument ("/home/st/.config/emacs/.local/straight/repos/org/lisp/org.el"
> > number-or-marker-p "Segmentation fault"))
> >   comp--native-compile("/home/st/.config/emacs/.local/straight/repos/org/l..." nil nil)
> >   native-compile("/home/st/.config/emacs/.local/straight/repos/org/l...")
> >   emacs-lisp-native-compile()
> 
> Looks like Andrea was right: libgccjit is segfaulting on your system,
> for some reason.  If some other version of libgccjit is known to work
> well on that platform, perhaps install that other version instead of
> what you have now.
> 
[Message part 2 (text/html, inline)]

This bug report was last modified 1 year and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.