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#58267: 29.0.50; Native-compiling the same files at every start Date: Wed, 05 Oct 2022 08:26:14 +0300 Message-ID: <83zgeau9hl.fsf@gnu.org> References: <83wn9gyhnh.fsf@gnu.org> <831qrnv0dx.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39977"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58267-done@debbugs.gnu.org To: Holger Schurig Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 05 07:27:28 2022 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 1ofwwK-000ACQ-1m for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 07:27:28 +0200 Original-Received: from localhost ([::1]:34786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofwwI-0008MW-L1 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 05 Oct 2022 01:27:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofww2-0008KK-4S for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 01:27:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofwvu-0004Gh-VZ for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 01:27:08 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofwvu-0005w9-LC for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2022 01:27:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2022 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 58267 X-GNU-PR-Package: emacs Mail-Followup-To: 58267@debbugs.gnu.org, eliz@gnu.org, holgerschurig@gmail.com Original-Received: via spool by 58267-done@debbugs.gnu.org id=D58267.166494758422769 (code D ref 58267); Wed, 05 Oct 2022 05:27:02 +0000 Original-Received: (at 58267-done) by debbugs.gnu.org; 5 Oct 2022 05:26:24 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: (message from Holger Schurig on Tue, 4 Oct 2022 22:13:24 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:244485 Archived-At: > 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.