GNU bug report logs - #52912
29.0.50; Left over files from native compilation

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 31 Dec 2021 05:22:02 UTC

Severity: normal

Merged with 48141

Found in versions 28.0.50, 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andrea Corallo <akrl <at> sdf.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 52912 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: bug#52912: 29.0.50; Left over files from native compilation
Date: Mon, 17 Jan 2022 14:46:14 +0000
Andrea Corallo <akrl <at> sdf.org> writes:

> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
>> Andrea Corallo <akrl <at> sdf.org> 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





This bug report was last modified 3 years and 117 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.