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: Sun, 25 Jun 2023 21:31:25 +0300 Message-ID: <83fs6fxuki.fsf@gnu.org> References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> <83ilbby2fu.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8644"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, arash@gnu.org, svraka.andras@gmail.com, cyril.arnould@outlook.com To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 25 20:32:24 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 1qDUX9-00025W-Sz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jun 2023 20:32:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDUWr-0002UK-CP; Sun, 25 Jun 2023 14:32:05 -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 1qDUWp-0002U9-JR for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 14:32:03 -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 1qDUWp-00040c-1p for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 14:32:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDUWo-00009I-Jr for bug-gnu-emacs@gnu.org; Sun, 25 Jun 2023 14:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Jun 2023 18:32:02 +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.1687717879520 (code B ref 63365); Sun, 25 Jun 2023 18:32:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 25 Jun 2023 18:31:19 +0000 Original-Received: from localhost ([127.0.0.1]:43671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDUW6-00008J-Ij for submit@debbugs.gnu.org; Sun, 25 Jun 2023 14:31:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50878) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDUW1-000085-Gw for 63365@debbugs.gnu.org; Sun, 25 Jun 2023 14:31:17 -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 1qDUVv-0003vy-UN; Sun, 25 Jun 2023 14:31:07 -0400 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=55Nvn7DisgCBNJoRSsCyl8PSBsIwhfu/9m++srM0FH4=; b=YBV5xiGrLcRz GgsvlzAyF6Z6LeLmZQeWB8IdrpKRFzDe8pyFMuGCh1u+lAxzbrpOfo/qB/VuH7dbZezBRuKRP/cL0 EgtDzTrskWKMz4k2EQH3xjdheVITiUECzHG/yA0K/olTUD+69bN58WPVJxGF1G/EToHFeY5VPOAtq 9Bk3pEDYnmJzVUTSG0StkdbKrflbQGnQlvymcw2rXcjTgknCxXxaVhViUrOXUsnFcuIkzLcm/J1mE 06lyr0aW1Z84cKeyKnLYNGcspAO3+qX0w2r4JQqEM6j2zqupHyUtl26REdhhtsQujkdGBVIU9xGoe 75sdFk+t9lo8JCv4Ee8pKg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qDUVv-0000JV-84; Sun, 25 Jun 2023 14:31:07 -0400 In-Reply-To: (message from Andrea Corallo on Sun, 25 Jun 2023 14:11:15 -0400) 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:264067 Archived-At: > From: Andrea Corallo > Cc: arash@gnu.org, cyril.arnould@outlook.com, 63365@debbugs.gnu.org, > svraka.andras@gmail.com > Date: Sun, 25 Jun 2023 14:11:15 -0400 > > Eli Zaretskii writes: > > >> Maybe someone should compare the two binaries (with and without > >> -foptimize-sibling-calls) to understand which compilation unit (and > >> which function) differs in details. > > > > How does one compare binaries in a useful way? The Emacs binary is > > AFAIR around 20MB even when stripped of all symbols. > > That's a good question, for elf there are specific tools for that, even > just readelf can output function sizes and that's a good starting point. > > For Windows I've idea (I'm assuming Windows is not elf based). No, Windows doesn't use ELF. Maybe we should start by narrowing the problem? E.g., which Lisp files cause the crashes, and which *.eln files, if any, are involved? The C files more or less directly involved in byte-compilation are, I think, eval.c, data.c, alloc.c, lread.c, bytecode.c. If we think one of these could be involved, it would be nice to find the one(s) that cause the problem, for example, by selectively compiling only those with -fno-optimize-sibling-calls, then removing them one by one from the set of files compiled like that. The investigation if this bug is harder because the problem doesn't happen when running Emacs under GDB, and conversion of backtrace addresses to file names and line numbers for some reason also doesn't work. So we need every smart idea we can come up with.