From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Thu, 01 Feb 2024 13:27:36 +0200 Message-ID: <86msskzaon.fsf@gnu.org> References: <86wn1jtezk.fsf@gnu.org> <83jzxjcac9.fsf@gnu.org> <86h6smopo6.fsf@gnu.org> <835y92dfgd.fsf@gnu.org> <86v8h2k475.fsf@gnu.org> <83r0rqaycc.fsf@gnu.org> <86wn1h3dpz.fsf@gnu.org> <835y91brfv.fsf@gnu.org> <86fs849xb0.fsf@gnu.org> <83ild08i8j.fsf@gnu.org> <86y1lwmfcw.fsf@gnu.org> <83ild06sb5.fsf@gnu.org> <83a5yc6m2e.fsf@gnu.org> <83jzxf5giw.fsf@gnu.org> <86ttn09r3r.fsf@gnu.org> <8634ukuf4d.fsf@gnu.org> <86h6izapkd.fsf@gnu.org> <86il38mpt5.fsf@gnu.org> <86o7d0zbtu.fsf@gnu.org> <861q9wigma.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, akrl@sdf.org To: Arash Esbati Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 01 12:28:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rVVF1-0006LB-Vu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Feb 2024 12:28:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rVVEY-0002bU-OK; Thu, 01 Feb 2024 06:27:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVVEW-0002aa-Q4 for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 06:27:53 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rVVEW-0006vo-9k for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 06:27:52 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rVVEg-0002FM-A3 for bug-gnu-emacs@gnu.org; Thu, 01 Feb 2024 06:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Feb 2024 11:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 63365-submit@debbugs.gnu.org id=B63365.17067868818626 (code B ref 63365); Thu, 01 Feb 2024 11:28:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 1 Feb 2024 11:28:01 +0000 Original-Received: from localhost ([127.0.0.1]:40426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVVEe-0002F4-NK for submit@debbugs.gnu.org; Thu, 01 Feb 2024 06:28:01 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38434) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVVEc-0002En-1h for 63365@debbugs.gnu.org; Thu, 01 Feb 2024 06:27:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVVEL-0006sj-Sc; Thu, 01 Feb 2024 06:27:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Xa1Zvn/kr+2cpFkQI23GEv/p3HS4aysyQ6kDCM5BTa0=; b=McAKwWO4lEKv 7RtYIb37bRWxwg7Alo1KxDUjsin0XYU5e5bdbkHPB8uG8BrmAI0LbdD+vTPbGpfmvaEt9yL5mVVTd 89+BUoh/BnR9/HYMbUJ34sl+v8cCu5PfGPStdiREuqThccJ54fJ8WprAmd6RS+DU6mK6ODDOUx3/M B9sxOme8LO1VwuinYT6zAUEjdhRAC8qgPOFfPxdbdU96RCC/0S/qWzhOvXpL/tQuEKctwqZJcGNm6 NCkHuhO6Rr1dhEjUlYSFiiQBWT/vRj4Any/fFnuHGkzXc4BJVI4j9ECmIoIC2EFej7LoByFaOpXkt rn7vHNDAE1kM5TqYWzPK1A==; In-Reply-To: <861q9wigma.fsf@gnu.org> (message from Arash Esbati on Thu, 01 Feb 2024 12:11:25 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:279287 Archived-At: > From: Arash Esbati > Cc: 63365@debbugs.gnu.org, akrl@sdf.org > Date: Thu, 01 Feb 2024 12:11:25 +0100 > > Eli Zaretskii 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.