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#52912: 29.0.50; Left over files from native compilation Date: Mon, 17 Jan 2022 14:46:14 +0000 Message-ID: References: <87pmotxrgs.fsf@gnus.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="21528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 52912@debbugs.gnu.org, monnier@iro.umontreal.ca To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 17 16:12:28 2022 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 1n9TgJ-0005Rv-KA for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 16:12:27 +0100 Original-Received: from localhost ([::1]:36852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9TgI-0005KY-JI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 10:12:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9THi-0004T7-Kc for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 09:47:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9THi-0008Ij-5A for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 09:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9THi-0007R0-4b for bug-gnu-emacs@gnu.org; Mon, 17 Jan 2022 09:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Jan 2022 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52912 X-GNU-PR-Package: emacs Original-Received: via spool by 52912-submit@debbugs.gnu.org id=B52912.164243077928491 (code B ref 52912); Mon, 17 Jan 2022 14:47:02 +0000 Original-Received: (at 52912) by debbugs.gnu.org; 17 Jan 2022 14:46:19 +0000 Original-Received: from localhost ([127.0.0.1]:45596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9TH1-0007PR-34 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 09:46:19 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:61388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9TGy-0007PI-DR for 52912@debbugs.gnu.org; Mon, 17 Jan 2022 09:46:17 -0500 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 20HEkFv7009849 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 17 Jan 2022 14:46:15 GMT In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jan 2022 11:07:48 +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" Xref: news.gmane.io gmane.emacs.bugs:224443 Archived-At: Andrea Corallo writes: > Lars Ingebrigtsen writes: > >> Andrea Corallo writes: >> >>> I guess Emacs was brutally killed while building, otherwise we should >>> clean these. Not sure how we can do better here, it works exactly as >>> the byecompiler is working (but is just slower in compiling). >> >> I think I've asked this before -- do we have to write the temporary .elc >> files out to disk at all before doing the .eln compilation? Can't that >> work directly from an in-buffer .elc? > > I think the same question applies the bytecompiler only: > > Do we have to write the temporary .elc files out to disk at all before > producing and renaming the final .elc? > > In general the last action is good to be a file rename as this should be > atomic. But that said yes, _when_ we write the temporary file is up to > us. Again this is not strictly a native compiler issue, just with the > native compiler is more likely to be encountered. > > Best Regards > > Andrea Re-reading the whole thread I think I see now what is been suggested. Yes I think we could postpone not only the renaming of the temporary .elc but also when this is written down. I'll try to code up something this week. Thanks Andrea