From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: feature/native-comp, comp-deferred-compilation: no recompilation when .elc newer than .eln? Date: Fri, 15 May 2020 23:57:01 +0200 Message-ID: <877dxczwsy.fsf@no.workgroup> References: <875zcxgx8f.fsf@no.workgroup> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="4167"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 15 23:59:59 2020 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 1jZiN5-0000z5-AU for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 23:59:59 +0200 Original-Received: from localhost ([::1]:44024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZiN4-0007p2-9o for ged-emacs-devel@m.gmane-mx.org; Fri, 15 May 2020 17:59:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZiKP-0007HU-Or for emacs-devel@gnu.org; Fri, 15 May 2020 17:57:13 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:43691) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZiKL-0007v6-AM for emacs-devel@gnu.org; Fri, 15 May 2020 17:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1589579826; bh=2Pe2gu1NyzfiWoCpTMN1XaCqJBgtQV8t7W0jizLULss=; h=X-UI-Sender-Class:From:To:Subject:In-Reply-To:References:Date; b=ItemfNaRW3kqjvhTSp9IDtjkaaKizeUMKRJ63J7IqRP/3WrjVeqYYlP+TNOVQaUqO bbB/KAE1szaOOVuHhbqaA1m3FhViKuSORph1qghQFyohfJbHUJc5wjcdwJjMxkWKtq jTpDs+033NK4PsuEF2Xxgf543OP4ygwWDVIqQSBQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from no.workgroup ([46.94.155.64]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ml6qC-1iobOf3XcC-00lYyd; Fri, 15 May 2020 23:57:05 +0200 In-Reply-To: Mail-Followup-To: emacs-devel@gnu.org X-Provags-ID: V03:K1:ezxUc7MdBx+Dqm8NBBiMi5xgWLeOdXKgfXNWQzf/px+dd4Xd5WV Ve5FmTyWWhIZEzkqBthT5DhI9RrB3RuHwfqSvisPX8Su6Q+/wxxdozGRUGoTjX9oqM9ZVyq LEu4Xaydjpk8Z0xCm+T2cTaK0kdi+wM+ld3a65p26tXSCLxACVg/seeaoCuj34ktXeE1qYa GhlK++XlV8YIXXL8bURlA== X-UI-Out-Filterresults: notjunk:1;V03:K0:SnGlaQJK8ts=:12rw5jUwUIpSq6tfaRrZac Mkkk+vEKtESTTYuT+XXA3TVwcGka3jjfwg9fw+EsQC9HITQ2gGvesRPfz/9lke5pj8LM6J37H nd7Cy7a9YetpU9VicLAiHcKa6E6Xo/Lf26c555zbH+EmAN5IQ+3hugv1oh4Fr57h6LJZiF3VJ GWuS1aOeIKjjEmq9XAQwnOQFTvUSwk0w+zierozq6ELVHQ5pVkEnGmU5iQmQX9pPdBTIVqgyB nRtbG646poqSslcYbBZA47JklTrmw4TCXZu3Uf663dUaSvTis04jS6nTa7SnCQctJrdF92NaC 0CeamhLiEYIrHj/5gkJoTPqie8+qsJpBE36C++qjMMQ2dCj6hoR48azmJALwAN+oMtF4t0Sd1 VsvJiEkzSpuAyO06ZuMMhDfx3haVrlViovEyZ/uyjdexKAoQWXuOgrm6Uo8kKuccL4u2HzPh1 dY0el3gLj0m/hYkcRuiOB+bCFNkZY0qujAaz7p99srbzM8HX6ZQ27dI9sR1v4Vr5l6smuG51B ldzX7B5hzGtXEjwZ+Gzym8of1Q/NcnDtlUg1M/QPXpd0uMIHzdjgKZEEwiUkLHqR/NaT/mo9j G+YeA8Gg4fwDJPhXaYRCL0qHYwBrTmYwWzXAo1UKw069MTjo6WasqiLsXyIFtZ5Yn77kFE/NT 9U8Sd5cfcVNACGecI7P93dpXxkKcDhtGf08ghc8IlNMvIekdFgvSfEbf8D1FDNMjwJpeeVIJf SPqAFIfaZFe4hGe6MbDY2nVcxuZI0UiU5mQWiLIHPN/xAL9fS6sUN3xFfTVjWef17usGFqim Received-SPF: pass client-ip=212.227.17.22; envelope-from=telegraph@gmx.net; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/15 17:57:06 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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:250433 Archived-At: Hi Andrea, * Andrea Corallo [2020-05-15; 19:43]: > Gregor Zattler writes: >> I gave feature/native-comp in combination with >> `comp-deferred-compilation` a try. I use org-mode from git >> master and it's .elc files eventually were compiled to .eln >> files. Works like a charm. >> >> Then I updated org-mode (make update) since there was a (for >> me) important bug fix. Now org.elc is newer than org.el >> which in turn is newer than org.eln. >> >> But nonetheless the org.eln file does not get re-created >> according from the newer org.elc file. >> >> Is this on purpose? > I'm not sure the sequence of events is clear to me, especially how the > the new org was loaded after it was compiled calling make. I use org-mode from git. Org-mode has a build system and esypecially `make up1` does a git pull, compile , builds documentation and runs checks. I do this from time to time. The relevant part of the git repo is in my emacs load-path: (add-to-list 'load-path (expand-file-name "~/src/org-mode/lisp")) (setq load-path (cons "~/src/org-mode/contrib/lisp/" load-path)) > Deferred compilation logic to date works as follow: if an elc is being > loaded, is lexical and the corresponding source is found, then an async > compilation is queued. No file date is taken in account. > > Is it possible that the old eln is still being loaded because > load-prefer-newer is nil? load-prefer-newer is t in my case. The stale org.eln file was loaded instead of the newer org.elc and the newer org.elc wasn't compiled to a newer org.eln file. I realized because I experienced a specific bug although there was a patch with a fix in the repo. Thanks, Gregor