From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 09:46:50 +0300 Message-ID: <831qjvjmw5.fsf@gnu.org> 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> <64a61548-e343-992f-d193-d8ff4fe0623b@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: yantar92@posteo.net, 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, monnier@iro.umontreal.ca, acm@muc.de To: Max Nikulin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 08:47:18 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 1pupDp-0001qT-VR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 08:47:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pupDc-0006KZ-Hq; Fri, 05 May 2023 02:47: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 1pupDa-0006Ja-DE for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 02:47:02 -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 1pupDa-00015k-3I for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 02:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pupDZ-0008PX-Uc for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 02:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 06:47:01 +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.168326916632228 (code B ref 62762); Fri, 05 May 2023 06:47:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 5 May 2023 06:46:06 +0000 Original-Received: from localhost ([127.0.0.1]:53011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pupCg-0008Ni-5g for submit@debbugs.gnu.org; Fri, 05 May 2023 02:46:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pupCe-0008Mw-Sb for 62762@debbugs.gnu.org; Fri, 05 May 2023 02:46:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pupCY-0000z5-FC; Fri, 05 May 2023 02:45:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xvR40sWySTj+4/nNqzCcquFthjn2W/a0B89berPCqHk=; b=kjkvJkURb65w KJUIPPyAP/SKlYShK/mn5uQW7hhrIr8nCBSoDdDxnarnLstiwcdtDXgZ3eBKfJHPyY/QqTmelSWkp VEcN6HUDKrfoiVWNjDRjZu5ECF0VklvXmRhSUDgYEyjK+8JRqS7Cbg/YOT6EjdiReG88ccrCqu4hS 5OGb+aAmuYtN/hc52xMMATCkx+G3TNXWpowFfbAj2qTzAJgJCgKhthA2aE57l4C9BOEMA7DnR4V5h Riww6/0kt6E0FSzMNUmZCATNAw9WCXAzkBSezAttJbxVhrKvBOHcQsR6Li1NHFpChfegTwnFregms mRMDFpSNvePlNWefhDEG0Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pupCX-0000k0-U1; Fri, 05 May 2023 02:45:58 -0400 In-Reply-To: <64a61548-e343-992f-d193-d8ff4fe0623b@gmail.com> (message from Max Nikulin on Fri, 5 May 2023 12:27:25 +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:261069 Archived-At: > Date: Fri, 5 May 2023 12:27:25 +0700 > From: Max Nikulin > Cc: Ihor Radchenko , Eli Zaretskii , > bzg@gnu.org, dmitry@gutov.dev, 62762@debbugs.gnu.org, > Alan Mackenzie > > I have realized that neither `load-prefer-newer' not checking hash of > the source .el file can help per se when an .elc file becomes stale due > to update of a macro in a require'd file. Yes. > The robust way is to define compilation order through dependencies, > preferably autogenerated ones). This doesn't work in Emacs, in general, due to circular dependencies. > An alternative is to hope that usually it does not hurt and you are > ready to remove .elc files (e.g. by make bootstrap) when you faced > an apparent error or just suspect mixed version compilation as the > cause of noticed strange behavior (I named this broken incremental > builds). That's what we have been doing for ages, and it generally works well.