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#46617: 28.0.50; nativecomp: native compile cache is not invalidated when file is re-byte compiled and changes Date: Wed, 31 Mar 2021 17:58:46 +0000 Message-ID: References: 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="11170"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Andrew Whatson , 46617@debbugs.gnu.org To: Aaron Jensen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 31 19:59:13 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 1lRf7Y-0002ns-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 19:59:12 +0200 Original-Received: from localhost ([::1]:49900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRf7X-0006kL-Lo for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 31 Mar 2021 13:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRf7Q-0006iC-8Q for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 13:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43942) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRf7Q-00017M-0f for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 13:59:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lRf7N-0003nR-Vc for bug-gnu-emacs@gnu.org; Wed, 31 Mar 2021 13:59:02 -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, 31 Mar 2021 17:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46617 X-GNU-PR-Package: emacs Original-Received: via spool by 46617-submit@debbugs.gnu.org id=B46617.161721352914575 (code B ref 46617); Wed, 31 Mar 2021 17:59:01 +0000 Original-Received: (at 46617) by debbugs.gnu.org; 31 Mar 2021 17:58:49 +0000 Original-Received: from localhost ([127.0.0.1]:55488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRf7B-0003n1-9Y for submit@debbugs.gnu.org; Wed, 31 Mar 2021 13:58:49 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:62606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lRf7A-0003ms-1E for 46617@debbugs.gnu.org; Wed, 31 Mar 2021 13:58:48 -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 12VHwkrO019068 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 31 Mar 2021 17:58:46 GMT In-Reply-To: (Aaron Jensen's message of "Wed, 31 Mar 2021 11:30:35 -0500") 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:203378 Archived-At: Aaron Jensen writes: > On Wed, Mar 31, 2021 at 5:22 AM Andrea Corallo wrote: >> >> Aaron Jensen writes: >> >> > On Mon, Mar 29, 2021 at 3:15 AM Andrea Corallo wrote: >> >> Compares against the .elc. >> > >> > For some reason, I do not see this behavior. Touching the elc files >> > and restarting does not trigger a recompile of the elns. >> >> That's odd, I do. > > Just tested again on master and it seems to work as it should. I must > be on an older build. > >> Okay I think I see what's the issue. >> >> We have changed the `load' semantinc and now when the a .elc file is >> explicitly requested for load we do not load the .eln even if present. >> But at this point we don't have to trigger the native compilation for >> that file. >> >> I'll come-up with a fix. > > Great, thank you. Right 613caa9527 should fix the described issue for me. I've also tried the straigh reproducer and I do not see recompilations during the second startup. Could you give it a try to verify it works for you too? Thanks! Andrea