unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#74368: 31.0.50; Different warnings between native-compile and native-compile-async
@ 2024-11-15 17:04 Sean Devlin
  2024-11-16  7:38 ` Eli Zaretskii
  2024-11-16 21:26 ` Andrea Corallo
  0 siblings, 2 replies; 6+ messages in thread
From: Sean Devlin @ 2024-11-15 17:04 UTC (permalink / raw)
  To: 74368

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=/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 ‘vertico-mode’ 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=-I/opt/homebrew/include
LDFLAGS=-L/opt/homebrew/lib
PKG_CONFIG_PATH=/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))





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-23 12:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).