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: Sat, 16 Nov 2024 14:38:08 -0500 Message-ID: <93ACD03E-194E-4992-A23D-97A364F0A6F6@toadstyle.org> References: <867c93iq68.fsf@gnu.org> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4779"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74368@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 16 20:40:37 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 1tCOer-00015U-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Nov 2024 20:40:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCOeK-0003sB-85; Sat, 16 Nov 2024 14:40:04 -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 1tCOeI-0003s0-Qb for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 14:40: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 1tCOeI-00043Z-Gb for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 14:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:References:Date:Mime-Version:From:To:Subject; bh=Jwnw6KLqOrsDtTKVVZBXnuhwPdQK5Smohz6Kzd0m0h8=; b=jS2fzTGp4f05N4GrYWoSbJPgPtO8ADv0qwtwDCrA0usZ4ipicsHfxvcOIF3YBJDFokfxE2Cgrsmx/kUo4cZVg7rRGhpoenoTvhRHgpCbRbNoe0Y0cqtmJ4rhVtEPzHupDPdrztdkj+kXIwZmS1LaSsIZBAi4l3KSgpfU5Ccig2DE4z4WsJhrtWxljN6bIZW5SAkHlPQQ7FHWUtEP22gL1CH4gyj5K7IWUP0PDjagi21g4uZZnwljc7BA3t+4CazQTuvXPTlmAO+NQgn+7zWvbeOCQ+i0GFJPRwteie6pKfbsGkLOB07pPmWNMGX+dA0aq8H03byS2EunartrKPt99g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCOeI-0003PC-5c for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 14:40: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: Sat, 16 Nov 2024 19:40:02 +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.173178597013045 (code B ref 74368); Sat, 16 Nov 2024 19:40:02 +0000 Original-Received: (at 74368) by debbugs.gnu.org; 16 Nov 2024 19:39:30 +0000 Original-Received: from localhost ([127.0.0.1]:54865 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCOdl-0003OI-Ij for submit@debbugs.gnu.org; Sat, 16 Nov 2024 14:39:29 -0500 Original-Received: from mail-qt1-f173.google.com ([209.85.160.173]:61663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCOdh-0003O4-LL for 74368@debbugs.gnu.org; Sat, 16 Nov 2024 14:39:28 -0500 Original-Received: by mail-qt1-f173.google.com with SMTP id d75a77b69052e-460b04e4b1cso20934211cf.2 for <74368@debbugs.gnu.org>; Sat, 16 Nov 2024 11:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1731785900; x=1732390700; darn=debbugs.gnu.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=Jwnw6KLqOrsDtTKVVZBXnuhwPdQK5Smohz6Kzd0m0h8=; b=tt0rMzX7mxGcWZBE4UcsMN/kR7bh+NUfCEpvQcNoWEqh4QQNst6LuE/AStRltBH9rf sF4iQ2uJOlcPmdfJh93MUybo1qXXGmR90MzO6XjRz8wDKA+a9vjcBK3xlAYVpd/Xj4ru MGkGKpw7VIdwpFbeHjA0hb0I9t7OO0vamwAnTko2ufEWsYKvezDhr4hp3cYDOjwHNjm9 j8loAbSv9UBcVyXEHP34gu1mFPc8E8D2hSlnoSNIN9ETJhWnyIm/nxT8Gqj3ziPna2xC m40VHm1dnsZDG3eP9vIUCVxxqxwBN3aZc+MHx5EYVqozNmjvl7oivcJ8rauAn8mTwcg2 et2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731785900; x=1732390700; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Jwnw6KLqOrsDtTKVVZBXnuhwPdQK5Smohz6Kzd0m0h8=; b=Yk0MVjl27S+fFUfAKPGkFgkdq/KhRBMwyJ6jOGzjnoEknrV+3PPHpzpBSTcb3CvpkR 0h9OXo6hIU3fzHGKdf5AYppp9Ogcq5Ddj22hEZBbuDIAuGsDFvwZ6WS8mUgEDak7l3zv j1Jq0d6/Yc3poEXJCGHi6Qr0BOoxHZ3uo5qAxDenCNbxHkQ/AqjKtvSrsnJRsFRbdX+A 84orSEStQDzsdTnU8fbZ4nmCdbB7eHiiW3YX/J5boCjHLmepXVDojt29py8rDbPJlUE/ t4OduOBtH/nhyNpOs5F7WlDToa2Z4CS+oZDDKtLmXyUvPfZ2SaULBR0udmylCGlkZOlT 4FBA== X-Gm-Message-State: AOJu0YzoqQo4tWaAIuqh8TlBe0ZtB4hY/st3R3zQpcsiuo8VHX+Zybe9 eW231zqRoU8Ls5BCgE/yJ7mDXJNiPulwgP16DiPl+Su3A84VVYuYKqw/YfJ7jyNDzcnGi/qSPRd E X-Google-Smtp-Source: AGHT+IFYeCLiuyz6q00ed7QY5ovK8yB/XqBIFho4h3Axih4XYXuUNx0wmfwuk3pfFr9xrsvspkhM2Q== X-Received: by 2002:a05:622a:551:b0:461:313e:8868 with SMTP id d75a77b69052e-46363ec8c9cmr109424471cf.50.1731785899761; Sat, 16 Nov 2024 11:38:19 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4635a783c29sm35327731cf.0.2024.11.16.11.38.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 16 Nov 2024 11:38:19 -0800 (PST) In-Reply-To: <867c93iq68.fsf@gnu.org> X-Mailer: iPhone Mail (22C5131e) 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:295488 Archived-At: > On Nov 16, 2024, at 2:38=E2=80=AFAM, Eli Zaretskii wrote: >=20 > =EF=BB=BFtags 74368 notabug > thanks >=20 >> From: Sean Devlin >> Date: Fri, 15 Nov 2024 12:04:42 -0500 >>=20 >> I'm not sure if this is a bug, but I noticed a difference in behavior >> when compiling with native-compile and native-compile-async. >>=20 >> Recipe: >>=20 >> 1. mkdir /tmp/emacs-test >> 2. printf ";; -*- lexical-binding: t; -*-\n\n(vertico-mode)\n" > /tmp/ema= cs-test/test.el >> 2. HOME=3D/tmp/emacs-test emacs >> 3. M-x package-install RET vertico RET >> 4. M-: (native-compile "/tmp/emacs-test/test.el") RET >> 5. M-! touch /tmp/emacs-test/test.el RET >> 6. M-: (native-compile-async "/tmp/emacs-test/test.el") RET >>=20 >> There is no warning when compiling synchronously, but there is a warning >> during asynchronous compilation: >>=20 >> test.el:3:2: Warning: the function =E2=80=98vertico-mode=E2=80=99 is not k= nown to be >> defined. >>=20 >> I guess maybe the asynchronous compiler has not processed the autoloads >> from installed packages, whereas the synchronous compiler has. >>=20 >> Is this difference in behavior expected? Or is one of the compilers >> behaving incorrectly? >=20 > This is indeed expected, and not a bug. The asynchronous JIT > native-compilation runs in a separate batch Emacs session, which > doesn't load any of your init files. To avoid these warnings, you > should make sure all of the *.el files that are natively compiled have > all the requisite 'require's and/or 'eval-when-compile' to load all > the dependency libraries when compiling the file as a stand-alone Lisp > package. I see, that makes sense. Thanks for the explanation.=