From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74530: 31.0.50; Emacs fails to compile cape package Date: Mon, 25 Nov 2024 22:24:11 -0500 Message-ID: References: <87bjy3uzc9.fsf@olaptop-dell.mail-host-address-is-not-set> <868qt7i9to.fsf@gnu.org> <87jzcqvj7i.fsf@melete.silentflame.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6230"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 74530@debbugs.gnu.org, Osama Rebach To: Sean Whitton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 26 04:34: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 1tFmLD-0001VJ-R2 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Nov 2024 04:34:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFmKz-0006Yv-L3; Mon, 25 Nov 2024 22:34: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 1tFmKx-0006YP-A2 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 22:34: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 1tFmKx-0003vO-0Y for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 22:34: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=DFRfEagosrCQ7oxeTmq6DqVkJRm3whLAqigrMRz12Eg=; b=r4cbKdS6SBsa2Sc3cEwBdWE0vnqzaLJzAi+xkGNPqQAQpmT+7Hwmd/xNFqZvRc9RY76v0nxpDw4IBTIJ1+JW6k9Z3mtBT6rwugY6TR1Gsl8D3lhZSm/vZWhDcMWre0cbiqxSR7B6LKSZ5gqKfH/sbtn8sooLutDCw7I3j7uzZqpkJcW2ayIOfI24VTk9u33o0on50yUlJRDr1iXDpLYW+8lI5yHZRpspzIblIEdDM2DTFCUk+0Kj5AJHf+1Y988GlK8Gf7rbX5YHUnJzibV2Q9l3wUgeGZ6d8wva5jOzcNzqyWcW2Rr3GK7Yg3v6yp6GE+LM0lLzUuPA4ifC8TbNBQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFmKw-0007R9-HZ for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 22:34:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Nov 2024 03:34: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.173259201728550 (code B ref 74530); Tue, 26 Nov 2024 03:34:02 +0000 Original-Received: (at 74530) by debbugs.gnu.org; 26 Nov 2024 03:33:37 +0000 Original-Received: from localhost ([127.0.0.1]:43736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFmKW-0007QQ-KB for submit@debbugs.gnu.org; Mon, 25 Nov 2024 22:33:36 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFmKU-0007QA-Iz for 74530@debbugs.gnu.org; Mon, 25 Nov 2024 22:33:35 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 8FE434451C3; Mon, 25 Nov 2024 22:24:22 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1732591461; bh=DXP9MmbD4vk/hdplucbAHo1arDr531z3AqbmV09dyT0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=MeAVfgZxeBQH6IhQbYs/IINvGayCkZu8UWZqUdgbis5PFy0L4JBGNb88HH3bOzxng 49S1IuYqDBx7yYYQ9A9fUlpdw/+8JnD47lSfGabcLGA3Qu7RNa3oWkxkMrkgmlK4PY 82G58etGWSGzWE0TFnD+3Hdr2SdsrFD2AiKtGZ5kr7fWkTakusR/fuY3shcP7/iCUO arrf58hjZM8wkcLocSE+eWTnhwGI3qCSPN5ScnFaGcdAjeeM1JCnMaswVSfTr8zI41 kbpzQ3mKCi0Jw+TODhz0cgxTd/UzoRBh7YNrRik95NLtOexnQoPNMZUd054XiBmcXH E3yVjQBko7fQw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 7CBD34451C0; Mon, 25 Nov 2024 22:24:21 -0500 (EST) Original-Received: from pastel (104-195-225-43.cpe.teksavvy.com [104.195.225.43]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4306012030F; Mon, 25 Nov 2024 22:24:21 -0500 (EST) In-Reply-To: <87jzcqvj7i.fsf@melete.silentflame.com> (Sean Whitton's message of "Tue, 26 Nov 2024 10:10:09 +0800") 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:295972 Archived-At: > 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. My guess is that it's the `when-let` inside an `eval-and-compile` that's making us bite the dust. I'd welcome a patch to fix that problem, but in the mean time a patch that actually fixes `when-let` to not use `if-let` (and hence not use `with-suppressed-warnings` either) might be a simpler solution. Stefan