all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sean Devlin <spd@toadstyle.org>
To: Andrea Corallo <acorallo@gnu.org>
Cc: 74368@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	[thread overview]
Message-ID: <FE7D4AAC-B64B-492E-9488-5BC0ADEDDD0B@toadstyle.org> (raw)
In-Reply-To: <yp1wmh2na3q.fsf@fencepost.gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1031 bytes --]


> 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!

Sean

[-- Attachment #2: Type: text/html, Size: 13946 bytes --]

  reply	other threads:[~2024-11-22 16:32 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 [this message]
2024-11-23 12:37     ` Eli Zaretskii

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=FE7D4AAC-B64B-492E-9488-5BC0ADEDDD0B@toadstyle.org \
    --to=spd@toadstyle.org \
    --cc=74368@debbugs.gnu.org \
    --cc=acorallo@gnu.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.