From unknown Sat Aug 16 18:48:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12459: Strange issue with circular dependancies Resent-From: rixed@happyleptic.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 17 Sep 2012 11:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12459 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: 12459@debbugs.gnu.org X-Debbugs-Original-To: bug-guile@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13478825894630 (code B ref -1); Mon, 17 Sep 2012 11:50:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Sep 2012 11:49:49 +0000 Received: from localhost ([127.0.0.1]:38525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZpk-0001Cc-SF for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:49:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33809) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZpi-0001CV-0H for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:49:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDZoR-0003an-PN for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:48:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoR-0003aj-Lw for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:48:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoQ-00012Z-J6 for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDZoK-0003aD-S8 for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:26 -0400 Received: from eneide.happyleptic.org ([213.251.171.101]:46282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoK-0003Uu-Lt for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:20 -0400 Received: from extranet.securactive.org ([82.234.213.170] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1TDa2B-0007ru-NZ for bug-guile@gnu.org; Mon, 17 Sep 2012 14:02:39 +0200 Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.80) (envelope-from ) id 1TDZo8-0001rm-Ip for bug-guile@gnu.org; Mon, 17 Sep 2012 13:48:08 +0200 Date: Mon, 17 Sep 2012 13:48:08 +0200 From: rixed@happyleptic.org Message-ID: <20120917114808.GA3394@securactive.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline While the compiler does manage most circular dependancies, some cases still cannot be compiled. For instance, with the attached circ-{a,b,c}.scm the compilation of b fails with: % GUILE_LOAD_PATH=. guile-tools compile -Warity-mismatch -Wformat -Wunused-variable -Wduplicate-case-datum -Wbad-case-datum -o circ-b.go circ-b.scm Backtrace: In ice-9/boot-9.scm: 2131: 19 [save-module-excursion #] 2797: 18 [#] In unknown file: ?: 17 [primitive-load-path "circ-a" #f] In ice-9/eval.scm: 487: 16 [# (use-modules # #)] In ice-9/psyntax.scm: 1091: 15 [expand-top-sequence ((use-modules (circ-b) (circ-c))) () ...] 976: 14 [scan ((use-modules (circ-b) (circ-c))) () ...] 270: 13 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...] In ice-9/boot-9.scm: 3258: 12 [process-use-modules (((circ-b)) ((circ-c)))] 621: 11 [map # ((#) (#))] 3259: 10 [# ((circ-c))] 2594: 9 [resolve-interface (circ-c) #:select ...] 2519: 8 [# # ...] 2786: 7 [try-module-autoload (circ-c) #f] 2131: 6 [save-module-excursion #] 2797: 5 [#] In unknown file: ?: 4 [primitive-load-path "circ-c" #f] In ice-9/eval.scm: 435: 3 [eval # ()] 432: 2 [eval # ()] In unknown file: ?: 1 [memoize-variable-access! # #f] In ice-9/boot-9.scm: 106: 0 [# unbound-variable ...] ice-9/boot-9.scm:106:20: In procedure #: ice-9/boot-9.scm:106:20: In procedure module-lookup: Unbound variable: fb Note that it compiles if you remove (circ-c) from used-modules in circ-a.scm. --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-a.scm" (define-module (circ-a)) (use-modules (circ-b) (circ-c)) (define x 123) (export x) (define (fa) (1+ (fb))) (export fa) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-b.scm" (define-module (circ-b)) (define (fb) (1+ (@ (circ-a) x))) (export fb) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-c.scm" (define-module (circ-c)) (define y (@ (circ-b) fb)) ; --LZvS9be/3tNcYl/X-- From unknown Sat Aug 16 18:48:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12459: Strange issue with circular dependancies Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 23 Nov 2012 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12459 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: rixed@happyleptic.org Cc: 12459@debbugs.gnu.org Received: via spool by 12459-submit@debbugs.gnu.org id=B12459.135371078020545 (code B ref 12459); Fri, 23 Nov 2012 22:47:02 +0000 Received: (at 12459) by debbugs.gnu.org; 23 Nov 2012 22:46:20 +0000 Received: from localhost ([127.0.0.1]:35409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tc20q-0005LK-Al for submit@debbugs.gnu.org; Fri, 23 Nov 2012 17:46:20 -0500 Received: from xanadu.aquilenet.fr ([88.191.123.111]:44447) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tc20o-0005LE-Rh for 12459@debbugs.gnu.org; Fri, 23 Nov 2012 17:46:19 -0500 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 7027CA6F0; Fri, 23 Nov 2012 23:44:49 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nocb4O4GwKQR; Fri, 23 Nov 2012 23:44:49 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id 0619FA459; Fri, 23 Nov 2012 23:44:48 +0100 (CET) From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20120917114808.GA3394@securactive.lan> Date: Fri, 23 Nov 2012 23:44:49 +0100 In-Reply-To: <20120917114808.GA3394@securactive.lan> (rixed@happyleptic.org's message of "Mon, 17 Sep 2012 13:48:08 +0200") Message-ID: <873900ey72.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, rixed@happyleptic.org skribis: > While the compiler does manage most circular dependancies, some cases still > cannot be compiled. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, rixed@happyleptic.org skribis: > While the compiler does manage most circular dependancies, some cases still > cannot be compiled. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] Hi, rixed@happyleptic.org skribis: > While the compiler does manage most circular dependancies, some cases sti= ll > cannot be compiled. It=E2=80=99s really not supposed to work, neither at compile time nor at ru= n time. Sometimes it turns out to work =E2=80=9Cby chance=E2=80=9D as in this case,= or because there are autoloads to defer the cycle. But in general, it should really be avoided. Won=E2=80=99t fix? :-) Ludo=E2=80=99. From unknown Sat Aug 16 18:48:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#12459: Strange issue with circular dependancies Resent-From: rixed@happyleptic.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 26 Nov 2012 08:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12459 X-GNU-PR-Package: guile X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 12459@debbugs.gnu.org Received: via spool by 12459-submit@debbugs.gnu.org id=B12459.135392017010245 (code B ref 12459); Mon, 26 Nov 2012 08:57:01 +0000 Received: (at 12459) by debbugs.gnu.org; 26 Nov 2012 08:56:10 +0000 Received: from localhost ([127.0.0.1]:39181 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TcuU5-0002fC-PV for submit@debbugs.gnu.org; Mon, 26 Nov 2012 03:56:09 -0500 Received: from eneide.happyleptic.org ([213.251.171.101]:33464) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TcuU3-0002f4-IV for 12459@debbugs.gnu.org; Mon, 26 Nov 2012 03:56:08 -0500 Received: from extranet.securactive.net ([82.240.34.113] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1TcuSO-0007Nv-Sm; Mon, 26 Nov 2012 09:54:24 +0100 Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.80) (envelope-from ) id 1TcuSJ-0002Vd-Oo; Mon, 26 Nov 2012 09:54:19 +0100 Date: Mon, 26 Nov 2012 09:54:19 +0100 From: rixed@happyleptic.org Message-ID: <20121126085419.GA7819@securactive.lan> References: <20120917114808.GA3394@securactive.lan> <873900ey72.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <873900ey72.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Score: 0.4 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.4 (/) > Won???t fix? :-) Fine with me. I couldn't name a single compiler that can handle circular dependancies. From unknown Sat Aug 16 18:48:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: rixed@happyleptic.org Subject: bug#12459: closed (Re: bug#12459: Strange issue with circular dependancies) Message-ID: References: <87k3t6g20j.fsf@gnu.org> <20120917114808.GA3394@securactive.lan> X-Gnu-PR-Message: they-closed 12459 X-Gnu-PR-Package: guile Reply-To: 12459@debbugs.gnu.org Date: Tue, 27 Nov 2012 21:41:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1354052462-28736-1" This is a multi-part message in MIME format... ------------=_1354052462-28736-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #12459: Strange issue with circular dependancies which was filed against the guile package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 12459@debbugs.gnu.org. --=20 12459: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D12459 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1354052462-28736-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 12459-done) by debbugs.gnu.org; 27 Nov 2012 21:40:18 +0000 Received: from localhost ([127.0.0.1]:42210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdSt8-0007ST-8E for submit@debbugs.gnu.org; Tue, 27 Nov 2012 16:40:18 -0500 Received: from xanadu.aquilenet.fr ([88.191.123.111]:38529) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TdSt6-0007SK-A3 for 12459-done@debbugs.gnu.org; Tue, 27 Nov 2012 16:40:17 -0500 Received: from localhost (localhost [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 4B35AAD2F; Tue, 27 Nov 2012 22:38:21 +0100 (CET) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NRJpbtxSW6Nv; Tue, 27 Nov 2012 22:38:21 +0100 (CET) Received: from pluto (reverse-83.fdn.fr [80.67.176.83]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id DA303AD2B; Tue, 27 Nov 2012 22:38:20 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: 12459-done@debbugs.gnu.org Subject: Re: bug#12459: Strange issue with circular dependancies References: <20120917114808.GA3394@securactive.lan> <873900ey72.fsf@gnu.org> <20121126085419.GA7819@securactive.lan> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 7 Frimaire an 221 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Tue, 27 Nov 2012 22:38:20 +0100 In-Reply-To: <20121126085419.GA7819@securactive.lan> (rixed@happyleptic.org's message of "Mon, 26 Nov 2012 09:54:19 +0100") Message-ID: <87k3t6g20j.fsf@gnu.org> User-Agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 12459 wontfix thanks [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-Debbugs-Envelope-To: 12459-done Cc: rixed@happyleptic.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 12459 wontfix thanks [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4428] tags 12459 wontfix thanks ------------=_1354052462-28736-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Sep 2012 11:49:49 +0000 Received: from localhost ([127.0.0.1]:38525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZpk-0001Cc-SF for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:49:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33809) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TDZpi-0001CV-0H for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:49:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDZoR-0003an-PN for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:48:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:55454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoR-0003aj-Lw for submit@debbugs.gnu.org; Mon, 17 Sep 2012 07:48:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoQ-00012Z-J6 for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TDZoK-0003aD-S8 for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:26 -0400 Received: from eneide.happyleptic.org ([213.251.171.101]:46282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TDZoK-0003Uu-Lt for bug-guile@gnu.org; Mon, 17 Sep 2012 07:48:20 -0400 Received: from extranet.securactive.org ([82.234.213.170] helo=ccellier.rd.securactive.lan) by eneide.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1TDa2B-0007ru-NZ for bug-guile@gnu.org; Mon, 17 Sep 2012 14:02:39 +0200 Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.80) (envelope-from ) id 1TDZo8-0001rm-Ip for bug-guile@gnu.org; Mon, 17 Sep 2012 13:48:08 +0200 Date: Mon, 17 Sep 2012 13:48:08 +0200 From: rixed@happyleptic.org To: bug-guile@gnu.org Subject: Strange issue with circular dependancies Message-ID: <20120917114808.GA3394@securactive.lan> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline While the compiler does manage most circular dependancies, some cases still cannot be compiled. For instance, with the attached circ-{a,b,c}.scm the compilation of b fails with: % GUILE_LOAD_PATH=. guile-tools compile -Warity-mismatch -Wformat -Wunused-variable -Wduplicate-case-datum -Wbad-case-datum -o circ-b.go circ-b.scm Backtrace: In ice-9/boot-9.scm: 2131: 19 [save-module-excursion #] 2797: 18 [#] In unknown file: ?: 17 [primitive-load-path "circ-a" #f] In ice-9/eval.scm: 487: 16 [# (use-modules # #)] In ice-9/psyntax.scm: 1091: 15 [expand-top-sequence ((use-modules (circ-b) (circ-c))) () ...] 976: 14 [scan ((use-modules (circ-b) (circ-c))) () ...] 270: 13 [scan ((# #) #(syntax-object *unspecified* # #)) () (()) ...] In ice-9/boot-9.scm: 3258: 12 [process-use-modules (((circ-b)) ((circ-c)))] 621: 11 [map # ((#) (#))] 3259: 10 [# ((circ-c))] 2594: 9 [resolve-interface (circ-c) #:select ...] 2519: 8 [# # ...] 2786: 7 [try-module-autoload (circ-c) #f] 2131: 6 [save-module-excursion #] 2797: 5 [#] In unknown file: ?: 4 [primitive-load-path "circ-c" #f] In ice-9/eval.scm: 435: 3 [eval # ()] 432: 2 [eval # ()] In unknown file: ?: 1 [memoize-variable-access! # #f] In ice-9/boot-9.scm: 106: 0 [# unbound-variable ...] ice-9/boot-9.scm:106:20: In procedure #: ice-9/boot-9.scm:106:20: In procedure module-lookup: Unbound variable: fb Note that it compiles if you remove (circ-c) from used-modules in circ-a.scm. --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-a.scm" (define-module (circ-a)) (use-modules (circ-b) (circ-c)) (define x 123) (export x) (define (fa) (1+ (fb))) (export fa) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-b.scm" (define-module (circ-b)) (define (fb) (1+ (@ (circ-a) x))) (export fb) --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="circ-c.scm" (define-module (circ-c)) (define y (@ (circ-b) fb)) ; --LZvS9be/3tNcYl/X-- ------------=_1354052462-28736-1--