From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Trey Peacock Newsgroups: gmane.emacs.bugs Subject: bug#47337: 28.0.50; [feature/native-comp] Compilation over and over again Date: Wed, 24 Mar 2021 15:15:47 +0000 Message-ID: <874kh07g5d.fsf@treypeacock.com> References: <8735wls1hj.fsf@treypeacock.com> Reply-To: Trey Peacock Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24519"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Konstantin Reich , 47337@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 24 16:17:24 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 1lP5G8-00069u-Ab for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Mar 2021 16:17:24 +0100 Original-Received: from localhost ([::1]:44980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lP5G7-000411-DH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 24 Mar 2021 11:17:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lP5Fm-00040s-Jb for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 11:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lP5Fm-0000lC-Br for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 11:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lP5Fm-00028Z-6Q for bug-gnu-emacs@gnu.org; Wed, 24 Mar 2021 11:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Trey Peacock Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Mar 2021 15:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47337 X-GNU-PR-Package: emacs Original-Received: via spool by 47337-submit@debbugs.gnu.org id=B47337.16165989648138 (code B ref 47337); Wed, 24 Mar 2021 15:17:02 +0000 Original-Received: (at 47337) by debbugs.gnu.org; 24 Mar 2021 15:16:04 +0000 Original-Received: from localhost ([127.0.0.1]:35798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lP5Ep-00027B-Ss for submit@debbugs.gnu.org; Wed, 24 Mar 2021 11:16:04 -0400 Original-Received: from mail-40134.protonmail.ch ([185.70.40.134]:38846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lP5En-00026S-Ou for 47337@debbugs.gnu.org; Wed, 24 Mar 2021 11:16:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=treypeacock.com; s=protonmail3; t=1616598955; bh=y8rhFz9or6tgzSd6MiFZOi4lmbndwrge1fitZ27rY6g=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=gsWwtis98Z5CWo5HJ63zNCDPA9FQddFOv4W0Sbkm858Y4F7Yp/mw2cm3eb/1texiL MFpboOZIDvN9gzZjdKMooLemhVVz2EcNDdL+b7gw29WW7vlM5dMQhMVRrVampxr4xr zK2FArCdAGXLvpVLa2IGpc0Q5PPEsuMyh3P0AtYB+nB43SKUrR0+VAuMcqf+JTY/+7 G7Q4BIKVa3PqD+jKP2lh1AUfyMqZZOcYnOdSR8OQhvR8kc4UkfP8Yle1U/3IVT+mEX 0efgPH/kLxSANdDFqL9X2XmxKbmQ11TGHkcAaCzH9ywICQLpk6wjbaUJ2tEJDrGoqK LeWWdJpcXk8qQ== In-Reply-To: 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:202950 Archived-At: "Andrea Corallo" writes: > Trey Peacock writes: > >> Eli Zaretskii writes: >> >>>> From: Konstantin Reich >>>> Date: Tue, 23 Mar 2021 11:42:42 +0300 >>>> >>>> With recent update, Emacs re-compiles all files over and over again. >>>> So for example in the directory ~/.emacs.d/eln-cache/28.0.50-da68e688 >>>> I have file "seq-c314b42f-92293e32.eln". I start emacs and the file is >>>> compiled again. As a result, I have the same file with the >>>> updated timestamp in the same directory. >>>> >>>> >>>> Moreover, I have compiled emacs with "NATIVE_FULL_AOT=3D3D1". So i alr= ead=3D > y have >>>> the same file in : >>>> /usr/local/lib/emacs/28.0.50/native-lisp/28.0.50-da68e688/ >>>> Still, every time i start emacs, it starts to recompile all files. >>>> >>>> It is never ending cycle of compilation. >>> >>> My problem starts even earlier: dumping Emacs as part of the build >>> doesn't seem to load the preloaded *.eln files, but the *.elc files >>> instead (or at least it doesn't announce the fact that "native >>> compiled lisp" file is loaded), although I do have all the freshly >>> compiled *.eln files under native-lisp/. >>> >>> >>> >>> >> >> I am also experiencing this issue. I've found my comp-eln-load-path >> value is '("~/.emacs.d/eln-cache/" "../native-lisp/"). Notably, the >> system variable looks incorrect since based off the invocation-directory >> it would mean my native-comp files are in /usr/native-lisp/. > > Could you be more specific on what's the value of you > `invocation-directory' and where the eln is located? > > Thanks > > Andrea comp-eln-load-path: ("~/.emacs.d/eln-cache/" "../native-lisp/") invocation-directory: "/usr/bin" comp-eln-load-path-eff: ("/home/trey/.emacs.d/eln-cache/28.0.50-1a5c4fab" "/usr/native-lisp/28.0.50-1a5c4fab") Per comp.c it seems like the comp-eln-load-path isn't being updated from th= e temporary value it is assigned for bootstrap. Also, as a side note the docstring for comp-eln-load-path still references comp-load-path which should be changed to comp-eln-load-path.