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: Tue, 27 Jun 2023 16:22:14 -0400 Message-ID: References: <86wn1jtezk.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="23207"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "63365@debbugs.gnu.org" <63365@debbugs.gnu.org>, "eliz@gnu.org" , Arash Esbati , =?UTF-8?Q?Andr=C3=A1s?= Svraka To: Cyril Arnould Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 27 22:23:09 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 1qEFDR-0005qy-Kk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 27 Jun 2023 22:23:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEFDM-0003wH-G0; Tue, 27 Jun 2023 16:23: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 1qEFDK-0003w9-V4 for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 16:23: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 1qEFDK-0005xQ-Mz for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 16:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEFDK-0002bH-I6 for bug-gnu-emacs@gnu.org; Tue, 27 Jun 2023 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Jun 2023 20:23: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.16878973439924 (code B ref 63365); Tue, 27 Jun 2023 20:23:02 +0000 Original-Received: (at 63365) by debbugs.gnu.org; 27 Jun 2023 20:22:23 +0000 Original-Received: from localhost ([127.0.0.1]:49595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEFCh-0002a0-Fv for submit@debbugs.gnu.org; Tue, 27 Jun 2023 16:22:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59262) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEFCe-0002Zn-Ie for 63365@debbugs.gnu.org; Tue, 27 Jun 2023 16:22: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 1qEFCZ-0005kc-07; Tue, 27 Jun 2023 16:22:15 -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=FBC2LLASawIMIEw42rq14ZTul/av3aeK9xKgKL0Oazs=; b=frtLfUDoncMMJvKcfkZD Zzfv5xBsWjQPcGmJgE89Z9xvR5r2wMTyk0VXSKNQNMPTB8yLt4rs2kNcO//I2sTlY3SLWU4l1iX9/ VYqo3/tEYrTiS5Xe+LJ0k4jpLTwCN4Nnf3SToGFitnhASoBWnkd4jWc9CXyTyylIk8/yg9EVvig1U zfYoLGFwGoy9p/M0Mu3PzFMf2DVzdF5nlY7OzTkRXl3cFIqFE5dYMMLDyFqtObG6k3ToaRNCHQPC6 FSmiLlAX1zRxg+QJBEb5kmprkzjrfWRdBKLqsOGu13/knuePjNV4PYceEpomSQBanAGqZf1MhFs/X tRb9SmNGlqB9GQ==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qEFCY-00067G-Jj; Tue, 27 Jun 2023 16:22:14 -0400 In-Reply-To: (Cyril Arnould's message of "Tue, 27 Jun 2023 19:28:12 +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:264180 Archived-At: Cyril Arnould writes: >> 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. > > > > I see, thanks. Is there a reason you left out the -g3 and -gdwarf-2 > > switches? To be sure, I've tried it with and without those, but I got > > similar results so far: all of the combinations I've tried are > > failing. I'm trying to widen the search to see if I can figure out which > > file is the culprit. > > > >> Maybe we should start by narrowing the problem? E.g., which Lisp > >> files cause the crashes, and which *.eln files, if any, are involved? > > > > From the tests I've run it seems to me that there is absolutely no > > consistency with which lisp files cause the crashes. Each of the builds > > resulted in different lisp files failing. Now, when I run the make > > command again after a failed attempt, the *same* lisp files will keep > > failing to build over and over. However, I also noticed that if I run > > the exact same build commands again from a clean checkout, different > > lisp files will fail the second time around. Is it normal that there are > > run-to-run variations with GCC? I guess is due to the parallel nature of the build (and possibly its initial state). Using make -j1 (or even better make bootstrap -j1) should make it reproducible. Andrea