From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62136: 30.0.50; byte-compiled init.el loads correctly, but native compiled init.eln loads incompletely Date: Sun, 12 Mar 2023 09:24:41 +0200 Message-ID: <83lek2v3d2.fsf@gnu.org> References: <87zg8i1ruo.fsf@everybody.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39607"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62136@debbugs.gnu.org To: "Mark A. Hershberger" , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 12 08:26:24 2023 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 1pbG63-000A6u-Vj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Mar 2023 08:26:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbG5j-0002H1-Pw; Sun, 12 Mar 2023 03:26:03 -0400 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 1pbG5i-0002GT-Jb for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 03:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbG5i-0004Uo-9b for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 03:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pbG5h-0001VS-Um for bug-gnu-emacs@gnu.org; Sun, 12 Mar 2023 03:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Mar 2023 07:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62136 X-GNU-PR-Package: emacs Original-Received: via spool by 62136-submit@debbugs.gnu.org id=B62136.16786059055723 (code B ref 62136); Sun, 12 Mar 2023 07:26:01 +0000 Original-Received: (at 62136) by debbugs.gnu.org; 12 Mar 2023 07:25:05 +0000 Original-Received: from localhost ([127.0.0.1]:59029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbG4n-0001UF-Bi for submit@debbugs.gnu.org; Sun, 12 Mar 2023 03:25:05 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pbG4l-0001Tf-Hn for 62136@debbugs.gnu.org; Sun, 12 Mar 2023 03:25:04 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbG4f-00048z-BE; Sun, 12 Mar 2023 03:24:57 -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=dxSUYtjJ5bH1RFwGEr3CIBlxA2A05VQ3lWimtAqmcjk=; b=WY1yb+BLHsxN eCaYw0BtXIbvKIc8b8xKbnCfsY0e8leKDD840m8xxGhoCwkPnCRpDDL33XKFEqpNhorZIYMDFqoOM fAoVIYhNAeoS8WRdGZBmX5gqWrtCBuhxwRDS2qkmosImljjq+dks+YZZXHECsCyDg93PpSEbRssL3 ASs3aQdLtNK/6f+orVH8OncjSZ0e+2YxcKv4SuZV2AEn8UPSUt76xuKAeGZDqXt8ze2golI4WkIZk 0lgowdJVgS/eO8DZ940jKrodrG5G6SGPWLTdW8TmleoZzDswznts8pPr1i87+Qjvyjg6XY5Y6I+3A guqGlP7dyzkzelB95qgxVQ==; Original-Received: from [87.69.77.57] (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 1pbG4e-00051O-3b; Sun, 12 Mar 2023 03:24:56 -0400 In-Reply-To: <87zg8i1ruo.fsf@everybody.org> (bug-gnu-emacs@gnu.org) 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:257837 Archived-At: > Date: Sun, 12 Mar 2023 00:06:07 -0500 > From: "Mark A. Hershberger" via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > For a while now, I've had to re-byte-compile init.el to get it to work > correctly. Today, I tracked down the problem to an incorrectly compiled > .eln file. > > My init.el is probably over-large and takes 8s to load normally. But > once it loads normally, a native compilation copy is created in > ~/.emacs.d/eln-cache and subsequent loads take only 3s. Which would be > great if it were working, but the loading is incomplete because things > like the theme are not loaded. Erasing the init-*.eln file under > ~/.emacs.d/eln-cache allows emacs to load properly using the > byte-compiled file. Example run: > > $ find ~/.emacs.d/ -mtime -0.002 -ls > 17171430 4 drwxr-xr-x 26 mah mah 4096 Mar 11 22:22 ~/.emacs.d/ > 17566126 4 drwx------ 2 mah mah 4096 Mar 11 22:22 ~/.emacs.d/auto-save-list > 19674336 36 drwxr-xr-x 2 mah mah 36864 Mar 11 22:21 ~/.emacs.d/eln-cache/30.0.50-29d0097a > 19693480 68 -rwxr-xr-x 1 mah mah 66280 Mar 11 22:21 ~/.emacs.d/eln-cache/30.0.50-29d0097a/init-1f8fd1e4-78889c62.eln > 17171381 168 -rw-r--r-- 1 mah mah 169284 Mar 11 22:22 ~/.emacs.d/ido.last > 17174597 4 drwxr-xr-x 2 mah mah 4096 Mar 11 22:21 ~/.emacs.d/transient > 17174599 4 -rw-r--r-- 1 mah mah 2019 Mar 11 22:21 ~/.emacs.d/transient/history.el > 17189836 168 -rw-r--r-- 1 mah mah 169284 Mar 11 22:21 ~/.emacs.d/ido.last~ > 17171265 4 drwxr-xr-x 4 mah mah 4096 Mar 11 22:22 ~/.emacs.d/straight > 17175288 548 -rw-r--r-- 1 mah mah 558574 Mar 11 22:22 ~/.emacs.d/straight/build-cache.el > $ rm ~/.emacs.d/eln-cache/30.0.50-29d0097a/init-1f8fd1e4-78889c62.eln > $ # emacs properly started > $ # exit emacs > $ find ~/.emacs.d/ -mtime -0.002 -ls > 17171430 4 drwxr-xr-x 26 mah mah 4096 Mar 11 22:23 ~/.emacs.d/ > 17566126 4 drwx------ 2 mah mah 4096 Mar 11 22:23 ~/.emacs.d/auto-save-list > 19674336 36 drwxr-xr-x 2 mah mah 36864 Mar 11 22:23 ~/.emacs.d/eln-cache/30.0.50-29d0097a > 19692826 68 -rwxr-xr-x 1 mah mah 66280 Mar 11 22:23 ~/.emacs.d/eln-cache/30.0.50-29d0097a/init-1f8fd1e4-78889c62.eln > 17189836 168 -rw-r--r-- 1 mah mah 169284 Mar 11 22:23 ~/.emacs.d/ido.last > 17174597 4 drwxr-xr-x 2 mah mah 4096 Mar 11 22:23 ~/.emacs.d/transient > 17174599 4 -rw-r--r-- 1 mah mah 2019 Mar 11 22:23 ~/.emacs.d/transient/history.el > 17171381 168 -rw-r--r-- 1 mah mah 169284 Mar 11 22:22 ~/.emacs.d/ido.last~ > 17171265 4 drwxr-xr-x 4 mah mah 4096 Mar 11 22:23 ~/.emacs.d/straight > 17175288 548 -rw-r--r-- 1 mah mah 560242 Mar 11 22:23 ~/.emacs.d/straight/build-cache.el > $ # emacs started without proper execution > > FWIW, the theme is loaded using use-package: > > (use-package spacemacs-common > :straight (:host github :repo "nashamri/spacemacs-theme") > :init > (mah/show-load-time "loading spacemacs") > (load-theme 'spacemacs-dark t) > (mah/show-load-time "done loading spacemacs") > :ensure t) > > The mah/show-load-time messages do not show up in the *Messages* buffer > when during loads of the .eln file. Thank you for your report. However, having read the description, I don't think I understand what is the problem in your case. You say some .eln file is compiled incorrectly, but what are the symptoms of that incorrectness? You say "things like the theme are not loaded", but don't tell what exactly is not loaded and don't show the evidence and symptoms of those parts which don't load. IOW, please be more specific about the problems and provide more details about the actual problems you see. Bonus points for posting a recipe to reproduce the problem with the minimal init.el file (and any other files that are absolutely necessary for reproduction). It would be also beneficial to take unnecessary 3rd-party packages out of the equation. So if you can reproduce the problem without Spacemacs, without 'straight', and without use-package, it will make our job of investigating the problem easier. Long story short: try to make the scenario as simple and with as few actors as possible, and then post a complete and detailed description of what goes wrong in that scenario. > I saw https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43969 which has some > similarities, but there is more missing thand just the spacemacs theme. > This makes me think that it isn't just a matter of missing requires. Do you see any relevant error messages in *Messages* or any warnings in *Warnings* buffers?