From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 03:11:46 2022 Received: (at submit) by debbugs.gnu.org; 3 Oct 2022 07:11:46 +0000 Received: from localhost ([127.0.0.1]:48795 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofFc9-0007dv-U2 for submit@debbugs.gnu.org; Mon, 03 Oct 2022 03:11:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:54224) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofFc7-0007dm-3f for submit@debbugs.gnu.org; Mon, 03 Oct 2022 03:11:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofFc6-0006ov-Sh for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 03:11:42 -0400 Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]:44551) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofFc4-0005Ih-Hy for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 03:11:42 -0400 Received: by mail-vs1-xe2f.google.com with SMTP id z128so3804486vsb.11 for ; Mon, 03 Oct 2022 00:11:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:mime-version:from:from:to:cc:subject :date; bh=d0CV3wkSTfn4vxvDPNAdd0+hjY4hEZvYJZgQmgxxgOo=; b=SqtxQcha1sAvfnm3rfvsME94JbcuDA54LH+i1QhM0//fB014A3C7QGLL9Q3NPmnOi2 wJGYXNzs7wbedA1nhh/9TPO7MkBZk+uPnFP5wG94OXMlQ7LEkRE29S4iPuRkX2+eytAk c62ZWfrDYUyl/YKCrnhHUx1KHo/Lot3myURhXOR4WpIyZwJKdm2Bixz4obqQSjv8px7z lJd9ZaccteTWMdb+juijBUzKOcrojC1Gps1AnWz/fSE+Acs8WCXf3S5HB9ncZQmeLVGi E9N4/IQQHGA39xOjd99DMNKZaz4Bn5xBrmd1J+0GmS0nETdDW87hSb7jOoyZCu7eJ2Aj tgXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:mime-version:from:x-gm-message-state :from:to:cc:subject:date; bh=d0CV3wkSTfn4vxvDPNAdd0+hjY4hEZvYJZgQmgxxgOo=; b=sv0NL6WSB80PQGd8ODSvWGo3Kbqdvf8CRWILDEKKK8lmucVe+JgHah3es8dlLOGgEq aXw6zyjBadoinvod7u50A32R6QFGea4k+u0k5fxs+OPUuDgZuxeO3jcmP2ET1Pqu6tT2 TayITrOV5qh8EBJ66E4BukDQ/Frt3oj1DSgL3qs52MXM3cw977WT/7O7OYzpu7G3rjYk Y+2bGkC8eTAmrZVxOwO2zYuCTxpF3DPO6hhrQh/V5QU4xmAakSbYfHGlCKnA3DZf4XfH CeNPCkIQu894oemzq3bTloF5upQ+PIHmSzUO24z5hFvJUskDhJiDu7cyKWl+L0VYnttu 93IQ== X-Gm-Message-State: ACrzQf0pU4VwFQG411sJtmxPtkWrynwqfvPS7UKelPZKF3kWBJGemd1d RombXLRKbSi9GcD7+Vp3MP7PhcyhsquRakobIrengCBJ X-Google-Smtp-Source: AMsMyM4P/T583IUM0+UhsNvdBGJ/gtRLGZF+U0ghYOK7j/+znJXDVawbxS4mVN2mCgjhkVBI0yWzYUUQiBGOF51FUQE= X-Received: by 2002:a67:ed07:0:b0:3a6:5bf7:8ba1 with SMTP id l7-20020a67ed07000000b003a65bf78ba1mr1701943vsp.62.1664781098977; Mon, 03 Oct 2022 00:11:38 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Oct 2022 00:11:38 -0700 From: Holger Schurig MIME-Version: 1.0 Date: Mon, 3 Oct 2022 00:11:38 -0700 Message-ID: Subject: 29.0.50; Native-compiling the same files at every start To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::e2f; envelope-from=holgerschurig@gmail.com; helo=mail-vs1-xe2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * I compiled Emacs from GIT by myself (version emacs-28.2-159399-g2973f91fb3) * installed it via GNU Stow into /usr/local/emacs * whenever I now run "emacs -Q" the same files will always be byte-compiled according to "*Async-native-compile-log*": Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-lib.el.gz... uncompressing cl-lib.el.gz... uncompressing cl-lib.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-extra.el.gz... uncompressing cl-extra.el.gz... uncompressing cl-extra.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/help-mode.el.gz... uncompressing help-mode.el.gz... uncompressing help-mode.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/gv.el.gz... uncompressing gv.el.gz... uncompressing gv.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-macs.el.gz... uncompressing cl-macs.el.gz... uncompressing cl-macs.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-seq.el.gz... uncompressing cl-seq.el.gz... uncompressing cl-seq.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/rx.el.gz... uncompressing rx.el.gz... uncompressing rx.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/subr-x.el.gz... uncompressing subr-x.el.gz... uncompressing subr-x.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/icons.el.gz... uncompressing icons.el.gz... uncompressing icons.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/warnings.el.gz... uncompressing warnings.el.gz... uncompressing warnings.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/display-line-numbers.el.gz... uncompressing display-line-numbers.el.gz... uncompressing display-line-numbers.el.gz...done Compilation finished. Compilation finished. Compiling /usr/local/share/emacs/29.0.50/lisp/mail/mail-utils.el.gz... uncompressing mail-utils.el.gz... uncompressing mail-utils.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/ietf-drums.el.gz... uncompressing ietf-drums.el.gz... uncompressing ietf-drums.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mm-util.el.gz... uncompressing mm-util.el.gz... uncompressing mm-util.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/rfc2045.el.gz... uncompressing rfc2045.el.gz... uncompressing rfc2045.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/rfc2047.el.gz... uncompressing rfc2047.el.gz... uncompressing rfc2047.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/sendmail.el.gz... uncompressing sendmail.el.gz... uncompressing sendmail.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/mailheader.el.gz... uncompressing mailheader.el.gz... uncompressing mailheader.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/gmm-utils.el.gz... uncompressing gmm-utils.el.gz... uncompressing gmm-utils.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/mailabbrev.el.gz... uncompressing mailabbrev.el.gz... uncompressing mailabbrev.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/rfc2231.el.gz... uncompressing rfc2231.el.gz... uncompressing rfc2231.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/mail-parse.el.gz... uncompressing mail-parse.el.gz... uncompressing mail-parse.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mm-encode.el.gz... uncompressing mm-encode.el.gz... uncompressing mm-encode.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mm-decode.el.gz... uncompressing mm-decode.el.gz... uncompressing mm-decode.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mm-bodies.el.gz... uncompressing mm-bodies.el.gz... uncompressing mm-bodies.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/calendar/time-date.el.gz... uncompressing time-date.el.gz... uncompressing time-date.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/text-property-search.el.gz... uncompressing text-property-search.el.gz... uncompressing text-property-search.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/gnus-util.el.gz... uncompressing gnus-util.el.gz... uncompressing gnus-util.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/epg-config.el.gz... uncompressing epg-config.el.gz... uncompressing epg-config.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/rfc6068.el.gz... uncompressing rfc6068.el.gz... uncompressing rfc6068.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/epg.el.gz... uncompressing epg.el.gz... uncompressing epg.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/derived.el.gz... uncompressing derived.el.gz... uncompressing derived.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/epa.el.gz... uncompressing epa.el.gz... uncompressing epa.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/password-cache.el.gz... uncompressing password-cache.el.gz... uncompressing password-cache.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mml-sec.el.gz... uncompressing mml-sec.el.gz... uncompressing mml-sec.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/mml.el.gz... uncompressing mml.el.gz... uncompressing mml.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/rfc822.el.gz... uncompressing rfc822.el.gz... uncompressing rfc822.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/dired.el.gz... uncompressing dired.el.gz... uncompressing dired.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/net/puny.el.gz... uncompressing puny.el.gz... uncompressing puny.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/yank-media.el.gz... uncompressing yank-media.el.gz... uncompressing yank-media.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/net/mailcap.el.gz... uncompressing mailcap.el.gz... uncompressing mailcap.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/gnus/message.el.gz... uncompressing message.el.gz... uncompressing message.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/emacsbug.el.gz... uncompressing emacsbug.el.gz... uncompressing emacsbug.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/mail/mail-extr.el.gz... uncompressing mail-extr.el.gz... uncompressing mail-extr.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/sort.el.gz... uncompressing sort.el.gz... uncompressing sort.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/shadow.el.gz... uncompressing shadow.el.gz... uncompressing shadow.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/pp.el.gz... uncompressing pp.el.gz... uncompressing pp.el.gz...done Compilation finished. So, when I stop Emacs and start it again, I get the same behavior. I think the underlying problem is that /usr/local/share is root owned, and my running Emacs as a user don't have write access. So no *.eln files end up in this path. And this makes Emacs trying to byte-compile them again. Couldn't Emacs byte-compile them at "make" or "make install" steps? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.16.0) of 2022-10-03 built on holger Repository revision: 2973f91fb3de824cd21399dc5cd298d4b8be4022 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure -C --with-cairo --with-dbus --with-file-notification=inotify --with-gnutls --with-gpm=no --with-harfbuzz --with-imagemagick --with-json --with-modules --with-native-compilation --with-rsvg --with-small-ja-dic --with-sound=alsa --with-threads --with-toolkit-scroll-bars --with-x-toolkit=gtk3 --with-xml2 --with-xwidgets --without-gconf --without-gpm --without-gsettings --without-hesiod --without-imagemagick --without-kerberos --without-kerberos5 --without-ns --without-pop --without-selinux --without-wide-int --without-xft --without-xim 'CFLAGS=-g -O2 -march=native -ffile-prefix-map=/home/holger=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -fno-omit-frame-pointer'' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB Important settings: value of $LANG: C.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental 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 blink-cursor-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: (only . t) auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils display-line-numbers comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode cl-loaddefs cl-lib bytecomp byte-compile cconv rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 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 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 xwidget-internal dbusbind inotify lcms2 dynamic-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 81135 9949) (symbols 48 7182 0) (strings 32 23229 3214) (string-bytes 1 738678) (vectors 16 19025) (vector-slots 8 332533 13684) (floats 8 43 20) (intervals 56 316 0) (buffers 1000 12)) From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 03 12:51:58 2022 Received: (at 58267) by debbugs.gnu.org; 3 Oct 2022 16:51:58 +0000 Received: from localhost ([127.0.0.1]:51619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofOfe-0003RM-JF for submit@debbugs.gnu.org; Mon, 03 Oct 2022 12:51:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofOfc-0003R9-Q5 for 58267@debbugs.gnu.org; Mon, 03 Oct 2022 12:51:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofOfX-0004Vj-Jn; Mon, 03 Oct 2022 12:51:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=movaR3kCUQuV3pC4pPu3Fh902+5J2p8bizC5K6Sk9EY=; b=Lq2lz+9PKVs8 i/YcxrEYPdZpBFeUGSPMpl4GLrxsh0y5DFz4GhPyc0lrnIqd7iOVAIqmZ6knooakmOio2bx7LDeIX UeQNZD40HiOx0Ry5WKrO9s2kSQcJTp3LEBsPW/DCvyGw8sZszLFDuELvW63Ekg36Nob1+DhyJqsSc J8IphyK8WP5MPLU6jJFXrYo8XDdpjI/Z8FgGOwEjEZ/yr8OchA3rUgqiugd8Cz0+cC9aNDP/wl/w/ PMzacXoyMQfw3UUh9Y05gNs/aRjEDiXHr1M0wZRHHQvytZQ1z02OZucK32IVjxguBTdW9m20KDk6k ctwh1PnNvGyHgNnMkSeh3A==; Received: from [87.69.77.57] (port=2646 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofOfX-0003yn-30; Mon, 03 Oct 2022 12:51:51 -0400 Date: Mon, 03 Oct 2022 19:51:46 +0300 Message-Id: <83wn9gyhnh.fsf@gnu.org> From: Eli Zaretskii To: Holger Schurig In-Reply-To: (message from Holger Schurig on Mon, 3 Oct 2022 00:11:38 -0700) Subject: Re: bug#58267: 29.0.50; Native-compiling the same files at every start References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58267 Cc: 58267@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Holger Schurig > Date: Mon, 3 Oct 2022 00:11:38 -0700 > > So, when I stop Emacs and start it again, I get the same behavior. > > I think the underlying problem is that /usr/local/share is root owned, > and my running Emacs as a user don't have write access. So no *.eln > files end up in this path. And this makes Emacs trying to byte-compile > them again. But Emacs is not supposed to write the *.eln files into /usr/local/share, it's supposed to write them to your .emacs.d/eln-cache directory under your home directory. Is your home directory writable? What is the value of native-comp-eln-load-path in that session? > Couldn't Emacs byte-compile them at "make" or "make install" steps? How would that help if Emacs is unable to write the *.eln files for some reason? From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 15:20:58 2022 Received: (at 58267) by debbugs.gnu.org; 4 Oct 2022 19:20:58 +0000 Received: from localhost ([127.0.0.1]:55240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnTN-0001Gw-8X for submit@debbugs.gnu.org; Tue, 04 Oct 2022 15:20:58 -0400 Received: from mail-vk1-f176.google.com ([209.85.221.176]:39764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnTK-0001Gh-Bx for 58267@debbugs.gnu.org; Tue, 04 Oct 2022 15:20:55 -0400 Received: by mail-vk1-f176.google.com with SMTP id e5so7542034vkg.6 for <58267@debbugs.gnu.org>; Tue, 04 Oct 2022 12:20:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=UGGDbj220lQ9AE7+RwcKO47mXBTv2Nk44++KZUZfvJo=; b=K1A7KZxrn+pS+ZT6Q4YwJ/wuTnLUBLCkfHQ6qrycV4vBr1DtbxD+zYDcMNkk0nKK+F 1XDXZMxQd0liWv5C7cS/YS+yq3G8GlOJmzBxNOw1H0ny/DsvxUQjJWKS7pVRqKaILp4n +RGONwGyrVTwFeBV1DZMoR/8o+pkV33QiRyvgR+CDCLbbgaiMkR/6O+3r0P1DCFX+qyj rFj9zztbdxbf+1D5RgeNyGKLL4wQi9qT9KC3BolDap01bsYHYfkqh0Sq4SpfDChuf2fF l53xqtPMeBZU0QZYnTKu4s5248JCu0UReWRDPZAFA4xdeF92QwYRRI3UkXWDeWP7xk9g T59w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=UGGDbj220lQ9AE7+RwcKO47mXBTv2Nk44++KZUZfvJo=; b=PcPhWTRSNCtiOso4GHJ9RLwalUU8UQyQyvlhMiJQ62XZEa2w1+9rwk9iXVZHAQLCtW Vor15iF0VmWzse7WLV+yq7AjnIXCQ5NeS/C+9o/t3HYqOPTo4Uo60rIth1Wc15fXiwzP 9ludffV8f0kBkOglv/qSfM/Eio2+Z1alt9zzFA28vIwzeq0qOvGg2cod/LWd9XcF/yL5 mbLpNLaecIqHh4Tly3MI+9THpVgqX7SXm25+3OPxfrfVyDAaGTzxrthOS5Fz+hH1Y+uZ rfimANKQOkHRvEW+yI4DLZQWdgRGKfsqdC1ckUyl8dUaOlJxBg6UGM3wXMhf4dbWR3SL 4WsQ== X-Gm-Message-State: ACrzQf0p89pP0vM2+J4pecIgCFxigGA/3KH0LIzU5SxZ1cbwI9yExkJM 2AmvCDdvziwFJUxC9SuxZVLdMm/V48la5fz0lPg= X-Google-Smtp-Source: AMsMyM55eixGkSX3HE12oMXTOkReu8HV1Bkk0rBdsj9mYp7IazrUxS16PifXF/sr4jtAC+bGFCzBs4cWIvexSX3ovlo= X-Received: by 2002:a1f:1916:0:b0:3aa:12a5:fd9c with SMTP id 22-20020a1f1916000000b003aa12a5fd9cmr5606814vkz.31.1664911247805; Tue, 04 Oct 2022 12:20:47 -0700 (PDT) MIME-Version: 1.0 References: <83wn9gyhnh.fsf@gnu.org> In-Reply-To: <83wn9gyhnh.fsf@gnu.org> From: Holger Schurig Date: Tue, 4 Oct 2022 21:20:36 +0200 Message-ID: Subject: Re: bug#58267: 29.0.50; Native-compiling the same files at every start To: Eli Zaretskii Content-Type: multipart/alternative; boundary="0000000000008211ed05ea3a5b56" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58267 Cc: 58267@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008211ed05ea3a5b56 Content-Type: text/plain; charset="UTF-8" Hi Eli, > What is the value of native-comp-eln-load-path in that session? Thanks for looking into it. native-comp-eln-load-path is: ("/home/holger/.emacs.d/eln-cache/" "/usr/local/stow/emacs/lib/emacs/29.0.50/native-lisp/") And the first directory is certainly writable: holger@holger:~$ ll ~/.emacs.d/eln-cache/ total 4 drwxr-xr-x 2 holger holger 4096 Oct 4 21:08 29.0.50-aee1894c/ holger@holger:~$ ll ~/.emacs.d/eln-cache/29.0.50-aee1894c/ total 4724 -rwxr-xr-x 1 holger holger 108536 Oct 3 09:04 cl-extra-d7051cba-954d0113.eln* -rwxr-xr-x 1 holger holger 61192 Oct 3 09:04 cl-lib-8b938900-c76f14d9.eln* -rwxr-xr-x 1 holger holger 333328 Oct 3 09:05 cl-macs-7ae82f81-7195f6d0.eln* -rwxr-xr-x 1 holger holger 61032 Oct 4 21:07 cl-print-79bf9fb1-c759fffb.eln* -rwxr-xr-x 1 holger holger 128112 Oct 3 09:04 cl-seq-f464c4e2-41e7a709.eln* -rwxr-xr-x 1 holger holger 46168 Oct 3 09:05 derived-381801a7-44101f77.eln* -rwxr-xr-x 1 holger holger 314336 Oct 3 09:06 dired-6a3ae2bc-a97b899d.eln* -rwxr-xr-x 1 holger holger 39168 Oct 3 09:05 display-line-numbers-1d060f2e-ac11bdb2.eln* -rwxr-xr-x 1 holger holger 50896 Oct 3 09:06 emacsbug-2b184f71-463477ae.eln* -rwxr-xr-x 1 holger holger 109760 Oct 3 09:05 epa-bdd8ea1c-902eeb9e.eln* -rwxr-xr-x 1 holger holger 34696 Oct 3 09:05 epg-config-78240760-6b96d0a3.eln* -rwxr-xr-x 1 holger holger 414104 Oct 3 09:05 epg-de089247-f5f7c3c5.eln* -rwxr-xr-x 1 holger holger 22304 Oct 3 09:05 gmm-utils-3a9b481d-ca3307d0.eln* -rwxr-xr-x 1 holger holger 154784 Oct 3 09:05 gnus-util-b645aa9c-09000edd.eln* -rwxr-xr-x 1 holger holger 211592 Oct 3 09:04 gv-e0cf7478-70e05b9c.eln* -rwxr-xr-x 1 holger holger 182992 Oct 4 21:07 help-fns-d233c6e8-a099ac59.eln* -rwxr-xr-x 1 holger holger 73536 Oct 3 09:04 help-mode-d4dbae3d-942d04d2.eln* -rwxr-xr-x 1 holger holger 35328 Oct 3 09:04 icons-eafe82eb-aebf40bc.eln* -rwxr-xr-x 1 holger holger 41688 Oct 3 09:05 ietf-drums-23d9ecfe-d43bb971.eln* -rwxr-xr-x 1 holger holger 97616 Oct 3 09:06 mail-extr-e04131ae-0d3fbd03.eln* -rwxr-xr-x 1 holger holger 19856 Oct 3 09:05 mail-parse-5e7f4583-4dd5f035.eln* -rwxr-xr-x 1 holger holger 38032 Oct 3 09:05 mail-utils-ae525238-1df0075a.eln* -rwxr-xr-x 1 holger holger 44736 Oct 3 09:05 mailabbrev-287b6d20-0b61dba5.eln* -rwxr-xr-x 1 holger holger 75672 Oct 3 09:05 mailcap-a1205653-fa0834cd.eln* -rwxr-xr-x 1 holger holger 26520 Oct 3 09:05 mailheader-2dff755b-d62c8c9d.eln* -rwxr-xr-x 1 holger holger 571024 Oct 3 09:06 message-4a315c5a-c7ff10aa.eln* -rwxr-xr-x 1 holger holger 29928 Oct 3 09:05 mm-bodies-5a92b2dc-09a021c3.eln* -rwxr-xr-x 1 holger holger 176576 Oct 3 09:05 mm-decode-4a4c16d8-5bfcef52.eln* -rwxr-xr-x 1 holger holger 27776 Oct 3 09:05 mm-encode-4f0ce800-f393314a.eln* -rwxr-xr-x 1 holger holger 62432 Oct 3 09:05 mm-util-3a4439f0-1f9a87ba.eln* -rwxr-xr-x 1 holger holger 126880 Oct 3 09:05 mml-34028078-bb605e70.eln* -rwxr-xr-x 1 holger holger 103496 Oct 3 09:05 mml-sec-827872f6-853bc022.eln* -rwxr-xr-x 1 holger holger 19384 Oct 3 09:05 password-cache-187e4eec-58743954.eln* -rwxr-xr-x 1 holger holger 43240 Oct 3 09:06 pp-5d47c1cc-a707bff5.eln* -rwxr-xr-x 1 holger holger 30168 Oct 3 09:05 puny-eb5a151f-3cb4b46d.eln* -rwxr-xr-x 1 holger holger 16360 Oct 3 09:05 rfc2045-713c994b-52b58bf3.eln* -rwxr-xr-x 1 holger holger 72400 Oct 3 09:05 rfc2047-b84e264d-9d53d444.eln* -rwxr-xr-x 1 holger holger 33248 Oct 3 09:05 rfc2231-e2cbed75-26dda543.eln* -rwxr-xr-x 1 holger holger 18032 Oct 3 09:05 rfc6068-5e4d60aa-08220a90.eln* -rwxr-xr-x 1 holger holger 28592 Oct 3 09:05 rfc822-a91daeff-9d287a67.eln* -rwxr-xr-x 1 holger holger 140704 Oct 3 09:04 rx-627d8c83-8e412280.eln* -rwxr-xr-x 1 holger holger 119264 Oct 3 09:05 sendmail-bcf4df3f-de9a20b1.eln* -rwxr-xr-x 1 holger holger 28792 Oct 3 09:06 shadow-87c8aad9-fa6a3d65.eln* -rwxr-xr-x 1 holger holger 49616 Oct 3 09:06 sort-14dd51e7-e6a8ba97.eln* -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 subr--trampoline-61626f72742d7265637572736976652d65646974_abort_recursive_edit_0.eln* -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 subr--trampoline-6d616b652d70726f63657373_make_process_0.eln* -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 subr--trampoline-73656c6563742d77696e646f77_select_window_0.eln* -rwxr-xr-x 1 holger holger 16024 Oct 2 18:00 subr--trampoline-746f702d6c6576656c_top_level_0.eln* -rwxr-xr-x 1 holger holger 49072 Oct 3 09:04 subr-x-02dfef32-177735b4.eln* -rwxr-xr-x 1 holger holger 29264 Oct 3 09:05 text-property-search-db1383f6-ed2e2f1e.eln* -rwxr-xr-x 1 holger holger 61032 Oct 4 21:08 thingatpt-6fc8a4ab-5c620eb5.eln* -rwxr-xr-x 1 holger holger 56680 Oct 3 09:05 time-date-40951a48-f2fbd30f.eln* -rwxr-xr-x 1 holger holger 31184 Oct 3 09:05 warnings-28e75f4d-02da775e.eln* -rwxr-xr-x 1 holger holger 25088 Oct 3 09:05 yank-media-62540c94-43b16516.eln* But some files are still recompiled again and again. Here are two different output from the "*Async-native-compile-log*" with two different invocations of "emacs -Q". And somehow the cl-loaddefs.el.gz gets compiled twice: First one: Compilation finished. Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz...done Compiling /usr/local/share/emacs/29.0.50/lisp/thingatpt.el.gz... uncompressing thingatpt.el.gz... uncompressing thingatpt.el.gz...done Compilation finished. (above file list is from this point-in-time) Next one: Compilation finished. Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz... uncompressing cl-loaddefs.el.gz...done Compilation finished. But despite this, nothing ends up in the eln-cache: holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "cl-load*" holger@holger:~$ But ... it's not only cl-loaddefs.el. My Emacs setup normally is Emacs Doom. So when I start Emacs without -Q, I see that Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/pcase.el.gz... uncompressing pcase.el.gz... uncompressing pcase.el.gz...done pcase.el gets native-compiled. But later ... holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "pcase*" holger@holger:~$ .. doesn't find anything. So there seem to be more Emacs Lisp libraries that fall through the roster. --0000000000008211ed05ea3a5b56 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Eli,

