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: Tue, 27 Jun 2023 05:30:14 +0300 Message-ID: <83leg5wsax.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29515"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63365@debbugs.gnu.org, arash@gnu.org, acorallo@gnu.org, svraka.andras@gmail.com To: Cyril Arnould Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 27 04:30:21 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 1qDyTF-0007bH-IO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Jun 2023 04:30:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDySy-0006xv-M7; Mon, 26 Jun 2023 22:30: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 1qDySx-0006xW-Ct for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 22:30: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 1qDySx-0005K1-2A for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 22:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDySw-0007Oo-J5 for bug-gnu-emacs@gnu.org; Mon, 26 Jun 2023 22:30: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: Tue, 27 Jun 2023 02:30: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.168783300128412 (code B ref 63365); Tue, 27 Jun 2023 02:30:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 27 Jun 2023 02:30:01 +0000 Original-Received: from localhost ([127.0.0.1]:47331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDySu-0007OC-I2 for submit@debbugs.gnu.org; Mon, 26 Jun 2023 22:30:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDySt-0007Nz-Dp for 63365@debbugs.gnu.org; Mon, 26 Jun 2023 22:29:59 -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 1qDySn-0005DR-Qv; Mon, 26 Jun 2023 22:29:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=IZptGXQRCg/t+0APKRGnr0HGrRz8F2nlxPcHS/pNrn0=; b=fo8KwH99pqqlms/xHB7H +28e694AuDr98k/v7iWUnPVC0TU9Czn3/B4ygeA0IFQ0mIb929hAz5QGYuXcnWrDeewjlTz2za91Y BbVYL+YGKcmO3qYIisSpEKcxkg8V5sQYFawDDWtj5z4xuus4K/YpGa0DNO6tjFNOo9xHTgvnVZdll dxoR/BrkmhxZoi+yNe6kGbc/gzX3BvlhIoESfSKt1fCv6a9W5EhInDznTZyvbFWtL6RPsS//em2ka DHx716pKI5fkdXg1ag8i15Dufd6rxAuLWNmeIJfDoFaFl4K1f4BuFKyH0VhmadZJ+qQOY+1sHrzOf lg0M8voQz5QcvQ==; 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 1qDySm-0005ly-4P; Mon, 26 Jun 2023 22:29:52 -0400 In-Reply-To: (message from Cyril Arnould on Mon, 26 Jun 2023 22:04:19 +0000) 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:264120 Archived-At: > From: Cyril Arnould > CC: "eliz@gnu.org" , András Svraka > , Arash Esbati , > "63365@debbugs.gnu.org" <63365@debbugs.gnu.org> > Date: Mon, 26 Jun 2023 22:04:19 +0000 > > >> 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. > > I can take a look into this, but I'm unsure as to how exactly; I'm still > very new to the GNU Autotools. AFAIU, this would be done using > per-target Automake variables but there's no Makefile.am... No, that would be a waste of your time. It is much easier to do this by hand. To compile, say, lread.c, do this: $ cd src $ make lread.o -W lread.c CFLAGS='-O2 -fno-optimize-sibling-calls' $ make The last "make command will produce an emacs.exe binary where lread.c is compiled without the problematic optimization.