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: Wed, 27 Nov 2024 10:37:27 +0800 Message-ID: <87y1159zbs.fsf@melete.silentflame.com> References: <87bjy3uzc9.fsf@olaptop-dell.mail-host-address-is-not-set> <868qt7i9to.fsf@gnu.org> <87jzcqvj7i.fsf@melete.silentflame.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17250"; 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: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 27 03:38: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 1tG7wg-0004JM-M3 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Nov 2024 03:38:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tG7wM-0000Bf-GT; Tue, 26 Nov 2024 21:38:06 -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 1tG7wJ-0000BI-Nn for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 21:38: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 1tG7wJ-0003uV-Fh for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 21:38: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=UNZLXfvIf+X7uh73RchCcFcxCkayRp3E1H1MYmNd+k8=; b=Th5/Wi8QMujD817QAnxmP/pXKQXt6QjZPvYtLlUxXTlOyXZftSBvuDHTurBOqsSAQS82dkXsGlBkEsutvj4wT/fde6GFrM77VIoVLUECHlc3MPbiR/4385nfWefzcCt5pbZBF2qslcGAh2n+LgOOhwAb9F42feKJNPx62fcgUaHcdaXGREAWnv7ITHIpX8+fPqu7UmBHYtHFEroaIstc09qpYp01aDJqwFeth+ND89mQc8TVWNt7rGEPcMKFK2bj0vPydMrHZ31+llvzKEN3Ll98l4NaEPtfhDLpH/LAFKXLgHD6nQxqRLlAILMN6DL7QkivEAQbLwHny8pcjKAJzg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tG7wI-0008NA-A5 for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2024 21:38: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: Wed, 27 Nov 2024 02:38: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.173267505932148 (code B ref 74530); Wed, 27 Nov 2024 02:38:02 +0000 Original-Received: (at 74530) by debbugs.gnu.org; 27 Nov 2024 02:37:39 +0000 Original-Received: from localhost ([127.0.0.1]:56028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tG7vu-0008MR-W6 for submit@debbugs.gnu.org; Tue, 26 Nov 2024 21:37:39 -0500 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:50688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tG7vs-0008MB-Su for 74530@debbugs.gnu.org; Tue, 26 Nov 2024 21:37:38 -0500 DKIM-Signature: a=rsa-sha256; b=X+F51Qb4cgJUHcfIPmB/gOJSQnYzYEXW6tn19Wga6fRMhsnHz3gnC0NJXGu6BlA3hf9ldosiTWbhXbehzyF/ErwoQrGIySRJffZc+7H9qoyW2V2dljN74ETEMN6AcZgEqEFg1LQsY9TG2b2bEpMoBQvuEEDeVdbwVMbBk2d6LrDJWQkP5FD+0hoikkO+mWP3KPGwmliGsbZ3IJjdJ9TXfOGu/3s/A8ehbX3iTuC8pjsQMisz2i1xSQMHdOPSYMAeHRlt1rvulNhTAygeTF+xx6M5VrUKouBqgpm8Km2G9OZq+MWOEFonPb2jYn48ys/DcYk9swq8VBfBnfzs5AdlYg==; s=purelymail1; d=spwhitton.name; v=1; bh=BRGXE/N3Zgy84aILDwDHcV6c4FzdpqWraQw13D3I6oc=; h=Received:Received:From:To:Subject:Date; DKIM-Signature: a=rsa-sha256; b=tQZn1cCbcgrf1kYRKnZAoSgB/dtv6WXrGmzJluEID3SGSqmUCNJbDYGGMV1e/B1x9CGi0wmrvuGMibeukTn7B9V+v8yDrHgJIRx8WAorhL79w5Yqdr2pmfOXAw/SL45Ee5SAqp48dnnwiDrm8pxjY7D7px5tzIv1MESQMtuTp+byq9lnRjv5pPtfNJiI11jY5ItVCW6R94YkgyjQ79jOHmi/yPb9yEKgUK2NEUliZfe9x6BY+VCbTT0UbiGLqm0LPxEFBSApojWqQ+1avtcojv0ytslmrR6TBpASPDucytcPfkaFvMI6MoVc9Imr9eMb5gVZ/ZtqZZKyNleZFZdrCw==; s=purelymail1; d=purelymail.com; v=1; bh=BRGXE/N3Zgy84aILDwDHcV6c4FzdpqWraQw13D3I6oc=; 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 -1889271049; (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 27 Nov 2024 02:37:30 +0000 (UTC) Original-Received: by melete.silentflame.com (Postfix, from userid 1000) id C7FC67ED954; Wed, 27 Nov 2024 10:37:27 +0800 (CST) In-Reply-To: (Stefan Monnier via's message of "Mon, 25 Nov 2024 22:24:11 -0500") 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:296015 Archived-At: Hello, On Mon 25 Nov 2024 at 10:24pm -05, Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: >> 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. Okay, done, thanks. Osama, if you could let us know whether this fixes the original bug, we can close this. -- Sean Whitton