>= ; What is the value of native-comp-eln-load-path in
that session?

Thanks for looking into it. native-c= omp-eln-load-path is:

("/home/holger/.ema= cs.d/eln-cache/" "/usr/local/stow/emacs/lib/emacs/29.0.50/native-= lisp/")

And the first directory is certainly = writable:

holger@holger:~$ ll ~/.emacs.d/eln-cache= /
total 4
drwxr-xr-x 2 holger holger 4096 Oct =C2=A04 21:08 29.0.50-a= ee1894c/
holger@holger:~$ ll ~/.emacs.d/eln-cache/29.0.50-aee1894c/
t= otal 4724
-rwxr-xr-x 1 holger holger 108536 Oct =C2=A03 09:04 cl-extra-d= 7051cba-954d0113.eln*
-rwxr-xr-x 1 holger holger =C2=A061192 Oct =C2=A03= 09:04 cl-lib-8b938900-c76f14d9.eln*
-rwxr-xr-x 1 holger holger 333328 O= ct =C2=A03 09:05 cl-macs-7ae82f81-7195f6d0.eln*
-rwxr-xr-x 1 holger holg= er =C2=A061032 Oct =C2=A04 21:07 cl-print-79bf9fb1-c759fffb.eln*
-rwxr-x= r-x 1 holger holger 128112 Oct =C2=A03 09:04 cl-seq-f464c4e2-41e7a709.eln*<= br>-rwxr-xr-x 1 holger holger =C2=A046168 Oct =C2=A03 09:05 derived-381801a= 7-44101f77.eln*
-rwxr-xr-x 1 holger holger 314336 Oct =C2=A03 09:06 dire= d-6a3ae2bc-a97b899d.eln*
-rwxr-xr-x 1 holger holger =C2=A039168 Oct =C2= =A03 09:05 display-line-numbers-1d060f2e-ac11bdb2.eln*
-rwxr-xr-x 1 holg= er holger =C2=A050896 Oct =C2=A03 09:06 emacsbug-2b184f71-463477ae.eln*
= -rwxr-xr-x 1 holger holger 109760 Oct =C2=A03 09:05 epa-bdd8ea1c-902eeb9e.e= ln*
-rwxr-xr-x 1 holger holger =C2=A034696 Oct =C2=A03 09:05 epg-config-= 78240760-6b96d0a3.eln*
-rwxr-xr-x 1 holger holger 414104 Oct =C2=A03 09:= 05 epg-de089247-f5f7c3c5.eln*
-rwxr-xr-x 1 holger holger =C2=A022304 Oct= =C2=A03 09:05 gmm-utils-3a9b481d-ca3307d0.eln*
-rwxr-xr-x 1 holger holg= er 154784 Oct =C2=A03 09:05 gnus-util-b645aa9c-09000edd.eln*
-rwxr-xr-x = 1 holger holger 211592 Oct =C2=A03 09:04 gv-e0cf7478-70e05b9c.eln*
-rwxr= -xr-x 1 holger holger 182992 Oct =C2=A04 21:07 help-fns-d233c6e8-a099ac59.e= ln*
-rwxr-xr-x 1 holger holger =C2=A073536 Oct =C2=A03 09:04 help-mode-d= 4dbae3d-942d04d2.eln*
-rwxr-xr-x 1 holger holger =C2=A035328 Oct =C2=A03= 09:04 icons-eafe82eb-aebf40bc.eln*
-rwxr-xr-x 1 holger holger =C2=A0416= 88 Oct =C2=A03 09:05 ietf-drums-23d9ecfe-d43bb971.eln*
-rwxr-xr-x 1 holg= er holger =C2=A097616 Oct =C2=A03 09:06 mail-extr-e04131ae-0d3fbd03.eln*-rwxr-xr-x 1 holger holger =C2=A019856 Oct =C2=A03 09:05 mail-parse-5e7f45= 83-4dd5f035.eln*
-rwxr-xr-x 1 holger holger =C2=A038032 Oct =C2=A03 09:0= 5 mail-utils-ae525238-1df0075a.eln*
-rwxr-xr-x 1 holger holger =C2=A0447= 36 Oct =C2=A03 09:05 mailabbrev-287b6d20-0b61dba5.eln*
-rwxr-xr-x 1 holg= er holger =C2=A075672 Oct =C2=A03 09:05 mailcap-a1205653-fa0834cd.eln*
-= rwxr-xr-x 1 holger holger =C2=A026520 Oct =C2=A03 09:05 mailheader-2dff755b= -d62c8c9d.eln*
-rwxr-xr-x 1 holger holger 571024 Oct =C2=A03 09:06 messa= ge-4a315c5a-c7ff10aa.eln*
-rwxr-xr-x 1 holger holger =C2=A029928 Oct =C2= =A03 09:05 mm-bodies-5a92b2dc-09a021c3.eln*
-rwxr-xr-x 1 holger holger 1= 76576 Oct =C2=A03 09:05 mm-decode-4a4c16d8-5bfcef52.eln*
-rwxr-xr-x 1 ho= lger holger =C2=A027776 Oct =C2=A03 09:05 mm-encode-4f0ce800-f393314a.eln*<= br>-rwxr-xr-x 1 holger holger =C2=A062432 Oct =C2=A03 09:05 mm-util-3a4439f= 0-1f9a87ba.eln*
-rwxr-xr-x 1 holger holger 126880 Oct =C2=A03 09:05 mml-= 34028078-bb605e70.eln*
-rwxr-xr-x 1 holger holger 103496 Oct =C2=A03 09:= 05 mml-sec-827872f6-853bc022.eln*
-rwxr-xr-x 1 holger holger =C2=A019384= Oct =C2=A03 09:05 password-cache-187e4eec-58743954.eln*
-rwxr-xr-x 1 ho= lger holger =C2=A043240 Oct =C2=A03 09:06 pp-5d47c1cc-a707bff5.eln*
-rwx= r-xr-x 1 holger holger =C2=A030168 Oct =C2=A03 09:05 puny-eb5a151f-3cb4b46d= .eln*
-rwxr-xr-x 1 holger holger =C2=A016360 Oct =C2=A03 09:05 rfc2045-7= 13c994b-52b58bf3.eln*
-rwxr-xr-x 1 holger holger =C2=A072400 Oct =C2=A03= 09:05 rfc2047-b84e264d-9d53d444.eln*
-rwxr-xr-x 1 holger holger =C2=A03= 3248 Oct =C2=A03 09:05 rfc2231-e2cbed75-26dda543.eln*
-rwxr-xr-x 1 holge= r holger =C2=A018032 Oct =C2=A03 09:05 rfc6068-5e4d60aa-08220a90.eln*
-r= wxr-xr-x 1 holger holger =C2=A028592 Oct =C2=A03 09:05 rfc822-a91daeff-9d28= 7a67.eln*
-rwxr-xr-x 1 holger holger 140704 Oct =C2=A03 09:04 rx-627d8c8= 3-8e412280.eln*
-rwxr-xr-x 1 holger holger 119264 Oct =C2=A03 09:05 send= mail-bcf4df3f-de9a20b1.eln*
-rwxr-xr-x 1 holger holger =C2=A028792 Oct = =C2=A03 09:06 shadow-87c8aad9-fa6a3d65.eln*
-rwxr-xr-x 1 holger holger = =C2=A049616 Oct =C2=A03 09:06 sort-14dd51e7-e6a8ba97.eln*
-rwxr-xr-x 1 h= olger holger =C2=A016056 Oct =C2=A02 18:00 subr--trampoline-61626f72742d726= 5637572736976652d65646974_abort_recursive_edit_0.eln*
-rwxr-xr-x 1 holge= r holger =C2=A016056 Oct =C2=A02 18:00 subr--trampoline-6d616b652d70726f636= 57373_make_process_0.eln*
-rwxr-xr-x 1 holger holger =C2=A016056 Oct =C2= =A02 18:00 subr--trampoline-73656c6563742d77696e646f77_select_window_0.eln*=
-rwxr-xr-x 1 holger holger =C2=A016024 Oct =C2=A02 18:00 subr--trampoli= ne-746f702d6c6576656c_top_level_0.eln*
-rwxr-xr-x 1 holger holger =C2=A0= 49072 Oct =C2=A03 09:04 subr-x-02dfef32-177735b4.eln*
-rwxr-xr-x 1 holge= r holger =C2=A029264 Oct =C2=A03 09:05 text-property-search-db1383f6-ed2e2f= 1e.eln*
-rwxr-xr-x 1 holger holger =C2=A061032 Oct =C2=A04 21:08 thingat= pt-6fc8a4ab-5c620eb5.eln*
-rwxr-xr-x 1 holger holger =C2=A056680 Oct =C2= =A03 09:05 time-date-40951a48-f2fbd30f.eln*
-rwxr-xr-x 1 holger holger = =C2=A031184 Oct =C2=A03 09:05 warnings-28e75f4d-02da775e.eln*
-rwxr-xr-x= 1 holger holger =C2=A025088 Oct =C2=A03 09:05 yank-media-62540c94-43b16516= .eln*

