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#74490: 31.0.50; make bootstrap fails Date: Sat, 23 Nov 2024 16:21:46 +0200 Message-ID: <86iksekp39.fsf@gnu.org> References: <4934163.OV4Wx5bFTl@fedora> <86mshqkqtd.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26849"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74490@debbugs.gnu.org, v.pupillo@gmail.com To: Stefan Kangas , Sam James , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 23 15:23:28 2024 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 1tEr2l-0006pl-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Nov 2024 15:23:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEr2O-00040c-1W; Sat, 23 Nov 2024 09:23:04 -0500 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 1tEr2N-0003zq-5H for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 09:23:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEr2M-0006Lt-Sl for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 09:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=NcSO0VwDove2q2GjMpTrHjlOktkGL1vZSGH/jdUWi4k=; b=sqz3uauKsuihlXQdz+UHL4QoTIuXSoEHC1nmtOlr2Vdk8vHWFLlWIWiJ0R0PDscj/1DFkqaMvrMt+Onf7hsQqgg3OA+e8HRJvul7vjQhgfanQX9v8YJkbt8GbVdBtHSJXmWuv75UD2MM08ncXoih9M31cuYLMLsbWLVCa8NEe4dIRvCH0jTALXK4m/Twgna8PsXfENQUJWu6zXA7sz/06wAKEjIfoI+2kJjaaFMEmEuoctSDp0deaeAdjVXQZUbuOTGRUAjHy141oxCHx6iAj4VHw7syBOvUta/bLbT3ZZA0+GJ/B1r8Nyb+qtxbAy1ACUKc5sbxMeGZATEYTv+fOQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEr2M-00017L-9G for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2024 09:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2024 14:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74490 X-GNU-PR-Package: emacs Original-Received: via spool by 74490-submit@debbugs.gnu.org id=B74490.17323717264193 (code B ref 74490); Sat, 23 Nov 2024 14:23:02 +0000 Original-Received: (at 74490) by debbugs.gnu.org; 23 Nov 2024 14:22:06 +0000 Original-Received: from localhost ([127.0.0.1]:57250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEr1S-00015X-5w for submit@debbugs.gnu.org; Sat, 23 Nov 2024 09:22:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEr1K-00014t-Ct; Sat, 23 Nov 2024 09:22:03 -0500 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 1tEr1B-0006E3-33; Sat, 23 Nov 2024 09:21:49 -0500 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=NcSO0VwDove2q2GjMpTrHjlOktkGL1vZSGH/jdUWi4k=; b=nRuO8DGFFyib epHak6NVaO8AWNHhdmw1A42BTFqOCwwhBcFW9tdXHmucHZqyvJZWVX3h3QQC1LsfN376fgVWKqql2 KzpWWFHxmdDyW8XOlYqlQxEo6sFL9Dtdme8O52EjOQi4g7pISmma0maqaa6H4SyCIdkA3mcAfwV/p RewN4tp31xSOV+3Cm76Ft4KzM74na2HoJ1emBeIiJf+x7aVD1aDKnUbpge9H2v+kBhIkyej1W5GwJ KUFQ4IUwISce25dfqVpUOnj3nHcTeXsxJwEgxRn/1t6sohPD8VE9r/2LsfYgBBJEzEd0ViZxjsbYT uuo10pYmeiTUmJg6RDWBQA==; In-Reply-To: <86mshqkqtd.fsf@gnu.org> (message from Eli Zaretskii on Sat, 23 Nov 2024 15:44:30 +0200) 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:295839 Archived-At: merge 74490 74491 73855 thanks > Cc: 74490@debbugs.gnu.org > Date: Sat, 23 Nov 2024 15:44:30 +0200 > From: Eli Zaretskii > > > From: Vincenzo Pupillo > > Cc: Eli Zaretskii > > Date: Sat, 23 Nov 2024 13:22:30 +0100 > > > > Ciao Eli, > > make bootstrap fails today, I think it is due to this commit: > > commit 1c2e0615fb87727bc2aa1f871353c999b67c792a > > Author: Eli Zaretskii > > Date: Sat Nov 23 04:51:10 2024 -0500 > > > > ; Update ldefs-boot.el > > > > > > > > Loading /home/vincenzo/Projects/Emacs/emacs/lisp/ldefs-boot.el (source)... > > > > Error: void-function (rx) > > (rx (or (seq "." (or "py" "pth" "pyi" "pyw")) (seq "/" (or "SConstruct" > > "SConscript"))) eos) > > (defconst python--auto-mode-alist-regexp (rx (or (seq "." (or "py" "pth" > > "pyi" "pyw")) (seq "/" (or "SConstruct" "SConscript"))) eos)) > > eval-buffer(# nil "/home/vincenzo/Projects/Emacs/emacs/lisp/ > > ldefs-boot.el" nil t) > > (if eval-function (funcall eval-function buffer (if dump-mode file fullname)) > > No, I think this is bug#73855, which somehow rears its ugly head. > > Stefan, could you please look into this? I think I see the reason: python--auto-mode-alist-regexp appears in ldefs-boot before the autoloads from rx.el, which define the macro rx. (A similar defconts defined by Tramp doesn't trigger the problem because it comes _after_ rx.) So I believe it's a bad idea to use rx in an autoloaded defconst, since we cannot know whether the defconst will be in loaddefs.el before or after the rx macro. Stefan, are there any clean ways of using calls to autoloaded macros in autoloaded defconst or defvar?