From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.bugs Subject: bug#62762: 'make' often errors with "Org version mismatch" after pulling a new version of the code Date: Fri, 5 May 2023 18:20:09 +0700 Message-ID: <38c89611-a929-1869-e70d-983bd7edad14@gmail.com> 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> <831qjvjmw5.fsf@gnu.org> <48f15926-d002-877b-1d01-3a607fe42b76@gmail.com> <83v8h7hxlj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: yantar92@posteo.net, 62762@debbugs.gnu.org, bzg@gnu.org, dmitry@gutov.dev, monnier@iro.umontreal.ca, acm@muc.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 05 13:21:20 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 1putV2-0008bd-2g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 13:21:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1putUm-0000MC-OM; Fri, 05 May 2023 07:21: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 1putUk-0000M2-B7 for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 07:21: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 1putUk-000406-2i for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 07:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1putUj-0005CM-Mq for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 07:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 May 2023 11:21: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.168328562019922 (code B ref 62762); Fri, 05 May 2023 11:21:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 5 May 2023 11:20:20 +0000 Original-Received: from localhost ([127.0.0.1]:53268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1putU3-0005BF-IP for submit@debbugs.gnu.org; Fri, 05 May 2023 07:20:19 -0400 Original-Received: from mail-lf1-f52.google.com ([209.85.167.52]:49239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1putU2-0005Ay-9c for 62762@debbugs.gnu.org; Fri, 05 May 2023 07:20:18 -0400 Original-Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-4efe8b3f3f7so1899675e87.2 for <62762@debbugs.gnu.org>; Fri, 05 May 2023 04:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683285612; x=1685877612; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=MnxWzjJoaD6FEKRI5VFviFa4NTTVbHDh5gT0Ayl3XmU=; b=Jsk+DPqbGtrHSxSRLxSmgdQxVsuoT9yll2A1LQatQhXGjEGkv7PsJG6SOFAz9DmUXJ RX2e7/DlEwBgKL9NLJMZEg03quSByTiWdmW2Kg40ijY9F50f9iYj6Anwk0RVeUz6yPzH 92Mjyg+VvS3AoPDBBXa3eET2hnN5zHY457BOQKsRx2292/Mo80TH/9GMMYxuB8srEllO wo7DtRoa1jb13wqv96Ddn+fbPlf9IaWlRjYIvdDfcROr2h6QwHVYQG5TOFjpKR65o7Y6 Kmzewify2axYI+0VVp12PVUdWX2LXasWPwOFmB6K3GCK/2tD0FMUTtAlmC31MgM+Qnut UWZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683285612; x=1685877612; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MnxWzjJoaD6FEKRI5VFviFa4NTTVbHDh5gT0Ayl3XmU=; b=b7rBZhLtySvCatbbA9IagAbeo4NtZWCUqfGYrjpY1kNCA9atzg1nF/IXAL6FKMzJEU uZUopXflcE/BrWyWttK+fEZlbjrbvj+kmFBpUxkZ/ALmx7Zj9CtsUdX7dkXPPm9OJd6d Y1TfEe875LBeUlWmmKwoF+WBHLYmFHInZYlDxB4TjwBVGUEN+yaeE5wzx5va+BlVpxHm embpj5jMCvQK3X7mVTOamJOSiXwRERQzS+JUZi69dn/cXyJud8mv6aylpwyAzzYmwWzl l/wrC1rPAJXJRggvXJSn5jLzdZhzYNlYjno4UbW2r4twC1X88liBgK722olRNC1FARHp aC5A== X-Gm-Message-State: AC+VfDyg+n93o6ORtxbYP+3OjKV15Xhvw3N80LepaM4m95VSV2uV8dzI 4lODdNncLrf5LU9E0OFhwAKciWzsSBjynA== X-Google-Smtp-Source: ACHHUZ6DGb6H5i3SeRSxjpgYfPqHcBz5PcuY1dkjVsR8Swr8fkOgetGnFP5ZVDt69XczrML3ACQbug== X-Received: by 2002:a2e:920d:0:b0:2a8:baab:fb2e with SMTP id k13-20020a2e920d000000b002a8baabfb2emr299980ljg.47.1683285611843; Fri, 05 May 2023 04:20:11 -0700 (PDT) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id l18-20020a2e9092000000b002a8c7c5d64dsm288322ljg.1.2023.05.05.04.20.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 04:20:11 -0700 (PDT) Content-Language: en-US In-Reply-To: <83v8h7hxlj.fsf@gnu.org> 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:261090 Archived-At: On 05/05/2023 17:38, Eli Zaretskii wrote: >> Date: Fri, 5 May 2023 14:27:29 +0700 From: Max Nikulin >> >> On 05/05/2023 13:46, Eli Zaretskii wrote: >>> Date: Fri, 5 May 2023 12:27:25 +0700 From: Max Nikulin >>>> 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. >> >> Could you, please, provide an example where circular dependencies are >> unavoidable or cost of disentangling of mutual dependencies is prohibitive? > > What do you mean by "unavoidable"? Ones that do not allow to apply approaches like: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62762#140 Max Nikulin Fri, 5 May 2023 11:18:17 +0700 > In the C and C++ world the solution for cyclic dependencies is forward > declarations. Some kind of such approach I see in Org as well. > lisp/org/ol.el and lisp/org/org-element.el are mutually dependent. > org-element.el requires 'ol, while the latter just declares functions > from 'org-element. On 05/05/2023 17:38, Eli Zaretskii wrote: >> My general impression that behavior of code having circular dependencies >> is harder to comprehend. > > AFAIR, the problem is that we use 'require', eval-when-compile etc. to > get definitions of macros, functions, and variables. There's nothing > difficult to comprehend in this. I still have no idea which way it may be related to determining of order of compilation based on dependency tree. That is why I asked for particular examples.