From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Aaron Jensen 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: Mon, 29 Mar 2021 11:26:39 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28632"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrew Whatson , 46617@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 18:27:18 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 1lQujV-0007Kk-LB for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 18:27:17 +0200 Original-Received: from localhost ([::1]:38464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQujU-0002H7-L2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 12:27:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQujH-0002Ef-GO for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQujG-0002hf-Ms for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQujG-0003S7-KX for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 16:27:02 +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.161703522213263 (code B ref 46617); Mon, 29 Mar 2021 16:27:02 +0000 Original-Received: (at 46617) by debbugs.gnu.org; 29 Mar 2021 16:27:02 +0000 Original-Received: from localhost ([127.0.0.1]:49424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQujF-0003Ri-Ds for submit@debbugs.gnu.org; Mon, 29 Mar 2021 12:27:01 -0400 Original-Received: from mail-yb1-f170.google.com ([209.85.219.170]:40452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQujA-0003R9-Gq for 46617@debbugs.gnu.org; Mon, 29 Mar 2021 12:26:59 -0400 Original-Received: by mail-yb1-f170.google.com with SMTP id a143so14351195ybg.7 for <46617@debbugs.gnu.org>; Mon, 29 Mar 2021 09:26:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=r0cODJzyfjZ2dDAfz7BT3YENiiFoqIKssjtcUzIfhTs=; b=VUeOu/0mTyBqKaDBq/C5pQNvweYBlMF/ISRp+ivYZwbGy4jksXJLi1RkMJjqPk3582 8EplG54hV6PefuhkOsYb1gaT6oSkGdr7oEGeF5TKjeBG5IdWrWAofQ6ZFoOUBfk/U7LH FQqNMqN1v7xnnL7neOZMYfQfcrO4+w/dSK3HHYObYRdLVIqWQKaYC77QHbWAtSFOBVPJ UnR0sJyFhdzsiWkfVUhrDY+bRwNq4Ua7Lkg3kwAFMdrua7p0jPtmOoni5thfBbx+ic4H KG5zwEmRrkBwnx3XGdIz6X8Dzu6evEj3HZBkimzbUj7esSI+iG2O1dynFtNkz72Dfwzo 9QDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=r0cODJzyfjZ2dDAfz7BT3YENiiFoqIKssjtcUzIfhTs=; b=OZh1kScoSSoTKc36/g6xLzBbbs2iEOP7r2L5WVbBSbLyr5LYaCieZegth78S92Qcem tQeZdfhndV3PJ0HzO+JoKCLtmxs0CSxowy6d+OBnjB3ckzhx+oV//utiod/NMZe7f286 1dZ7/puGatitQuWxgMcoQskFK1/Qak9anFCiPl9uMDpxBOhxnfWRmO34tRcZfJGJauKr oK4pPY4eEINgymjdNcnXgZAyAIrrUymzEh+cNvXisle3tIMfBSHgTJ2idhuYqC070svY voP/54kl+XVoOthtIhKMSv8/LINL3rasnw43kknhp72XpCh+/qDe/zM/YQzpclZG/MJo N+1A== X-Gm-Message-State: AOAM531K695EH+L+Fsc+4H6V/NKIaSroSvYbqMeAGWSgaekXwpaz4uhT AfZVmxdYYlJUds1vRwx9XMMFHj3JggEiXSNXloo= X-Google-Smtp-Source: ABdhPJzqzPQW4T1x5ghTrgpBw/VqkiS46k7G6UBsprigzr9l5yT9dXO57scYl/P+Hu7dvhxpTkascKfFM8PQlAPJeE4= X-Received: by 2002:a25:6fc6:: with SMTP id k189mr37837856ybc.171.1617035210915; Mon, 29 Mar 2021 09:26:50 -0700 (PDT) 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:203257 Archived-At: 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. > Do you have a reproducer I can look at? Yes, you can follow straight.el's installation instructions. Create a new .emacs.d/init.el with: (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) (bootstrap-version 5)) (unless (file-exists-p bootstrap-file) (with-current-buffer (url-retrieve-synchronously "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" 'silent 'inhibit-cookies) (goto-char (point-max)) (eval-print-last-sexp))) (load bootstrap-file nil 'nomessage)) Load emacs, let it install straight and do all native compilation. Restart emacs. It will recompile straight.el every time you restart. It will also recompile every time you do: (load "~/.emacs.d/straight/repos/straight.el/straight.elc" nil 'nomessage 'nosuffix) One thing of note here is that because of the way straight works there ends up being two straight.elc files. One in straight/build/straight and another in straight/repos/straight.el. The former has a straight.el that symlinks to the latter, but the straight.elcs are both concrete. If you attempt to load the one in build, multiple "Compilation finished." messages get written to the Async-native-compile-log, which is odd as well: (load "~/.emacs.d/straight/build/straight/straight.elc" nil 'nomessage 'nosuffix) Thanks, Aaron