From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#68083: 30.0.50; Intermittent build failure with native compilation Date: Fri, 29 Dec 2023 16:07:38 -0500 Message-ID: References: <83le9e743s.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000015a581060dac6cd4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31502"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Jens Schmidt , 68083@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 29 22:08: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 1rJK5d-00083W-O5 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Dec 2023 22:08:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rJK5M-0003tL-H7; Fri, 29 Dec 2023 16:08:04 -0500 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 1rJK5L-0003sz-8c for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 16:08:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rJK5L-0008M3-0L for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 16:08:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rJK5K-0003bb-Hu for bug-gnu-emacs@gnu.org; Fri, 29 Dec 2023 16:08:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Dec 2023 21:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68083 X-GNU-PR-Package: emacs Original-Received: via spool by 68083-submit@debbugs.gnu.org id=B68083.170388406713839 (code B ref 68083); Fri, 29 Dec 2023 21:08:02 +0000 Original-Received: (at 68083) by debbugs.gnu.org; 29 Dec 2023 21:07:47 +0000 Original-Received: from localhost ([127.0.0.1]:42370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJK55-0003b8-E6 for submit@debbugs.gnu.org; Fri, 29 Dec 2023 16:07:47 -0500 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:58786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rJK53-0003av-DW for 68083@debbugs.gnu.org; Fri, 29 Dec 2023 16:07:46 -0500 Original-Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2cce6bb9b48so18253341fa.1 for <68083@debbugs.gnu.org>; Fri, 29 Dec 2023 13:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703884059; x=1704488859; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:references:in-reply-to:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0kpV9E6+LV22H0so31igfrZFXTNJVWJiUl1UeEp7suU=; b=g2SLunVIRfl5n5JWNomULGxixTnEpWrBJgFrdJvA45YlEBQLUWM3nMnyWIfBU67OQv LkIgBShgQWwoOFdtaFjlbLC3krZBQhm63x9TkhMRbK7bdTbdDuDddGM0HBhdWDKRXrdL iv3tlmbs2ZzVRzIkZWmLWtS5vqtnvC6BKbcM4O9l3BfYLrQLuvcRWGNb35ilio7nuzg4 QmJ2KpfPq4KSXT+I1HVo5Qvtxfbld81U0HarZ5kUvghhvIgYbGUxZJSf/6qENXjwL1IZ swlNyfd9MQVx1KOZtu+UdKUyK84f6cMrnCVzkdnGK4JGx9NbtJMp/izk6ySY/3HdNHyj LVuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703884059; x=1704488859; h=cc:to:subject:message-id:date:references:in-reply-to:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0kpV9E6+LV22H0so31igfrZFXTNJVWJiUl1UeEp7suU=; b=Z1mS/PcVmywVed+Nv2KMGvcCNl4u0gSCgPVLCisHhZOyOoB4csRypadTwT8XME37Nb ON5UbRMtzcsHy9CZcuVQyqYCPytfqK6gu0xxN9OAYv12Hio/nEaVbAhuut9nJfCduVJj Q9ZTUxs1tGPP9QNtEaSKuez8bnH7T6YRzwOiY8k3+GVW+pk4TtCCaX3XCMLx+xBO4/dL MhhE1TjuruinK5d4GPspUvaDXTO/+wUp4BYdNuNyGjMRlZ6BKEqPLZntNfGdCVl9hK1L BZ5STIMUPK7OEIa56qh/Slb1THSFV5BrKMPPA9Sm+diJnVSSS65gD/pcQy67AK1Sas+2 t5oQ== X-Gm-Message-State: AOJu0Yx4ayTtuSUsSKFxND2ui+rA0H1kh7bqdZESJG6A49/Fl2QLzx1+ KswppV+Csoivqch+GjrsmNspqUxpan4jDSkJxl4= X-Google-Smtp-Source: AGHT+IF1/2APHCcPm4cT7mrbhR4m7Xb+V4N2zi8+9f7Qcba322z9LXcB5gLcOzFogOx1QB3KsFsUclMBPKlSRXmCCE4= X-Received: by 2002:a2e:980d:0:b0:2cc:77fd:6f8 with SMTP id a13-20020a2e980d000000b002cc77fd06f8mr2927698ljj.64.1703884059156; Fri, 29 Dec 2023 13:07:39 -0800 (PST) Original-Received: from 649336022844 named unknown by gmailapi.google.com with HTTPREST; Fri, 29 Dec 2023 16:07:38 -0500 X-Superhuman-ID: lqr4k9lw.ea6fede2-c71c-42d6-97f0-d3836b53dba6 In-Reply-To: X-Mailer: Superhuman Desktop (2023-12-22T20:06:10Z) X-Superhuman-Draft-ID: draft00d678f4ec37659a 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:277042 Archived-At: --00000000000015a581060dac6cd4 Content-Type: text/plain; charset="UTF-8" Just to confirm, adding macroexpand to native-comp-never-optimize-functions allows me to build successfully. It also looks like comp-delete-or-replace-file can be updated to protect rename-file against file-already-exists like it does for Windows. That would also likely solve the problem if you want to be able to optimize macroexpand. Aaron On Fri, Dec 29, 2023 at 3:26 PM, Aaron Jensen wrote: > On Fri, Dec 29, 2023 at 3:17 PM, Andrea Corallo wrote: > > Aaron Jensen writes: > > Yes, that's what I've found. I can also confirm that compiling with 1 > thread works around it. It's only a problem w/ gmake -jN where N is > 1 (I > run w/ 8 or 12 or so typically). > > Aaron > > Intresting, adding Jens, hopefully he has some good idea. > > Maybe you could re-add 'macroexpand' and 'rename-buffer' to > 'native-comp-never-optimize-functions' and discover which one of the two > is triggering the bug? > > > > I can't try it just now, but my trace includes: `File already exists: > /private/var/tmp/emacs-plusA30-20231227-10652-1cz0rs/.brew_home/.emacs.d/eln-cache/30.0.50-69afc345/subr--trampoline-6d6163726f657870616e64_macroexpand_0.eln` > so I'm guessing it's macroexpand. > > Aaron > --00000000000015a581060dac6cd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Just to confirm, ad= ding macroexpand=C2=A0to native-comp-never-optimize-functions allows me to = build successfully.

It also looks like comp-delete-or-replace-file can = be updated to protect rename-file against file-already-exists like it does = for Windows. That would also likely solve the problem if you=C2=A0want to b= e able to optimize macroexpand.

<= div class=3D"">


Aaron


O= n Fri, Dec 29, 2023 at 3:26 PM, Aaron Jensen <aaronjensen@gmail.com> wrote:

Aaron Jensen <aaronjensen@gmail.com> writes:

Yes, that's what I've found. I can also confirm that compiling with= 1 thread works around it. It's only a problem w/ gmake -jN where N is > 1 (I run w/ 8 or 12 or so typically).

Aaron

Intresting, adding Jens, hopefully he has some good idea.

Maybe you could re-add 'macroexpand' and 'rename-buffer' to
'native-comp-never-optimize-functions' and discover which one of th= e two is triggering the bug?

=


I can't try it just now, but my trace include= s:=C2=A0`File already exists: /private/va= r/tmp/emacs-plusA30-20231227-10652-1cz0rs/.brew_home/.emacs.d/eln-cache/30.= 0.50-69afc345/subr--trampoline-6d6163726f657870616e64_macroexpand_0.eln` so I'm guessing= it's macroexpand.=C2=A0

Aaron

--00000000000015a581060dac6cd4--