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: Sat, 22 Apr 2023 12:49:54 +0300 Message-ID: <83o7ng1c1p.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> <8335569rs7.fsf@gnu.org> <87jzyi8cu2.fsf@localhost> <83wn2i8bht.fsf@gnu.org> <875ya18oaz.fsf@localhost> <83zg7d78wv.fsf@gnu.org> <87fs94faes.fsf@localhost> <83zg7c41qq.fsf@gnu.org> <87h6tjeuei.fsf@localhost> <83o7nr4yrp.fsf@gnu.org> <87a5zb7rgu.fsf@localhost> <83pm85ctf5.fsf@gnu.org> <83edod4fzw.fsf@gnu.org> <87r0sdp859.fsf@localhost> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12448"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bzg@gnu.org, dmitry@gutov.dev, 62762@debbugs.gnu.org To: Ihor Radchenko , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 22 11:50:22 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 1pq9ss-00031O-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 Apr 2023 11:50:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pq9sb-0000dv-CK; Sat, 22 Apr 2023 05:50:05 -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 1pq9sZ-0000de-By for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 05:50: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 1pq9sY-000629-Q7 for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 05:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pq9sY-0001we-He for bug-gnu-emacs@gnu.org; Sat, 22 Apr 2023 05:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Apr 2023 09:50: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.16821569877449 (code B ref 62762); Sat, 22 Apr 2023 09:50:02 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 22 Apr 2023 09:49:47 +0000 Original-Received: from localhost ([127.0.0.1]:41820 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq9sI-0001w5-HT for submit@debbugs.gnu.org; Sat, 22 Apr 2023 05:49:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pq9sF-0001vr-EM for 62762@debbugs.gnu.org; Sat, 22 Apr 2023 05:49:45 -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 1pq9s9-0005y6-4p; Sat, 22 Apr 2023 05:49:37 -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=zQwQLTsZ3l1+4ae7shYeahthuDODLL4GmKg7JddhXNk=; b=JCJtza+o7N37 1UFaanlQ/PM9O4TchX6zCpVaGaMiXLaxm/bQr3ZVmuPBLexu/ICmenYXvaJqd+UsNnVXi50YJwClr VEs5S/hhGlmfJYsUlLxGCsLjdP6HRxS7mxm9K1DZEaJaNZYWY0MN0KjoYKV80bs/KPIdPW1GxIC+m lF4e0xiF7z1kSx/tCSOShW5oT3smIvP/woBthrt0lmerx816tZp706xk4+HqG7sYg4SclftdbENj/ PEBCE6Tb0iARPBZmauBaBEl1qHbFX+x2gaGpp7QmQEtxl5Ecdsl2Z2hNZuGlhK9bkWNr9niQu3Leu aAsk1GASeWB9ptiGODJ8hw==; 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 1pq9s8-0003yO-6h; Sat, 22 Apr 2023 05:49:36 -0400 In-Reply-To: <87r0sdp859.fsf@localhost> (message from Ihor Radchenko on Fri, 21 Apr 2023 15:28:02 +0000) 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:260449 Archived-At: > From: Ihor Radchenko > Cc: bzg@gnu.org, dmitry@gutov.dev, 62762@debbugs.gnu.org > Date: Fri, 21 Apr 2023 15:28:02 +0000 > > Eli Zaretskii writes: > > > This doesn't seem to work as expected here? Here's what I get with > > the latest update from master: > > > > '../src/emacs.exe' -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t byte-compile-warnings 'all)" --eval "(setq org--built-in-p t)" -f batch-byte-compile org/org-element.el > > Warning (emacs): Org version mismatch. Org loading aborted. > > This warning usually appears when a built-in Org version is loaded prior to the more recent Org version. > > > > Version mismatch is commonly encountered in the following situations: > > > > This seems to indicate that the compilation is aborted even though the > > command line sets org--built-in-p non-nil. What went wrong here? > > I see nothing wrong in the new version of the `org-assert-version' > macro. The only explanation I can come up with is that > `org-assert-version' from an older Org version somehow got mixed in. I think it's the defconst thingy. E.g., with foo.el which says (defconst my-foo nil) I cannot override the value from the command line: emacs -Q -batch --eval "(setq my-foo t)" -l foo.el --eval "(message \"%s\" my-foo)" => nil But if I replace defconst with defvar, it yields t, as I'd expect. So I think org--built-in-p should be a defvar, not defconst. Or maybe you can teach me how to override a defconst? Stefan, any ideas?