From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Tue, 09 May 2023 14:12:56 +0200 Message-ID: <86wn1h3dpz.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21037"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 09 14:14:15 2023 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 1pwMER-0005Gp-Jc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 09 May 2023 14:14:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwMEF-0001Sr-2G; Tue, 09 May 2023 08:14:03 -0400 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 1pwMEE-0001Sj-8p for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 08:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pwMED-0000Hr-W6 for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 08:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwMED-0006jk-K2 for bug-gnu-emacs@gnu.org; Tue, 09 May 2023 08:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 May 2023 12:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63365 X-GNU-PR-Package: emacs Original-Received: via spool by 63365-submit@debbugs.gnu.org id=B63365.168363439725810 (code B ref 63365); Tue, 09 May 2023 12:14:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 9 May 2023 12:13:17 +0000 Original-Received: from localhost ([127.0.0.1]:42599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwMDU-0006iE-V9 for submit@debbugs.gnu.org; Tue, 09 May 2023 08:13:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwMDT-0006hz-06 for 63365@debbugs.gnu.org; Tue, 09 May 2023 08:13:15 -0400 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 1pwMDN-0000E5-5w; Tue, 09 May 2023 08:13:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=uzvN6dTKr2vyvrOvSyR1g8b3h/6DPnm96YMPZbuRA5I=; b=T3N6rocENc7cCmgC3aaL 7VUzpjOTUmrtPnzBE1ZBQrUdShLbkO5c8j3TWUSOJ6WksfIiSeiAjtEtQ5u+JOuD/4m+60UYMawvb U9wZ6KZY3/ZHGDtSGSCEvLnsZ5xtKA0ZjQwxQjvqb0wUqF2xIGs98vh1qCVX0PqhpYWQ1n8nPHq/M 5b8i2kZQy5UpZFvxg8BPlxWqsAbVJh66AeolOwxx1nwrz+MNy/Xtu8njtDuwEldOZZ9EpBcAEXTDy UCoCpi7GXSnAXdU9watgZhgp3o/APrGBanvvnkufIorJvY65kOofEC2H8vQxM4LyfcEjSmiY6tRl6 HfVhJaAmQVuvYg==; Original-Received: from p5b326c3d.dip0.t-ipconnect.de ([91.50.108.61] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pwMDM-0002Hp-Na; Tue, 09 May 2023 08:13:08 -0400 In-Reply-To: <83r0rqaycc.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 09 May 2023 08:05:39 +0300") 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:261407 Archived-At: Eli Zaretskii 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