From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48497: 28.0.50; Native compile: excessive recompilation Date: Wed, 19 May 2021 13:10:10 +0000 Message-ID: References: <87sg2kjhsj.fsf@md5i.com> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17309"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 48497@debbugs.gnu.org To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 15:42:19 2021 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 1ljMSo-0004NU-1r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 15:42:18 +0200 Original-Received: from localhost ([::1]:57306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljMSn-0007WH-3B for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 09:42:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljLyY-00048d-3c for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46844) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljLyX-0003Sg-Ql for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:11:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljLyX-0000Vg-M6 for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 09:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48497 X-GNU-PR-Package: emacs Original-Received: via spool by 48497-submit@debbugs.gnu.org id=B48497.16214298191899 (code B ref 48497); Wed, 19 May 2021 13:11:01 +0000 Original-Received: (at 48497) by debbugs.gnu.org; 19 May 2021 13:10:19 +0000 Original-Received: from localhost ([127.0.0.1]:58388 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljLxp-0000UW-85 for submit@debbugs.gnu.org; Wed, 19 May 2021 09:10:19 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:56163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljLxl-0000UH-OC for 48497@debbugs.gnu.org; Wed, 19 May 2021 09:10:16 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 14JDAAak004277 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 19 May 2021 13:10:11 GMT In-Reply-To: <87sg2kjhsj.fsf@md5i.com> (Michael Welsh Duggan's message of "Tue, 18 May 2021 09:25:00 -0400") 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:206884 Archived-At: Michael Welsh Duggan writes: > The problem is that it seems as if standard Emacs lisp files from the > installed base Emacs lisp library are getting recompiled in the user's > emacs eln cache despite there being an existing native-compiled version > installed. > > First, I did a fresh out-of-tree build from master using the following > procedure: > > The git worktree is in a directory called "master". > > cd master > ./autogen.sh > mkdir ../build > cd ../build > mkdir -p ~/tmp/emacs/config > ../master/configure --without-toolkit-scroll-bars --with-x-toolkit=lucid \ > --with-native-compilation --prefix=~/tmp/emacs > make -j 32 NATIVE_FULL_AOT=1 bootstrap > make NATIVE_FULL_AOT=1 install > > I verified that there was a directoy, > ~/tmp/emacs/lib/emacs/28.0.50/native-lisp/28.0.50-6152138a, which > contained 1382 .eln entries. > > I then started emacs like this, after first making sure there is no > "~/.emacs.d" directory or symlink in my home directory: > > XDG_CONFIG_HOME=~/tmp/emacs/config ~/tmp/emacs/bin/emacs -Q > > At this point, ~/tmp/emacs/config was empty. I then typed `C-h i', > starting info. This started some native compilation in the background. > After waiting for the compilation (viewed in top) to settle, there was a > directory, ~/tmp/emacs/config/emacs/eln-cache/28.0.50-6152138a, which > contained the following .eln files: > > bytecomp-12882072-1f232d0e.eln comp-cstr-ef162ef7-c492cd97.eln > byte-opt-9c5f25f5-26e670d7.eln gv-e0cf7478-ce8290a8.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-bc4ef696.eln seq-c314b42f-4e726806.eln > cl-seq-f464c4e2-95d0eb23.eln subr-x-02dfef32-04f2924b.eln > comp-7672a6ed-d617b299.eln warnings-28e75f4d-c98d4e00.eln > > I verified that versions of these files existed in > ~/tmp/emacs/lib/emacs/28.0.50/native-lisp/28.0.50-6152138a, which they > did, but the first hash differs in each case, and the file sizes are > completely different. > > Hopefully this is enough information to recreate the behavior. Thanks it is, I can reproduce this. Andrea