unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 48141@debbugs.gnu.org
Subject: bug#48141: 28.0.50; Files left over by native compiler
Date: Sat, 01 May 2021 12:54:25 -0400	[thread overview]
Message-ID: <70v982mm2m.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <jwvim42v7vd.fsf@iro.umontreal.ca> (Stefan Monnier's message of "Sat, 01 May 2021 10:36:22 -0400")

Stefan Monnier wrote:

> I have a few files apparently left over from failed native compilations.
> They look like `lisp/foo.elcABCDEF` where `ABCDEF` is random
> (presumably chosen by `make-temp-file`).

This is not directly related to native compilation.
This is so creation of .elc files can be atomic (bug#4196).

> I haven't found a way to reproduce the problem, so I'm not sure exactly
> how they got here but maybe we need to take more precautions to remove
> them

I would guess that the only way this can happen is if Emacs dies during
byte-compilation, which is obviously not a normal situation.

> and maybe we should put them in /tmp?

IIUC, the temp files must be on the same partition as the destination
.elc files, else the move would not be atomic.





  parent reply	other threads:[~2021-05-01 16:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-01 14:36 bug#48141: 28.0.50; Files left over by native compiler Stefan Monnier
2021-05-01 14:44 ` Eli Zaretskii
2021-05-01 16:54 ` Glenn Morris [this message]
2021-05-02  7:05   ` Lars Ingebrigtsen
2021-05-03  8:42   ` Gregory Heytings
2021-05-03 11:49     ` Eli Zaretskii
2021-05-03 12:11       ` Gregory Heytings

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=70v982mm2m.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=48141@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).