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.devel Subject: Re: Native compile: excessive recompilation? Date: Mon, 17 May 2021 22:37:52 +0300 Message-ID: <83tun1rw1b.fsf@gnu.org> References: <87a6otmba5.fsf@md5i.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Michael Welsh Duggan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 17 21:47:33 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lijDA-0005JF-P8 for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 21:47:32 +0200 Original-Received: from localhost ([::1]:34346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lijD9-0008LS-6F for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 15:47:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lij3o-0001DZ-Cg for emacs-devel@gnu.org; Mon, 17 May 2021 15:37:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59538) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lij3n-0003AY-SD; Mon, 17 May 2021 15:37:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4354 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 1lij3m-0003CZ-RD; Mon, 17 May 2021 15:37:51 -0400 In-Reply-To: <87a6otmba5.fsf@md5i.com> (message from Michael Welsh Duggan on Mon, 17 May 2021 15:05:06 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:269427 Archived-At: > From: Michael Welsh Duggan > Date: Mon, 17 May 2021 15:05:06 -0400 > > I, from scratch, built Emacs with native compilation and built and > installed using NATIVE_FULL_AOT=1. There is indeed a > /usr/local/lib/emacs/28.0.50/native-lisp dir with a directory that > contains the natively-compiled files. However, if I start emacs, even > with -Q, from a fresh user, files get compiled and put into the user > native compilation cache (~/.emacs.d/eln-cache/...). Has anyone else > noticed this? Or have I just made a mistake somewhere when testing > this? > > If I use emacs -Q and do `C-h i', I get compilations for the following > files: > > bytecomp-12882072-ffdd30ae.eln comp-cstr-ef162ef7-c492cd97.eln > byte-opt-9c5f25f5-b7c94b77.eln gv-e0cf7478-eac584a4.eln > cconv-3b1f1f98-ac4628a4.eln help-mode-d4dbae3d-034e8cf5.eln > cl-extra-d7051cba-ff815ded.eln info-ce12c0ca-3d2b00fd.eln > cl-lib-8b938900-fbcee53d.eln rx-627d8c83-18b6598f.eln > cl-macs-7ae82f81-d9748b96.eln seq-c314b42f-4e726806.eln > cl-seq-f464c4e2-95d0eb23.eln subr-x-02dfef32-04f2924b.eln > comp-7672a6ed-56d0b5ab.eln warnings-28e75f4d-c98d4e00.eln > > I would have thought that it would use the ones in > /usr/local/lib/emacs/28.0.50/native-lisp instead of recompiling them? It could be because the abi-hash was modified due to changes elsewhere in Emacs (e.g., addition of new primitives). Did Emacs create a new subdirectory in ~/.emacs.d/eln-cache? > If it can be confirmed that this is a bug, I'll submit a proper bug > report. Yes, a bug report would be good.