But some files are still recompiled agai= n and again. Here are two different output from the "*Async-native-com= pile-log*" with two different invocations of "emacs -Q". And= somehow the cl-loaddefs.el.gz gets compiled twice:

First one:

Compilation finished.
Comp= iling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz...uncompressing cl-loaddefs.el.gz...
uncompressing cl-loaddefs.el.gz...d= one
Compiling /usr/local/share/emacs/29.0.50/lisp/thingatpt.el.gz...
= uncompressing thingatpt.el.gz...
uncompressing thingatpt.el.gz...doneCompilation finished.

(above file list is from th= is point-in-time)

Next one:

Compilation finished.
Compiling /usr/local/share/emacs/29.0.50/li= sp/emacs-lisp/cl-loaddefs.el.gz...
uncompressing cl-loaddefs.el.gz...uncompressing cl-loaddefs.el.gz...done
Compilation finished.
=
But despite this, nothing ends up in the eln-cache:

holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "cl= -load*"
holger@holger:~$

But ... it&#= 39;s not only cl-loaddefs.el. My Emacs setup normally is Emacs Doom. So whe= n I start Emacs without -Q, I see that

Compil= ing /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/pcase.el.gz...
uncomp= ressing pcase.el.gz...
uncompressing pcase.el.gz...done

