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 22:33:48 +0700 Message-ID: <59ccf87f-effb-2168-2c17-34d950060b1b@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> <38c89611-a929-1869-e70d-983bd7edad14@gmail.com> <83jzxnhv2o.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="22298"; 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 17:34:13 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 1puxRl-0005b1-D4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 May 2023 17:34:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1puxRc-0006aX-9J; Fri, 05 May 2023 11:34: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 1puxRa-0006a5-TD for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 11:34: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 1puxRa-0001n3-Hw for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 11:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1puxRa-00040u-0c for bug-gnu-emacs@gnu.org; Fri, 05 May 2023 11:34:02 -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 15:34: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.168330084115421 (code B ref 62762); Fri, 05 May 2023 15:34:01 +0000 Original-Received: (at 62762) by debbugs.gnu.org; 5 May 2023 15:34:01 +0000 Original-Received: from localhost ([127.0.0.1]:57300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puxRY-00040f-V9 for submit@debbugs.gnu.org; Fri, 05 May 2023 11:34:01 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:62686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1puxRV-00040M-Ub for 62762@debbugs.gnu.org; Fri, 05 May 2023 11:33:59 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-4f139de8cefso15843015e87.0 for <62762@debbugs.gnu.org>; Fri, 05 May 2023 08:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683300832; x=1685892832; 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=HMk8gqmvIFqdl2EKX68jAuTRwdBPIOIWlwA0momMtgM=; b=i58HHVx+T28vS28mhXFDmshJVLSJ2e+54S7Ez/9vo395ylU35XQKKVjPk2LzMrOEyo 5AL/Ncyh4SmdtpTqnACJs5u8g/H2TxQ+p42PiqjKVzfN9vMAz1Mggi63Tn+WkJQYqnwg +4AtzLcOXsxIVP6Vzh+fKDgGfR+93JOWrLRkfRHBgxrHsodzmyIY/oGBwro3+ZRYPbym wxLg1uihxpcaaoQyX1juEpaBnnZ4NdR589Z288f8Tnn7aSPhA+n55tb6v+hZPVx5OlwL 2d2H2shZd6njAia34UmI4uG5lpsGQDgpV1KDFFoZgQyJ8u5+jBWN75RnNek3aRn1X51c Cytw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683300832; x=1685892832; 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=HMk8gqmvIFqdl2EKX68jAuTRwdBPIOIWlwA0momMtgM=; b=UOKPN2uAHk1LHSFW5ih/K+REZ0SuwnU2KBAyvcxGAH8OJWmTTuHtrkLIFghDxK5b/3 EU+G991BLmFjiBF4U3HjHiKio2wBvOAzj3hPiU21cAgUWvy1O0ELnC9Smr6UxfozGTr1 g4tCz88HV6GWr/6Dv70R4/W32lax0EvVvSp4OA7zuk61TuwOUwwlOo34yJnjLaEao5tG mu2asdA8yg6PnMgNxjFK8OHroP4DLPPl4To47+pXJRGnWdKUMmyX6iqFs6/42TIl0MkH Btw1Mltbbfuo9+reNYnquSQBjCg3LBxcI3WtoraTcfN+RE11vf4GQaOSxbAEf0pA3HvM 4pjg== X-Gm-Message-State: AC+VfDy7E5KuEx1KA5qZAvE4URjuZUVtSDqG6LZ0f6OTP0Lw+uxmDO6D C71SEy63ZjJwaFabuW8BvJA= X-Google-Smtp-Source: ACHHUZ5uFMWqZZo/QiRon7h/g6N3xXAx5VBxN1KZdKPAkYsMhxJFKF2ej9rJVR5LX35/SuhrQ+piFg== X-Received: by 2002:a05:6512:983:b0:4f1:4074:b4fd with SMTP id w3-20020a056512098300b004f14074b4fdmr678847lft.29.1683300831464; Fri, 05 May 2023 08:33:51 -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 d24-20020ac24c98000000b004eafabb4dc1sm327156lfl.250.2023.05.05.08.33.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 May 2023 08:33:51 -0700 (PDT) Content-Language: en-US In-Reply-To: <83jzxnhv2o.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:261116 Archived-At: On 05/05/2023 18:33, Eli Zaretskii wrote: >> Date: Fri, 5 May 2023 18:20:09 +0700 From: Max Nikulin >> On 05/05/2023 17:38, Eli Zaretskii wrote: >>>>> This doesn't work in Emacs, in general, due to circular dependencies. Eli, I am still unable to associate this with particular cases of elisp code or with how it is split over several files. That is why I am again asking for examples illustrating issues you have in mind. >>> What do you mean by "unavoidable"? >> >> 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. > > If it's this part, then I don't see how it can be relevant to our > case: our problem is to teach Make about these dependencies, not to > teach a Lisp compiler about them. I can not figure out which kind of cyclic dependencies may cause troubles with dependency generation, but I had a hope that it would be possible to reorganize code to avoid such kind of dependencies. > I don't have ready examples off the top of my head, sorry. You have > the Emacs Lisp sources, so you have all the information, and can find > those circular dependencies yourself if you don't believe me and > Stefan. It might be even better if you will provide a brief example unrelated to real Emacs code. I have no idea which code I should search for.