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 13:41:10 +0200 Message-ID: <86edm2jtih.fsf@gnu.org> References: <86v8ffutg7.fsf@gnu.org> <838rca3frp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25130"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63365@debbugs.gnu.org, Andrea Corallo , 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 13:42:38 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 1qCfBV-0006M1-Mi for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jun 2023 13:42:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCfBF-0004jU-9M; Fri, 23 Jun 2023 07:42:21 -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 1qCfAz-0004it-Lj for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 07:42:09 -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 1qCfAw-0005sT-DK for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 07:42:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCfAw-0003l4-0S for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 07:42:02 -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 11:42: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.168752049814415 (code B ref 63365); Fri, 23 Jun 2023 11:42:01 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 23 Jun 2023 11:41:38 +0000 Original-Received: from localhost ([127.0.0.1]:37794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCfAW-0003kO-Lv for submit@debbugs.gnu.org; Fri, 23 Jun 2023 07:41:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCfAT-0003k9-8A for 63365@debbugs.gnu.org; Fri, 23 Jun 2023 07:41:35 -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 1qCfAN-0005VM-CV; Fri, 23 Jun 2023 07:41:27 -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=nC5qtH24Z7x7Xa0FArFPToZTl2pwkPnTehUtSDxj2Gw=; b=fDKE+O8AwbNB9HWy1vkH ao+ktWLXzDBjW4SqDf6jzI7DlCbWUpEXogrOImH72sVkG/LikVS3lZITxe7OizmijEaqSLeSwSTo5 CG4dmzvp4b2zKTJ/RzDXh/7o2Myoeab/MW7EzsuwB9HgPHwEhtCBhP0ka2b3ySuL7ZI786tFKUMBy WRGwCeP0Up5PgBIRLFmjGtfMb3HTKPtTurmwLuCfC8Ok2wCRgj6qEanP+lthB+nuj3FXH4N1BaVv/ 72BD45WktEjSvVsQuzb7o5IKPazfyDbrr7MCzjq/GwP4qVCKjHUUzj7Tf6k+M2oE3XlTSryGtU+C5 x4AKwO1xLhoMFQ==; 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 1qCfAL-0006Xc-GS; Fri, 23 Jun 2023 07:41:25 -0400 In-Reply-To: <838rca3frp.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 23 Jun 2023 08:32:26 +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:263948 Archived-At: Eli Zaretskii writes: > I hope Andrea will come up with some tests for you guys to provide > more information, so he does eventually understand the cause(s). I > don't think we can in good faith claim this is a GCC bug before we > understand the problem better. Fair enough. > Meanwhile, I'd like to consider a PROBLEMS entry about this, if that's > needed. Do I understand correctly that -fno-optimize-sibling-calls is > needed for successful building of Emacs 29.0.92 using MinGW64 GCC 13.1? I'm not tracking 29 branch closely, but from my brief testing: =E2=80=A2 Emacs builds when running $ ./configure --with-native-compilation && make on the pretest tarball from https://alpha.gnu.org/gnu/emacs/pretest/emacs-29.0.92.tar.xz =E2=80=A2 Emacs doesn't build out of local git repo when running $ git switch emacs-29 $ git clean -fdx $ ./autogen.sh $ ./configure --with-native-compilation && make =E2=80=A2 Emacs builds out of local git repo when running $ git switch emacs-29 $ git clean -fdx $ ./autogen.sh $ CFLAGS=3D'-g3 -O2 -gdwarf-2 -fno-optimize-sibling-calls' \ ./configure --with-native-compilation && make > If so, I think we should have this in PROBLEMS. If others can reproduce my experience, then it probably makes sense. > Also, why are you using -O3? That is not recommended when building > Emacs. I wasn't aware of that. Can you elaborate why -O3 isn't recommended? Or any pointer where I can read about it? > (But I understand that -foptimize-sibling-calls is in -O2, not just in > -O3, and so -fno-optimize-sibling-calls is needed even if using -O2, > right?) Correct, this is also what I read from this page and my experience so far[1]. Best, Arash Footnotes: [1] https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Optimize-Options.html