all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Sean Devlin <spd@toadstyle.org>
Cc: acorallo@gnu.org, 74368-done@debbugs.gnu.org
Subject: bug#74368: 31.0.50; Different warnings between native-compile and native-compile-async
Date: Sat, 23 Nov 2024 14:37:59 +0200	[thread overview]
Message-ID: <86zflqktw8.fsf@gnu.org> (raw)
In-Reply-To: <FE7D4AAC-B64B-492E-9488-5BC0ADEDDD0B@toadstyle.org> (message from Sean Devlin on Fri, 22 Nov 2024 11:32:39 -0500)

> Cc: 74368@debbugs.gnu.org
> From: Sean Devlin <spd@toadstyle.org>
> Date: Fri, 22 Nov 2024 11:32:39 -0500
> 
>  On Nov 16, 2024, at 4:26 PM, Andrea Corallo <acorallo@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!

I'm therefore closing this bug.





      reply	other threads:[~2024-11-23 12:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-15 17:04 bug#74368: 31.0.50; Different warnings between native-compile and native-compile-async Sean Devlin
2024-11-16  7:38 ` Eli Zaretskii
2024-11-16 19:38   ` Sean Devlin
2024-11-16 21:26 ` Andrea Corallo
2024-11-22 16:32   ` Sean Devlin
2024-11-23 12:37     ` Eli Zaretskii [this message]

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

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

  git send-email \
    --in-reply-to=86zflqktw8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74368-done@debbugs.gnu.org \
    --cc=acorallo@gnu.org \
    --cc=spd@toadstyle.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.