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: Fri, 23 Jun 2023 14:50:51 +0200 Message-ID: <86a5wqjqac.fsf@gnu.org> References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> <86edm2jtih.fsf@gnu.org> <83jzvu1ijw.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="3630"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, acorallo@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 Fri Jun 23 14:52:27 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 1qCgH5-0000jK-8M for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jun 2023 14:52:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCgGn-0005h1-JV; Fri, 23 Jun 2023 08:52:09 -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 1qCgGg-0005Uq-R6 for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 08:52: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 1qCgGg-00025P-0a for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 08:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCgGf-0005iG-QR for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 08:52: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: Fri, 23 Jun 2023 12:52: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.168752468321911 (code B ref 63365); Fri, 23 Jun 2023 12:52:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 23 Jun 2023 12:51:23 +0000 Original-Received: from localhost ([127.0.0.1]:37845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCgG3-0005hL-9a for submit@debbugs.gnu.org; Fri, 23 Jun 2023 08:51:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCgFz-0005h0-13 for 63365@debbugs.gnu.org; Fri, 23 Jun 2023 08:51:22 -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 1qCgFt-00020L-Fm; Fri, 23 Jun 2023 08:51:13 -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=UIxgApcMzxqA06ehjKSmYISfnGKcf1+53nbHGCymSko=; b=PwyvGfs0crXGZhoyn1oo DruetuHrAljZrLo28io5UweDVTTll5h2hR8d/1KUkxPDtBtATaWu0JmCNpWws9w4uQI2oMa56zUvz OxDu33Xn9f55o6McrB2zURWE4dpeZy0wyPtPSfsp/Zipn430+G2h5lQBe0ps6muwULUNQnJAlQmMJ fhMr6P9Kv5GGad9fFgAyetmcxvh5jQt5najBc0sFRTzjv0vopmo9Dd9f+b3ZlOSz9N2LeTVeS618+ wpRWVmn3hFB8dzhjBX0wqFgeBWjE0JgVe/hlHxVOU+nz3WBmz8XpSmdSSiu6QAaaNASdgg0nfI0hj OZKjXEIJDgmP3A==; Original-Received: from pd9fb7546.dip0.t-ipconnect.de ([217.251.117.70] helo=MUTANT) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCgFk-0007hI-9D; Fri, 23 Jun 2023 08:51:13 -0400 In-Reply-To: <83jzvu1ijw.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Jun 2023 15:15:15 +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:263954 Archived-At: Eli Zaretskii writes: > This might mean that the problem happens when byte-compiling *.el > files -- in the tarball all the *.elc files are already present. What > happens if you remove the *.elc files from the release tarball, and > then try building it? This is indeed the case: Removing the *.elc after unpacking the tarball and running ./configure --with-native-compilation && make doesn't build -- I will try ./configure --without-native-compilation later. > In a nutshell, it bloats the code (due to excessive inlining), with no > real effect on speed. The inner loops in Emacs are very large, and > thus the techniques used by -O3 to speed up code (loop unrolling etc.) > don't really work. Moreover, they could make things worse because the > larger loops might no longer fit into the L1 cache of the CPU. > > The -O3 is well suited to speed up relatively simple algorithms with > tight loops. Emacs has very few of those, in the places that matter > for observable performance. Thanks! I will go with -O2 in future. Best, Arash