From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.bugs Subject: bug#62053: Guile compiler is unable to compile tiny program Date: Wed, 8 Mar 2023 17:41:19 +0100 Message-ID: References: <1678273676.721226645@f141.i.mail.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzZulUVSabaZv/rR" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37871"; mail-complaints-to="usenet@ciao.gmane.io" To: 62053@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Mar 08 17:42:16 2023 Return-path: Envelope-to: guile-bugs@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 1pZwro-0009cn-Ac for guile-bugs@m.gmane-mx.org; Wed, 08 Mar 2023 17:42:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZwrc-0007Kl-Jt; Wed, 08 Mar 2023 11:42: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 1pZwra-0007K0-TL for bug-guile@gnu.org; Wed, 08 Mar 2023 11:42:02 -0500 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 1pZwra-0007t8-KU for bug-guile@gnu.org; Wed, 08 Mar 2023 11:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pZwra-00018h-EJ for bug-guile@gnu.org; Wed, 08 Mar 2023 11:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 08 Mar 2023 16:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62053 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16782936894331 (code B ref -1); Wed, 08 Mar 2023 16:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Mar 2023 16:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:50065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZwr2-00017n-LX for submit@debbugs.gnu.org; Wed, 08 Mar 2023 11:41:28 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:48154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZwr0-00017f-Uu for submit@debbugs.gnu.org; Wed, 08 Mar 2023 11:41:27 -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 1pZwr0-00072J-35 for bug-guile@gnu.org; Wed, 08 Mar 2023 11:41:26 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZwqw-0007dW-Ks for bug-guile@gnu.org; Wed, 08 Mar 2023 11:41:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SJBuIrmby4Gwm1ZDnWY/D8lyoqkOCIesN5cQF7yaHss=; b=R3ZJ/WFKpptzEwuJEeZCIRKqqW ObuC4pX4NX8U6Rjyeq9OqS4ilHoMNpIGrvgqTfkkGn4FJg+RpNfBNvzg8gTFMOoA7L+/gjJYutBSe 7u9Dv9Kr1kJqBfWzbZmAV7kBQpD8qioCiRjcYwIDnY7bNAIjN8ldrpU/4Q20wTEwuCHmaxOzQ6HhQ EzoF0u5+OZq0P3CAa4Vx4yvIGGUcIrg6ysPOYuh6iuVG2Yh9QAr+GvQsDf/n89nQD2cMsRfAhKdgm a20aZywnk7jFMW5ELj+ItNoJeE7/bYq5uLdMGVrqaeONBEScQGJbm87pu6DA0tM5Hlbq32eXAOQ8u dQwXXKFg==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1pZwqt-0007vT-CQ for bug-guile@gnu.org; Wed, 08 Mar 2023 17:41:19 +0100 Content-Disposition: inline In-Reply-To: <1678273676.721226645@f141.i.mail.ru> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10566 Archived-At: --NzZulUVSabaZv/rR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 08, 2023 at 02:07:56PM +0300, var-vniiaes--- via Bug reports fo= r GUILE, GNU's Ubiquitous Extension Language wrote: >=20 > Guile compiler is unable to compile tiny program: > =C2=A0 > (define (fn l) > =C2=A0=C2=A0=C2=A0 (define (ok l) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (or (and (pair? l) l) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (error "list= is empty"))) > =C2=A0=C2=A0=C2=A0 (cons (reverse (car l)) (ok l))) > =C2=A0 > amaya@picasso:~/tmp/guile-3.0.9 > $ ../prefix/bin/guile ~/tmp/guile-compiler-bug.scm > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 > ;;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or pass the --no-auto-compile arg= ument to disable. > ;;; compiling /home/amaya/tmp/guile-compiler-bug.scm > ;;; WARNING: compilation of /home/amaya/tmp/guile-compiler-bug.scm failed: > ;;; not found 22 > =C2=A0 > Compiler reports confusing message here: `not found 22=E2=80=99.=C2=A0=C2= =A0=C2=A0 Bizarre. Can confirm=20 tomas@trotzki:~/foo$ vim buggy.scm tomas@trotzki:~/foo$ guile buggy.scm=20 ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /home/tomas/foo/buggy.scm ;;; /home/tomas/foo/buggy.scm:2:0: warning: possibly unbound variable `#{= =C2=A0=C2=A0=C2=A0}#' ;;; /home/tomas/foo/buggy.scm:3:0: warning: possibly unbound variable `#{= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}#' ;;; /home/tomas/foo/buggy.scm:4:0: warning: possibly unbound variable `#{= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0}#' ;;; WARNING: compilation of /home/tomas/foo/buggy.scm failed: ;;; not found 25 tomas@trotzki:~/foo$ guile --version guile (GNU Guile) 3.0.8.57-bc3b1 Copyright (C) 2022 Free Software Foundation, Inc. License LGPLv3+: GNU LGPL 3 or later . This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (so in my case it's 25 instead of 22). Interestingly, my version also produces warnings about possibly unbound variables). If I enter the code line by line into a repl, I also get a "not found 22". Interestingly, if I add a call to fn to the end of that snippet (e.g. (fn '(a b))), the "not found" disappears. The unbound var warnings stay. Cheers --=20 t --NzZulUVSabaZv/rR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZAi6qAAKCRAFyCz1etHa RjzDAJ43hVUIaJJwDwWq19T7qDYGUNgCpwCfb57K09FDPG50NzJnzTIHohMQPSs= =Dnvi -----END PGP SIGNATURE----- --NzZulUVSabaZv/rR--