pcase.el gets native-compiled. But later ...

<= div>holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "pcase*"holger@holger:~$

.. doesn't find anythin= g. So there seem to be more Emacs Lisp libraries that fall through the rost= er.
--0000000000008211ed05ea3a5b56-- From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 04 15:45:27 2022 Received: (at 58267) by debbugs.gnu.org; 4 Oct 2022 19:45:27 +0000 Received: from localhost ([127.0.0.1]:55270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnr4-0001t1-VW for submit@debbugs.gnu.org; Tue, 04 Oct 2022 15:45:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofnr2-0001so-PR for 58267@debbugs.gnu.org; Tue, 04 Oct 2022 15:45:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35380) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofnqw-0007PP-RR; Tue, 04 Oct 2022 15:45:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4+rvbqTpFrRWBi2SC85LUD7Jt4Ic7aeYzskwHpTF31M=; b=RAfPkiD7HpCu yIE0XO16OJsb6AnBsBPaUp2oyyVdc5mdQ09gRwWIw3ljRTNX7aOyMTBsq9nIpmHv/Z2FIa3IO4uBP PPOS8uVfCWpE/bRE6N0l+hyFJpfR7RYr31xg4WJ14T6DZwV392QSNTZab/cjAqvnjwacn6bvMweEw v07nutfc9J7edngvGs+fDZCexneSfP62rCY30RKFLtxHr6KfPNaLjZLUTt7nsXCaapUlvkddrsnt+ NsoHfrMA1xZ0iTz9466YE4sG5Wevr/v1ZkjVMkUGuLKxXUOix46A5LVf8jndHotIwj3JjHguZVUnz lth5WW+UVbtU7KeUeEJAvA==; Received: from [87.69.77.57] (port=4660 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofnqw-0000hn-1d; Tue, 04 Oct 2022 15:45:18 -0400 Date: Tue, 04 Oct 2022 22:45:14 +0300 Message-Id: <831qrnv0dx.fsf@gnu.org> From: Eli Zaretskii To: Holger Schurig In-Reply-To: (message from Holger Schurig on Tue, 4 Oct 2022 21:20:36 +0200) Subject: Re: bug#58267: 29.0.50; Native-compiling the same files at every start References: <83wn9gyhnh.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58267 Cc: 58267@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Holger Schurig > Date: Tue, 4 Oct 2022 21:20:36 +0200 > Cc: 58267@debbugs.gnu.org > > Thanks for looking into it. native-comp-eln-load-path is: > > ("/home/holger/.emacs.d/eln-cache/" "/usr/local/stow/emacs/lib/emacs/29.0.50/native-lisp/") > > And the first directory is certainly writable: > > holger@holger:~$ ll ~/.emacs.d/eln-cache/ > total 4 > drwxr-xr-x 2 holger holger 4096 Oct 4 21:08 29.0.50-aee1894c/ > holger@holger:~$ ll ~/.emacs.d/eln-cache/29.0.50-aee1894c/ > total 4724 > -rwxr-xr-x 1 holger holger 108536 Oct 3 09:04 cl-extra-d7051cba-954d0113.eln* > -rwxr-xr-x 1 holger holger 61192 Oct 3 09:04 cl-lib-8b938900-c76f14d9.eln* > -rwxr-xr-x 1 holger holger 333328 Oct 3 09:05 cl-macs-7ae82f81-7195f6d0.eln* > -rwxr-xr-x 1 holger holger 61032 Oct 4 21:07 cl-print-79bf9fb1-c759fffb.eln* > -rwxr-xr-x 1 holger holger 128112 Oct 3 09:04 cl-seq-f464c4e2-41e7a709.eln* > -rwxr-xr-x 1 holger holger 46168 Oct 3 09:05 derived-381801a7-44101f77.eln* > -rwxr-xr-x 1 holger holger 314336 Oct 3 09:06 dired-6a3ae2bc-a97b899d.eln* > -rwxr-xr-x 1 holger holger 39168 Oct 3 09:05 display-line-numbers-1d060f2e-ac11bdb2.eln* > -rwxr-xr-x 1 holger holger 50896 Oct 3 09:06 emacsbug-2b184f71-463477ae.eln* > -rwxr-xr-x 1 holger holger 109760 Oct 3 09:05 epa-bdd8ea1c-902eeb9e.eln* > -rwxr-xr-x 1 holger holger 34696 Oct 3 09:05 epg-config-78240760-6b96d0a3.eln* > -rwxr-xr-x 1 holger holger 414104 Oct 3 09:05 epg-de089247-f5f7c3c5.eln* > -rwxr-xr-x 1 holger holger 22304 Oct 3 09:05 gmm-utils-3a9b481d-ca3307d0.eln* > -rwxr-xr-x 1 holger holger 154784 Oct 3 09:05 gnus-util-b645aa9c-09000edd.eln* > -rwxr-xr-x 1 holger holger 211592 Oct 3 09:04 gv-e0cf7478-70e05b9c.eln* > -rwxr-xr-x 1 holger holger 182992 Oct 4 21:07 help-fns-d233c6e8-a099ac59.eln* > -rwxr-xr-x 1 holger holger 73536 Oct 3 09:04 help-mode-d4dbae3d-942d04d2.eln* > -rwxr-xr-x 1 holger holger 35328 Oct 3 09:04 icons-eafe82eb-aebf40bc.eln* > -rwxr-xr-x 1 holger holger 41688 Oct 3 09:05 ietf-drums-23d9ecfe-d43bb971.eln* > -rwxr-xr-x 1 holger holger 97616 Oct 3 09:06 mail-extr-e04131ae-0d3fbd03.eln* > -rwxr-xr-x 1 holger holger 19856 Oct 3 09:05 mail-parse-5e7f4583-4dd5f035.eln* > -rwxr-xr-x 1 holger holger 38032 Oct 3 09:05 mail-utils-ae525238-1df0075a.eln* > -rwxr-xr-x 1 holger holger 44736 Oct 3 09:05 mailabbrev-287b6d20-0b61dba5.eln* > -rwxr-xr-x 1 holger holger 75672 Oct 3 09:05 mailcap-a1205653-fa0834cd.eln* > -rwxr-xr-x 1 holger holger 26520 Oct 3 09:05 mailheader-2dff755b-d62c8c9d.eln* > -rwxr-xr-x 1 holger holger 571024 Oct 3 09:06 message-4a315c5a-c7ff10aa.eln* > -rwxr-xr-x 1 holger holger 29928 Oct 3 09:05 mm-bodies-5a92b2dc-09a021c3.eln* > -rwxr-xr-x 1 holger holger 176576 Oct 3 09:05 mm-decode-4a4c16d8-5bfcef52.eln* > -rwxr-xr-x 1 holger holger 27776 Oct 3 09:05 mm-encode-4f0ce800-f393314a.eln* > -rwxr-xr-x 1 holger holger 62432 Oct 3 09:05 mm-util-3a4439f0-1f9a87ba.eln* > -rwxr-xr-x 1 holger holger 126880 Oct 3 09:05 mml-34028078-bb605e70.eln* > -rwxr-xr-x 1 holger holger 103496 Oct 3 09:05 mml-sec-827872f6-853bc022.eln* > -rwxr-xr-x 1 holger holger 19384 Oct 3 09:05 password-cache-187e4eec-58743954.eln* > -rwxr-xr-x 1 holger holger 43240 Oct 3 09:06 pp-5d47c1cc-a707bff5.eln* > -rwxr-xr-x 1 holger holger 30168 Oct 3 09:05 puny-eb5a151f-3cb4b46d.eln* > -rwxr-xr-x 1 holger holger 16360 Oct 3 09:05 rfc2045-713c994b-52b58bf3.eln* > -rwxr-xr-x 1 holger holger 72400 Oct 3 09:05 rfc2047-b84e264d-9d53d444.eln* > -rwxr-xr-x 1 holger holger 33248 Oct 3 09:05 rfc2231-e2cbed75-26dda543.eln* > -rwxr-xr-x 1 holger holger 18032 Oct 3 09:05 rfc6068-5e4d60aa-08220a90.eln* > -rwxr-xr-x 1 holger holger 28592 Oct 3 09:05 rfc822-a91daeff-9d287a67.eln* > -rwxr-xr-x 1 holger holger 140704 Oct 3 09:04 rx-627d8c83-8e412280.eln* > -rwxr-xr-x 1 holger holger 119264 Oct 3 09:05 sendmail-bcf4df3f-de9a20b1.eln* > -rwxr-xr-x 1 holger holger 28792 Oct 3 09:06 shadow-87c8aad9-fa6a3d65.eln* > -rwxr-xr-x 1 holger holger 49616 Oct 3 09:06 sort-14dd51e7-e6a8ba97.eln* > -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 > subr--trampoline-61626f72742d7265637572736976652d65646974_abort_recursive_edit_0.eln* > -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 > subr--trampoline-6d616b652d70726f63657373_make_process_0.eln* > -rwxr-xr-x 1 holger holger 16056 Oct 2 18:00 > subr--trampoline-73656c6563742d77696e646f77_select_window_0.eln* > -rwxr-xr-x 1 holger holger 16024 Oct 2 18:00 subr--trampoline-746f702d6c6576656c_top_level_0.eln* > -rwxr-xr-x 1 holger holger 49072 Oct 3 09:04 subr-x-02dfef32-177735b4.eln* > -rwxr-xr-x 1 holger holger 29264 Oct 3 09:05 text-property-search-db1383f6-ed2e2f1e.eln* > -rwxr-xr-x 1 holger holger 61032 Oct 4 21:08 thingatpt-6fc8a4ab-5c620eb5.eln* > -rwxr-xr-x 1 holger holger 56680 Oct 3 09:05 time-date-40951a48-f2fbd30f.eln* > -rwxr-xr-x 1 holger holger 31184 Oct 3 09:05 warnings-28e75f4d-02da775e.eln* > -rwxr-xr-x 1 holger holger 25088 Oct 3 09:05 yank-media-62540c94-43b16516.eln* > > But some files are still recompiled again and again. Here are two different output from the > "*Async-native-compile-log*" with two different invocations of "emacs -Q". And somehow the > cl-loaddefs.el.gz gets compiled twice: > > First one: > > Compilation finished. > Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz...done > Compiling /usr/local/share/emacs/29.0.50/lisp/thingatpt.el.gz... > uncompressing thingatpt.el.gz... > uncompressing thingatpt.el.gz...done > Compilation finished. > > (above file list is from this point-in-time) > > Next one: > > Compilation finished. > Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz...done > Compilation finished. > > But despite this, nothing ends up in the eln-cache: > > holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "cl-load*" > holger@holger:~$ cl-loaddefs.el has a "no-native-compile: t" cookie, so it's expected that you will not find it in the eln-cache. But all the other cl-*.eln files are there, as your list above shows. > But ... it's not only cl-loaddefs.el. My Emacs setup normally is Emacs Doom. So when I start Emacs without > -Q, I see that > > Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/pcase.el.gz... > uncompressing pcase.el.gz... > uncompressing pcase.el.gz...done > > pcase.el gets native-compiled. But later ... > > holger@holger:~$ find ~/.emacs.d/eln-cache/ -name "pcase*" > holger@holger:~$ > > .. doesn't find anything. So there seem to be more Emacs Lisp libraries that fall through the roster. What do you mean by "later"? Does pcase*.eln appear in the eln-cache, but gets deleted later, or does it never appear there? If you start "emacs -Q" and type "M-x load-library RET pcase RET", does pcase get compiled and deposited into your eln-cache? And what exactly is the role of "GNU Stow" in this? Did you try installing the Emacs you've built with just "make install" instead? From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 05 01:26:24 2022 Received: (at 58267-done) by debbugs.gnu.org; 5 Oct 2022 05:26:24 +0000 Received: from localhost ([127.0.0.1]:55619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofwvI-0005vB-Fy for submit@debbugs.gnu.org; Wed, 05 Oct 2022 01:26:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofwvG-0005uw-MB for 58267-done@debbugs.gnu.org; Wed, 05 Oct 2022 01:26:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:39546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofwvB-0004DY-FQ; Wed, 05 Oct 2022 01:26:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Z8YWiuqkT6wyCdGroCq3s6mW54yaO/S/3xTAOS0acj8=; b=SQO6TUpKGBQ8 v8auWBCxR71zvylsRhZAd1SNHCg/00mHsrhLtp/va7M1w+Q5B6v0YKj3YHWWE2qDVzXeHkgyIvvxI azLS2SkZRU0Paaeonls4LcqCUuMto2IyzeBkrXiPuWlXWzGCbtcDm4IVQbKidoVetSkCxVuOHBEai q4PT5FeMHHifetHgti7YMWRznAhlO6nqjzXYh/3us8VooGeEBLopPLQGH/kkJRqhhAadebJvMBjUP GCrqmzHYRKLtcAHilZ0hXWbH3d2d/9uCu953jgqRyMhz3orL2mGhM9UoSXpsmCdkHBuYTdgqR/u7v w3QS38aDY5KMEKjiCv9zTg==; Received: from [87.69.77.57] (port=4375 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofwvA-0005Cq-QK; Wed, 05 Oct 2022 01:26:17 -0400 Date: Wed, 05 Oct 2022 08:26:14 +0300 Message-Id: <83zgeau9hl.fsf@gnu.org> From: Eli Zaretskii To: Holger Schurig In-Reply-To: (message from Holger Schurig on Tue, 4 Oct 2022 22:13:24 +0200) Subject: Re: bug#58267: 29.0.50; Native-compiling the same files at every start References: <83wn9gyhnh.fsf@gnu.org> <831qrnv0dx.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58267-done Cc: 58267-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Holger Schurig > Date: Tue, 4 Oct 2022 22:13:24 +0200 > > > cl-loaddefs.el has a "no-native-compile: t" cookie, so it's expected > > Ah, okay. Still weird that the log claims that it's logged as if it is compiled: > > Compiling /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz... > uncompressing cl-loaddefs.el.gz...done > > Would I have read > > Uncompress /usr/local/share/emacs/29.0.50/lisp/emacs-lisp/cl-loaddefs.el.gz... > ...done. no-native-compile set, ignored > > then I wouldn't have wondered into this trap. > > > If you start "emacs -Q" and type "M-x load-library RET pcase RET", does pcase get compiled and > deposited into your eln-cache? > > Ah, that is the difference. Yes, this time it did. Previously it didn't. And the difference was ... I started > "emacs" without -Q for the pcase.el example. So I did start Emacs Doom, not vanilla Emacs. And Dooms > one sets different cache directories: > > > native-comp-eln-load-path is a variable defined in comp.c. > > > > Value > > ("/home/holger/.emacs.d/.local/cache/eln/" "/home/holger/.emacs.d/eln-cache/" > "/usr/local/stow/emacs/lib/emacs/29.0.50/native-lisp/") > > So the native-compiled pcase.el ended up in Doom's place, not in Emacs' place, where I did expect it. > > That also explains what I reported in my original post. > > * I started "emacs" (Doom) and noticed several files in the Async log > * Then I started "emacs -Q" and saw the same files again > * This was because Doom wrote the compiled ones into his directory, hidden from vanilla Emacs, and > vanilla Emacs had to compile them. Again. > * On top of that the cl-loaddefs file with the no-native-compile cookie confused me further > > So, sorry that I bothered you. This bug isn't a bug and can be closed. Thanks, I'm therefore closing this bug. From unknown Sun Jun 15 08:53:32 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 02 Nov 2022 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator