From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs 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-ID: References: <39041F0A-3CD1-4665-9FE0-851334B3B37F@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.2.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_0AF3B231-03E3-4A2C-8295-DAB9EEC71E71" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35839"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74368@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 17:34:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tEWbo-0009CZ-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 17:34:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEWbb-0000AK-OB; Fri, 22 Nov 2024 11:34:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tEWba-0000AA-Gy for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:34:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEWba-0005VJ-7c for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:34:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:Date:Mime-Version:From:To:Subject; bh=3Q73evEJ2k2LHjqHW2/bXZJATf7EnI+erbyzBp0J/UM=; b=T7a9WUgkP9lmWZgY0AMPIfPhW8F2dvaCbEZ6FXXUT2Qky2b/ElWefIuw5Q6S2Qjz+R8hfnRWMC9083PXnD4CEwcsNuGjkYaNdXEg1LC/I4KH4sGPTfCbTREJAXLv8z9AQE0YVx6nzxafM8XwKFHEzYQ7iBfga+iQ5dH67OjJTMm6qfQMiQoyZYgiWHQGa3x5SbJWlDJC33JHMe8pML6guHX3n5KEzOWjJLSJXiEPTde9SNWF8sWs2MZ1B9bGP6nwmCEii/t2VN1JX+sKemZ0Yec4v2myADExBQiBMJJA2FwegMyaUgqsTKNSKB58SFdDBIdkoCgbFY9Qav8T2QFhIw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEWba-0002hW-0z for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 11:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74368 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 74368-submit@debbugs.gnu.org id=B74368.173229323310359 (code B ref 74368); Fri, 22 Nov 2024 16:34:01 +0000 Original-Received: (at 74368) by debbugs.gnu.org; 22 Nov 2024 16:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:55285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEWbR-0002h1-0g for submit@debbugs.gnu.org; Fri, 22 Nov 2024 11:33:53 -0500 Original-Received: from mail-qv1-f52.google.com ([209.85.219.52]:55581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEWbO-0002gt-KK for 74368@debbugs.gnu.org; Fri, 22 Nov 2024 11:33:51 -0500 Original-Received: by mail-qv1-f52.google.com with SMTP id 6a1803df08f44-6d413def36cso15358356d6.3 for <74368@debbugs.gnu.org>; Fri, 22 Nov 2024 08:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1732293170; x=1732897970; darn=debbugs.gnu.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=3Q73evEJ2k2LHjqHW2/bXZJATf7EnI+erbyzBp0J/UM=; b=jut0sIxbFfz0GrttZezmPJdec+bZFS5oaym9MQrsuiBHbSYrYi2B35IsoBoU5k37xQ hvq6YkHcOgdlU1qaSmBbMpQ564vO/mLq1EpFgAPF2eY4zPLZzruRFiLOnJjvhi+Idbi7 KmpUpri824NBGY2zAl/LOUVux5HnAiaZsBzere2ruT6UZeZMs6yGfPbxHAjGZPW7x4co xSh5YJ8SK22SxrZ1DiNzkECNt0uUogfPLPQb7lOLLdblwElcdyILVFh8CjfxzYUemzX/ 3QhmGJT2gQdB0n7tf/FRUdUGMisW8m967qqiXJXKAtr76F3h7RTqhzQK0D2qQs7pL/eR EK3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732293170; x=1732897970; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3Q73evEJ2k2LHjqHW2/bXZJATf7EnI+erbyzBp0J/UM=; b=JCaQK9XzhGk0JrM3pi13fkeHvT3ktHq7Y1UPWm0GJwnTkosKaYUE53hwkER25B+ar8 nawxYC5FOg5/Zxcff75W3tPGzoxvWkdYVtNtaQ94p7eO9Vu0wRSY+5VHuQCdzjHqiAXA cQ5jwIK8n9oSiYHFoqWzaCFZ2LePA9N4W2w2jOXD5j2Jsl4KSC7VApXuaiqhHIhXspKK VXr26pNkfQbnvDTFFzJwAabmnnENTlsFXAG9y5vbxrCqXL1BHaizdDHO9F9Ssry/94Db WtFZSsnDmS+/cumSv2/xt1p3nZ584rMq+e6+JsUv4atXYExGsD1TFbaSq9dcUVVYIZ/s oKOw== X-Gm-Message-State: AOJu0YyS0kkS7zMXUa1UGQzOHMNHSLkPk//UOb9dBdNlR4TmQ4GmaylQ k97jBZudW0JUa5VqMtRWFD9KHuguc1iGzcA0q9wpCb+5VQTv8gMbA4xuKCkspIVum/hPkyjiI8p hBek= X-Gm-Gg: ASbGnctLO9vU7ahl9R5s6xaKcuTJeHCqQ+QP7ZaxOjFOzWDoUvp+KcP8vsxQCh2Sqqj bNyjUSxoMaxSs6r1AJtqunSJL/ihXNfLz0SXPNZrLYWJnLQ8vvWmDQGN/OPeiEXu3gZBay8fpl/ RlVNano1HM1Vwmp2FaG5ZisEenzJbM9bVBSCZls4EM1LjgVx5hCKbVMTkdH66ZVY4EKVWG68e1T Xczs80UObf552odrezIVNCjI3CRkE+434E5p4i29HHKL2j6vkRQvV3WPsRvNVU73E+m X-Google-Smtp-Source: AGHT+IERCyfU++ihR7ZqiWJ5s4s4ew4axIg4EQebdngyAg8RQpRD2SH57uOdZf1iRo/tiP1fwHgA8Q== X-Received: by 2002:a05:6214:19c6:b0:6d4:2044:e941 with SMTP id 6a1803df08f44-6d450ed3ad4mr59974206d6.18.1732293169973; Fri, 22 Nov 2024 08:32:49 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d451b66279sm11527616d6.122.2024.11.22.08.32.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Nov 2024 08:32:49 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3826.300.87.2.1) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295799 Archived-At: --Apple-Mail=_0AF3B231-03E3-4A2C-8295-DAB9EEC71E71 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 16, 2024, at 4:26=E2=80=AFPM, Andrea Corallo = wrote: >>=20 >=20 > Hi Devlin, >=20 > 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. >=20 > We have also some doc in (info "(elisp) Native-Compilation Variables") > which goes like this: >=20 > A common cause for asynchronous native-compilation to produce > warnings is compiling a file that is missing some =E2=80=98require=E2= =80=99 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. >=20 > Regards >=20 > Andrea I see. Thanks for the explanation and the documentation reference! Sean= --Apple-Mail=_0AF3B231-03E3-4A2C-8295-DAB9EEC71E71 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On= Nov 16, 2024, at 4:26=E2=80=AFPM, 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 =E2=80=98require=E2=80=99 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
= --Apple-Mail=_0AF3B231-03E3-4A2C-8295-DAB9EEC71E71--