From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#63365: 30.0.50; GCC 13.1 breaks building Emacs with native-compilation Date: Mon, 26 Jun 2023 03:03:32 -0400 Message-ID: References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> <83ilbby2fu.fsf@gnu.org> <83fs6fxuki.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="13432"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, arash@gnu.org, svraka.andras@gmail.com, cyril.arnould@outlook.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 26 09:04:20 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 1qDgGp-0003ET-Oz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 26 Jun 2023 09:04:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDgGb-00056O-8C; Mon, 26 Jun 2023 03:04: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 1qDgGY-00052i-HV for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 03:04: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 1qDgGY-0008Iu-3w for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 03:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDgGX-0006eF-UR for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 03:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Jun 2023 07:04: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.168776303125526 (code B ref 63365); Mon, 26 Jun 2023 07:04:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 26 Jun 2023 07:03:51 +0000 Original-Received: from localhost ([127.0.0.1]:44216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDgGM-0006de-Ma for submit@debbugs.gnu.org; Mon, 26 Jun 2023 03:03:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDgGK-0006dJ-JL for 63365@debbugs.gnu.org; Mon, 26 Jun 2023 03:03:49 -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 1qDgGE-0008Bt-7Q; Mon, 26 Jun 2023 03:03:42 -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=EtTJGpcXB6RkoyYsx5IOmluR1oBDsfyUuH494c3kCnw=; b=c6vcFPOU2qZhDGypYwO6 6SMN3wYxSc/jlmowksrC4zengkkfguhbWABS6vZQegSV+/nZeK/kS9VodwqWnUel1qPnvyYBH4oYb m/armFUlxjNC03GzY9YZ+swXEje4v6BKMzROxmg3iYFPzvoAZjVgBPkox40JcsVLGp6kGIOghqM9E 5NNQZ+Yh3OBxbKPExDW4+VxZKJVY/CwONrck42DQNeroyHYQcPpL7Muxo49vJ1ZVq/0A3Lfg4X9iq UMSrPS5T7cLhVF0bqRn/4Rs/FZ7rlhIpvle4pgd1SxS8JWggxiu9CvNeN5wYPLycFcTL3MNJ5Z7Qj PR7gyst2DRErtQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qDgG4-0002kS-D2; Mon, 26 Jun 2023 03:03:35 -0400 In-Reply-To: <83fs6fxuki.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 25 Jun 2023 21:31:25 +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:264080 Archived-At: Eli Zaretskii writes: >> 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. That would be a good starting point already, I'd suggest to add comp.c to the investigated set as well. Thanks Andrea