From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62762: 'make' often errors with "Org version mismatch" after pulling a new version of the code Date: Fri, 05 May 2023 14:17:40 -0400 Message-ID: References: <17b74a48-94e1-9106-cc79-d31972313910@gutov.dev> <837cujaqzq.fsf@gnu.org> <87wn2ilwed.fsf@localhost> <83zg7ealrd.fsf@gnu.org> <87pm8a8dx4.fsf@localhost> <87pm7vt0mx.fsf@localhost> <87cz3k8i27.fsf@localhost> <87sfcfdldt.fsf@localhost> <87bkj1g10g.fsf@localhost> <1c5d0ff0-5bae-1123-d2f7-64d9013fbc0f@gmail.com> <6070e598-7dee-1b7a-7f97-26a90618cb7a@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17677"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, Alan Mackenzie , Eli Zaretskii To: Max Nikulin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 20:18:21 2023 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 1pv00a-0004O1-ET for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 20:18:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pv00K-0002aI-M0; Fri, 05 May 2023 14:18:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pv00J-0002Zr-9P for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 14:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pv00J-00027Z-0h for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 14:18:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pv00I-0002nb-Gj for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 14:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 18:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62762 X-GNU-PR-Package: emacs Original-Received: via spool by 62762-submit@debbugs.gnu.org id=B62762.168331067110742 (code B ref 62762); Fri, 05 May 2023 18:18:02 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 5 May 2023 18:17:51 +0000 Original-Received: from localhost ([127.0.0.1]:57454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv006-0002nB-Ru for submit@debbugs.gnu.org; Fri, 05 May 2023 14:17:51 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:8748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pv005-0002my-4z for 62762@debbugs.gnu.org; Fri, 05 May 2023 14:17:49 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7C310100485; Fri, 5 May 2023 14:17:43 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id E60EC1000B9; Fri, 5 May 2023 14:17:41 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1683310661; bh=BSqsn4eBKZgnVnBO5G2/n9gnZ0dTMkPw16mZYnyaWug=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=j1HQ9rqcRe0OBu8xObM8omZ1YCmX6o0lOg/1dYRAiKW5Fkhf92Jboe2GnHHdVEX0F 7ReqEGAR7s+K0UlI/0oAmzEZEmoBJy6wBT8KNlz1oH76L3c/IuF7f8QQeki+uNc43d swprraUPpIzljEesfceKTXWN2pBi1RdRxkM2C5jihomOgZMPNvZuoEjnjfZ7CpLUB4 BcvALDCHq5OH6VJwBFlxsxy0Afg+idXNeqTyyj6XaBW/9CHxRnHcEf/nEz0xMm3nuO oPuHXW65TQiVr8/9n/H9VGs7AVXPBHdLc1um9a516W2d/Sr/oWEkFgTFP7sx6Cd0aQ Sht3IprK3R0Nw== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id ACE381208E2; Fri, 5 May 2023 14:17:41 -0400 (EDT) In-Reply-To: (Max Nikulin's message of "Fri, 5 May 2023 23:37:36 +0700") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:261135 Archived-At: > I have no ideas how to make `org-assert-version' better. `my-require-with-shadow-check' is a suggestion to make it better. And this sub-thread of the bug report was presumably your answer to the question by Ihor: Max, do you see any obvious downsides in Stefan's idea about consulting `load-history' vs. `load-path'? So are you saying that you don't think it's better? If so, do you also think it's worse, and if so, in which respect? > I had a hope that dependency generation may solve compiling issue, It won't solve the mixed-version problem. Incremental recompilation (i.e. `git pull; make`) is a qualitatively different problem from the mixed-version problem, and by now, I'm pretty much convinced that there just isn't a solution that fixes both: they may look somewhat similar from a distance, but they're fundamentally quite different. Currently `org-assert-version` has no effect for `git pull; make` in Emacs sources, so it's presumably focused on the mixed-version problem. And I think that for this problem `my-require-with-shadow-check' is a better check (e.g. it will also work when none of the files are compiled). > but I can not figure out what sort of circular dependencies is > troublesome. I just must believe you and Eli. I'll refrain from discussing this here. Incremental recompilation problems should be discussed in another bug report, IMO. Stefan