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, 09 Jun 2023 00:27:43 +0200 Message-ID: <86r0ql7fog.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> <86wn1h3dpz.fsf@gnu.org> <835y91brfv.fsf@gnu.org> <86fs849xb0.fsf@gnu.org> <83ild08i8j.fsf@gnu.org> <86y1lwmfcw.fsf@gnu.org> <83ild06sb5.fsf@gnu.org> <83a5yc6m2e.fsf@gnu.org> <86lehbi6pu.fsf@gnu.org> <83r0r3jjka.fsf@gnu.org> <86wn0unbjd.fsf@gnu.org> <83fs7ijou6.fsf@gnu.org> <867csujb31.fsf@gnu.org> <835y8ej9f3.fsf@gnu.org> <86zg5psmnj.fsf@gnu.org> <83h6rxhrmd.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="1181"; 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 Fri Jun 09 00:29:17 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 1q7O85-00005s-9y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 00:29:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7O7s-0007ju-VW; Thu, 08 Jun 2023 18:29:04 -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 1q7O7q-0007jQ-Mu for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 18:29: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 1q7O7q-0007oH-EP for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 18:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7O7q-0008By-7B for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 18:29: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: Thu, 08 Jun 2023 22:29: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.168626331131438 (code B ref 63365); Thu, 08 Jun 2023 22:29:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 8 Jun 2023 22:28:31 +0000 Original-Received: from localhost ([127.0.0.1]:57850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7O7J-0008Au-My for submit@debbugs.gnu.org; Thu, 08 Jun 2023 18:28:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7O7G-0008AY-US for 63365@debbugs.gnu.org; Thu, 08 Jun 2023 18:28:28 -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 1q7O7B-0007go-BN; Thu, 08 Jun 2023 18:28:21 -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=1DB5oGVXsBwSKAzZzwe8Zpo/EMaskNHD1dPnN0BmAGs=; b=PBYBWTqEQ7L82cvGJGid EIoft/X4wBLffKdlrOVka6VKrklB1JUW9kgj3+17c84OpFygNwl8I9MO1KXfQlDN0o+1ogWWs7fVj nubou72yRrfPWhNLlH16sHx9IHA2PcviOxVSbV6gbRPUKMelTH+8eAqcURLr0sD/39bdb8kj1Zwr6 X7ARB+3TpaSJ38qTOZTvlwTv1uvDSlcBGxqvYyuOZVCrYjhuaDhgsZidIUwc+/S5lB+MrcvMUwbcr QOqkVeWUkwiMD/TzoCWXGwP2C3vGS708xifP35RzSmNXp1i/me0v+n9+tyFxVd7cGg2GOk35+taoZ yaKl/DHSSsPdBQ==; Original-Received: from pd9fb723d.dip0.t-ipconnect.de ([217.251.114.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 1q7O7A-0000sE-Iv; Thu, 08 Jun 2023 18:28:21 -0400 In-Reply-To: <83h6rxhrmd.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 28 May 2023 09:55:38 +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:263143 Archived-At: Eli Zaretskii writes: > If this is not related to native-compilation, my first suspect is GCC > optimizations. Try building with -Og or -O1, and see if that avoids > the problem. Ok, I tried the different optimization levels and this is the result. Running the standard procedure $ git clean -fdx $ ./autogen.sh $ ./configure --with-native-compilation Gives this in the summary What compiler should emacs be built with? gcc -g3 -O2 -gdwarf-2 which breaks during the make run. Lowering the -O option works for these three scenarios and Emacs builds successfully with GCC 13.1: $ git clean -fdx $ ./autogen.sh $ CFLAGS='-g3 -O0 -gdwarf-2' ./configure --with-native-compilation $ make $ git clean -fdx $ ./autogen.sh $ CFLAGS='-g3 -O1 -gdwarf-2' ./configure --with-native-compilation $ make $ git clean -fdx $ ./autogen.sh $ CFLAGS='-g3 -Og -gdwarf-2' ./configure --with-native-compilation $ make Best, Arash