all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: StrawberryTea <look@strawberrytea.xyz>,
	Andrea Corallo <acorallo@gnu.org>
Cc: 65640@debbugs.gnu.org
Subject: bug#65640: 30.0.50; segfault when building emacs with native-comp
Date: Thu, 31 Aug 2023 08:40:08 +0300	[thread overview]
Message-ID: <837cpbg47b.fsf@gnu.org> (raw)
In-Reply-To: <871qfkqq0g.fsf@strawberrytea.xyz> (message from StrawberryTea on Wed, 30 Aug 2023 14:38:55 -0500)

> From: StrawberryTea <look@strawberrytea.xyz>
> Date: Wed, 30 Aug 2023 14:38:55 -0500
> 
> 
> Hi. I just set up a fresh install of Gentoo with Clang as my default
> compiler. At first, I was trying to compile Emacs with Clang and Emacs
> was finding -lgccjit but not finding the libgccjit.h header file. So I
> overwrote the compiler Emacs was using to GCC instead and now it
> compiles but segfaults when native-compiling some Elisp files.
> 
> Build log with Clang (configure error): https://bpa.st/ODFBK
> Build log with GCC (segfault): https://0x0.st/Hpbz.txt

First, you apply local patches to the Emacs tree, so you are compiling
code that is not from our Git repository, but some variation of that.

More importantly: it looks like you build Emacs with "-O3 -march=native",
which are not the default compilation switches, and cause GCC to
over-optimize the code.  Please try again without those switches.

If using the default compiler switches doesn't help, please run the
crashing command under GDB, and when it segfaults, produce the
C-level backtrace and post it here.

Please also always post the build logs as plain text or attachments to
your messages, instead of pointing to a URL that could some day go
away, and thus years from now people will be unable to see the log by
reading this discussion.

Thanks.

P.S. Adding Andrea.





  reply	other threads:[~2023-08-31  5:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30 19:38 bug#65640: 30.0.50; segfault when building emacs with native-comp StrawberryTea
2023-08-31  5:40 ` Eli Zaretskii [this message]
2023-08-31  7:24   ` Andrea Corallo
2023-09-01 15:05     ` LemonBreezes
2023-09-01 15:28       ` Eli Zaretskii
     [not found]         ` <0d10be97-ac8a-48b7-887e-1e9ae169daf2@app.fastmail.com>
2023-09-01 17:27           ` Eli Zaretskii
2023-09-01 20:48             ` LemonBreezes
2023-09-01 20:57               ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=837cpbg47b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=65640@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=look@strawberrytea.xyz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.