GNU bug report logs - #74368
31.0.50; Different warnings between native-compile and native-compile-async

Previous Next

Package: emacs;

Reported by: Sean Devlin <spd <at> toadstyle.org>

Date: Fri, 15 Nov 2024 17:06:01 UTC

Severity: normal

Tags: notabug

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sean Devlin <spd <at> toadstyle.org>
To: Andrea Corallo <acorallo <at> gnu.org>
Cc: 74368 <at> debbugs.gnu.org
Subject: bug#74368: 31.0.50; Different warnings between native-compile and native-compile-async
Date: Fri, 22 Nov 2024 11:32:39 -0500
[Message part 1 (text/plain, inline)]
> On Nov 16, 2024, at 4:26 PM, Andrea Corallo <acorallo <at> gnu.org> wrote:
>> 
> 
> Hi Devlin,
> 
> yes this difference is expected, 'native-compile' runs the compilation
> in the loaded Emacs so that all the definitions of loaded packages are
> known to the compiler.  'native-compile-async' runs in a new fresh Emacs
> so all requires need to be there in the compilation unit in order to let
> the compiler be able to load the definitions.
> 
> We have also some doc in (info "(elisp) Native-Compilation Variables")
> which goes like this:
> 
>    A common cause for asynchronous native-compilation to produce
>     warnings is compiling a file that is missing some ‘require’ of a
>     necessary feature.  The feature may be loaded into the main emacs,
>     but because native compilation always starts from a subprocess with
>     a pristine environment, that may not be true for the subprocess.
> 
> Regards
> 
>  Andrea

I see. Thanks for the explanation and the documentation reference!

Sean
[Message part 2 (text/html, inline)]

This bug report was last modified 235 days ago.

Previous Next


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