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, 15 Nov 2024 12:04:42 -0500 Message-ID: <39041F0A-3CD1-4665-9FE0-851334B3B37F@toadstyle.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.86\)) 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="22901"; mail-complaints-to="usenet@ciao.gmane.io" To: 74368@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 15 18:06:29 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 1tBzm6-0005io-OG for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Nov 2024 18:06:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBzlr-0006bK-Ph; Fri, 15 Nov 2024 12:06:11 -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 1tBzln-0006bA-VB for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 12:06:08 -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 1tBzli-0005zr-CD for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 12:06:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:Mime-Version:From:To:Subject; bh=ZkiSLJfP4rR4r1D8pFZYd2+HMBDaokGwlMpgtBAgIFM=; b=kxCRRHLuwIipNJufi97zYn2Nk/acSQATuy79IvTVXvND8lpi/LjuwclYdNAjZqWNra3W0H971EJc92PdM7NYLJeYDyM8r2ecU/DEOE7LoOpbROKXHQDu7BrJyuMibWSgYTDQQVQ6Ms4NnMjrjeqHuknhHxCWPA1FPejzvZE/Hwv+KQlp+uU/HnO9sO8urLosPc6Yp7zbN8yhKpMxCnbeo023op6ShwOoN+BKG6bb2iQROua6QpuguZJKOBuZEKldIWZOHTC2696PpYGFOHBRO9+SDm1q36JJNitfSBz6KYgBT0X77ww2HsxywC2Y6pjtNM+Uu5b1yqRkabiRkttcwg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBzlh-0006Q4-VE for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 12:06:01 -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, 15 Nov 2024 17:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74368 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173169030224246 (code B ref -1); Fri, 15 Nov 2024 17:06:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2024 17:05:02 +0000 Original-Received: from localhost ([127.0.0.1]:50705 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBzkk-0006Ix-6A for submit@debbugs.gnu.org; Fri, 15 Nov 2024 12:05:02 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:43718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBzkh-0006IT-NJ for submit@debbugs.gnu.org; Fri, 15 Nov 2024 12:05:00 -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 1tBzkg-0006Qt-Eu for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 12:04:58 -0500 Original-Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tBzke-0005Zh-Dm for bug-gnu-emacs@gnu.org; Fri, 15 Nov 2024 12:04:58 -0500 Original-Received: by mail-qv1-xf32.google.com with SMTP id 6a1803df08f44-6d18dff41cdso12670436d6.0 for ; Fri, 15 Nov 2024 09:04:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1731690294; x=1732295094; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=ZkiSLJfP4rR4r1D8pFZYd2+HMBDaokGwlMpgtBAgIFM=; b=tnDbT0B8jff0130paPX5HDEkBQ78xJu8QnBO38yzxJHRGYCcaeq8fVfBV32g/eYB1u WJEp2sMKi3LYr+SQ+wCox4j+8t8AxKKolZtCb6PvnrMWOPmjc3ULVqvHDJzZmlWg2Mdt RKa9SIrK06BUZLb0pkK9A0yxFLV78WAEtfG2vlmL/GyPBBV7wU3lXMrrYPEwscBJ7o1t vgB7WkyBuS4Z806r2qrJtnl4KNf3Xki4ol+auHOkmCyYtBm/HnRivtxlLjt/N/noLr3d nnjNANqWxTS92Ml3c9I8DSz6MJ3ocmtH7yyU6JfZ9sygaSmVgouA4aa9ytSYMFiBbPf9 cd5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731690294; x=1732295094; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZkiSLJfP4rR4r1D8pFZYd2+HMBDaokGwlMpgtBAgIFM=; b=vBHqmBpNRVN6yySNL8q6VXgMtu/I879JaQr76mwZuDJrj3Oc57Vr3ZTsTV7SEHE7Tw U1qj6pF7OTqmFF7YHgM/StEd2or/Wx0tyJ3dtq/XpbiavRZHS0vY73J8xiwC+cB6T1SO vYPLU130q4lLxq9qhqgUh8USwLGfw100PVrqaWoN44sx0wRnM9AA9488LZhJpF2iS4t4 b4Ueo1xdlmif7bfLY+tAR5KH5H25hQWibuh5gRQsNdhRJEjA5hA1vS4syNY/fCYxvM/Z ODCY6dmn29WBmEmvezNK9yR7fyQerY/ZNLd9mP9B1sRVhDexcazZ4RWy3Snj+4W9+EKW 3n9w== X-Gm-Message-State: AOJu0Yw7onG/x+lKOOVe8mBtrXs6O2xJJRVF4eepWuEt5Biz/3pDcHon lgm6qnO4YkvmU8euEM0EBaa6fPyNaqvc/u1SKs3KUh5kuBopL6SzYnAlb0RCzsoxWgDhp4G6uxk / X-Google-Smtp-Source: AGHT+IEBp5M0Mhs/f7iUBO9ZmGAnJRG+FC8vNvP910HQtmIbGYXSrvop7ZIfOqY3txl1fgLdXAB3tA== X-Received: by 2002:a05:6214:1d07:b0:6d4:c27:9151 with SMTP id 6a1803df08f44-6d40c279261mr2913176d6.23.1731690293531; Fri, 15 Nov 2024 09:04:53 -0800 (PST) Original-Received: from smtpclient.apple ([70.107.172.48]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d3ee8c7966sm19567776d6.88.2024.11.15.09.04.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Nov 2024 09:04:53 -0800 (PST) X-Mailer: Apple Mail (2.3826.300.86) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=spd@toadstyle.org; helo=mail-qv1-xf32.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:295402 Archived-At: Hi folks, 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. Recipe: 1. mkdir /tmp/emacs-test 2. printf ";; -*- lexical-binding: t; -*-\n\n(vertico-mode)\n" > = /tmp/emacs-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 There is no warning when compiling synchronously, but there is a warning during asynchronous compilation: test.el:3:2: Warning: the function =E2=80=98vertico-mode=E2=80=99 is not = known to be defined. I guess maybe the asynchronous compiler has not processed the autoloads from installed packages, whereas the synchronous compiler has. Is this difference in behavior expected? Or is one of the compilers behaving incorrectly? Thanks! In GNU Emacs 31.0.50 (build 1, aarch64-apple-darwin24.2.0, NS appkit-2575.30 Version 15.2 (Build 24C5079e)) of 2024-11-15 built on beatrix.local Repository revision: 1f8fbae8df764e9d24f1b824de7369d82e36abae Repository branch: master Windowing system distributor 'Apple', version 10.3.2575 System Description: macOS 15.2 Configured using: 'configure --with-ns --with-modules --with-native-compilation --with-libgmp --with-tree-sitter --with-sqlite3 --without-imagemagick --without-dbus CPPFLAGS=3D-I/opt/homebrew/include LDFLAGS=3D-L/opt/homebrew/lib PKG_CONFIG_PATH=3D/opt/homebrew/lib/pkgconfig' Configured features: ACL GMP GNUTLS LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug pcmpl-unix comp comp-cstr cl-extra help-mode vertico-flat warnings vertico pcase compat info vertico-autoloads easy-mmode loaddefs-gen lisp-mnt radix-tree tar-mode arc-mode archive-mode cus-edit pp cus-start cus-load wid-edit mm-archive message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 gnus-util mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-cache url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny epg-config finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs icons password-cache json map byte-opt gv url-vars shell pcomplete time-date compile text-property-search comint subr-x ansi-osc ansi-color ring comp-run bytecomp byte-compile comp-common rx dired-aux cl-loaddefs cl-lib dired dired-loaddefs rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 236347 29747) (symbols 48 13790 0) (strings 32 64721 4130) (string-bytes 1 1850967) (vectors 16 38194) (vector-slots 8 401520 17463) (floats 8 88 82) (intervals 56 692 0) (buffers 992 20))