From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Whitton Newsgroups: gmane.emacs.bugs Subject: bug#74530: 31.0.50; Emacs fails to compile cape package Date: Tue, 26 Nov 2024 10:10:09 +0800 Message-ID: <87jzcqvj7i.fsf@melete.silentflame.com> References: <87bjy3uzc9.fsf@olaptop-dell.mail-host-address-is-not-set> <868qt7i9to.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36802"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74530@debbugs.gnu.org, Osama Rebach To: Eli Zaretskii , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 26 03:11:20 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 1tFl2u-0009Qc-BI for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Nov 2024 03:11:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFl2e-0004dS-W8; Mon, 25 Nov 2024 21:11:05 -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 1tFl2d-0004dH-Qt for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 21:11: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 1tFl2d-0007p4-GX for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 21:11:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=bRf0W7RWVZ+KgPT4Gi9tk1h0HEJtUphtJVThs/GEliA=; b=CHEqACvR5tCqcQ4oVQrR0a2xnV+d/P+bdsctqC5QCu14OTOXHeRe7ZS4u/pz0DGbXaGwsXbwD/fwv62BNDzBjgeztDqgwM+aa/wECmb6X7B2QIcLTeb15xNUeItiBAB3xeAR+IzYIBPtl/A5D2YUpjqICTK0AbJQWQ4pvChXA555k0Gdnkgy2MRkZECPAFFOSkkKLaMnm6ljm6/AcmgiyCegFHGeBF6GSMZmtLtqO6BD/IcgH/FvfQkaOOde3HEnEkzfc5NN5JMgE6POznkvxnXWHJlbPuDZFX+sy6LXSJLc+MDLo2s88Vo7lgzJyD/JWJGsDOOloCYeZKezZW7hfg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFl2c-0003MA-BZ for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 21:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Whitton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2024 02:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74530 X-GNU-PR-Package: emacs Original-Received: via spool by 74530-submit@debbugs.gnu.org id=B74530.173258702312840 (code B ref 74530); Tue, 26 Nov 2024 02:11:02 +0000 Original-Received: (at 74530) by debbugs.gnu.org; 26 Nov 2024 02:10:23 +0000 Original-Received: from localhost ([127.0.0.1]:43480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFl1z-0003L2-1L for submit@debbugs.gnu.org; Mon, 25 Nov 2024 21:10:23 -0500 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:60616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFl1w-0003Kh-2V for 74530@debbugs.gnu.org; Mon, 25 Nov 2024 21:10:21 -0500 DKIM-Signature: a=rsa-sha256; b=zBpw2t8w4ZjyGgoay1tgCNakMqFxxUczLw8BYa61/KhnfJso5RHbiPJgBmkc5Z7GZ2WYyolcMCBoqnMKubxw3OA6ZYT6kGS2JvK2CXgSSxaTJzhlJ1TBSD0wxp83j8FZH+z7J4Z3N2DomMJtLH0Z+c7fFe44y6bUNVwYWUEedzSEC2pf3T7M8MnACCWz8Wq+mTMpxDEn98eubgKAuUf88pXQfAelZUyvJiXL2uIm5efMs/Dp55mUJOCSSWkouKXwXSoqU8dweSQ2iViQxU0XlpBSznU+qMCY5NmWPw7y3TWDxYmRCKOMJVHZmH0fFscxJ7cz5SzzaWM8RZ5UOFEg7g==; s=purelymail3; d=spwhitton.name; v=1; bh=EkcSGzf7Yg7SDkExaCZbFkVF2cGHk8wD3hV82xdrzvs=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=CLAhqwFyjXGYnH15yzEXMkdSW03mSIgLxqrxv3JEVhXddc+CnFGZalD8KTSUZQBSYj8fQHMUbiytSa2mG6owIOe54ywzAAknE1jcjLdmNb20N89c/v+GKsds6/6IFCaOhHwglsuaWcztjK/mG4Cqr366RtKGsZHXR5nunF25tdGWEJNUAf771uoAMndTx1ntuRWB2hRcB6gN9VIhFcrhs2ZxYOZzpyPtSGkTQnV4DHvjfqG0QVg04w4H2HzvubT/JRqMfjgqn3L+n1FjJBQwxBtcM2V5YCsY7ehfYmTx7E5+L47TWQU2rMV9oZlCEZb2vSliYJm1LW5kKserAMPKfQ==; s=purelymail3; d=purelymail.com; v=1; bh=EkcSGzf7Yg7SDkExaCZbFkVF2cGHk8wD3hV82xdrzvs=; h=Feedback-ID:Received:Received:From:To:Subject:Date; Feedback-ID: 20115:3760:null:purelymail X-Pm-Original-To: 74530@debbugs.gnu.org Original-Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -549092892; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 26 Nov 2024 02:10:13 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id E4E197EE537; Tue, 26 Nov 2024 10:10:09 +0800 (CST) In-Reply-To: <868qt7i9to.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 25 Nov 2024 17:58:59 +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:295971 Archived-At: Hello, On Mon 25 Nov 2024 at 05:58pm +02, Eli Zaretskii wrote: >> From: Osama Rebach >> Date: Mon, 25 Nov 2024 16:07:02 +0100 >> >> Emacs (commit: cf3ea44eb56) fails to compile cape (url: https://github.com/minad/cape, >> commit: 9a7c44fe8b7). Reverting commit eb1756a8a55 solves the problem. >> >> Steps to reproduce: >> >> run: emacs -Q >> >> evaluate: >> (add-to-list 'load-path "/path/to/cape") >> (byte-compile-file "/path/to/cape/cape-char.el") >> >> results: >> cape-char.el:132:2: Error: Symbol's function definition is void: internal--with-suppressed-warnings >> >> I can provide the full nix build log, or more information if needed. > > Sean, any ideas? Line 132 in cape-char.el directly calls a macro which uses when-let, at top-level, so it calls the with-suppressed-warnings I added in the recent commit, again at top-level. Stefan's commit a0f60293d9 says `byte-compile-macro-environment` contains definitions which expand to code that is only understood by the rest of the byte-compiler, so using it for code which isn't being byte-compiled leads to errors such as references to non-existing function `internal--with-suppressed-warnings`. So it sounds like we are inappropriately tangling with machinery internal to the byte compiler. I used with-suppressed-warnings in a completely standard way, so I think the most likely thing is that we have uncovered a bug in the byte compiler, probably something to do with evaluating top-level forms while compiling. Adding Stefan. -- Sean Whitton