From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.devel Subject: Native compile: excessive recompilation? Date: Mon, 17 May 2021 15:05:06 -0400 Message-ID: <87a6otmba5.fsf@md5i.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38925"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon May 17 21:19:59 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 1liimV-0009xK-Ci for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 21:19:59 +0200 Original-Received: from localhost ([::1]:39294 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liimU-0004SP-Ax for ged-emacs-devel@m.gmane-mx.org; Mon, 17 May 2021 15:19:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liiYK-0003bg-L5 for emacs-devel@gnu.org; Mon, 17 May 2021 15:05:24 -0400 Original-Received: from md5i.com ([75.151.244.229]:51822) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liiYA-000882-R1 for emacs-devel@gnu.org; Mon, 17 May 2021 15:05:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=kwGaOTXInJ7SWMik7w8i9i6rSU9uOAxETgJRejBHte0=; b=HDojTR/bS1JWkTkm3ad06cNYxb m/lDphrpD6jVoIpFgfl875Howycbh89cftSujaI8Vq0xOL5V1onLuALUGB5hkMx4cnYdjr2tuCSon QGyS/RmRqI1N6+C/oi8LrZgd9; Original-Received: from abode.md5i.com ([192.168.177.1] helo=miko) by md5i.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1liiY6-007InE-Uq for emacs-devel@gnu.org; Mon, 17 May 2021 15:05:06 -0400 Received-SPF: pass client-ip=75.151.244.229; envelope-from=mwd@md5i.com; helo=md5i.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:269422 Archived-At: 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? If it can be confirmed that this is a bug, I'll submit a proper bug report. -- Michael Welsh Duggan (md5i@md5i.com)