From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Maggi Newsgroups: gmane.lisp.guile.user Subject: Re: [r6rs] abusive request for help on "unbound variable" error Date: Sun, 21 Nov 2010 08:35:29 +0100 Message-ID: <87r5ef5dtq.fsf@rapitore.luna> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290324876 12612 80.91.229.12 (21 Nov 2010 07:34:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 07:34:36 +0000 (UTC) Cc: guile-user@gnu.org To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 21 08:34:32 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PK4RU-0007ri-IQ for guile-user@m.gmane.org; Sun, 21 Nov 2010 08:34:32 +0100 Original-Received: from localhost ([127.0.0.1]:39050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PK4RT-00020h-I4 for guile-user@m.gmane.org; Sun, 21 Nov 2010 02:34:31 -0500 Original-Received: from [140.186.70.92] (port=46190 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PK4RP-00020c-Ny for guile-user@gnu.org; Sun, 21 Nov 2010 02:34:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PK4RO-00034E-8P for guile-user@gnu.org; Sun, 21 Nov 2010 02:34:27 -0500 Original-Received: from relay-pt1.poste.it ([62.241.4.164]:58618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PK4RO-00033u-2t for guile-user@gnu.org; Sun, 21 Nov 2010 02:34:26 -0500 Original-Received: from rapitore.luna (93.147.76.226) by relay-pt1.poste.it (8.5.121.01) (authenticated as marco.maggi-ipsu@poste.it) id 4CE8612700004E16; Sun, 21 Nov 2010 08:34:21 +0100 Original-Sender: marco.maggi-ipsu@poste.it X-Loop: marco@maggi.it X-Mailer: GNU Emacs Original-Lines: 75 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8227 Archived-At: "Andy Wingo" wrote: >On Thu 18 Nov 2010 22:25, Marco Maggi writes: > >> With Guile's master branch checkout >> 8d10ccae79ff46f0ebea92ba36acfaebafba8d86 on an >> i686-pc-linux-gnu I get the following error: > > Glad you found your problem in other mails. I have not. I was wrong regarding bindings not being re-exported (I forgot what my local scripting infrastructure did); but I still get the "unbound variable" error from Guile. The only thing I can guess (after trying to comment/uncomment random forms) is that it is a problem with the expander possibly in its interaction with compiled code, because all the other R6RS implementations work fine. Also I have found this: when I run the test with "--autocompile" (starting with a clean cache) I get the error: GUILE_LOAD_PATH=. guile -l guile-r6rs-setup.scm --autocompile -s ./tests/test-annotated-types.sps ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling guile-r6rs-setup.scm [...] ;;; WARNING: compilation of ./tests/test-annotated-types.sps failed: ;;; key vm-error, throw_args (vm-run "VM: Unbound variable: ~s" (#>)) guile: uncaught throw to vm-error: (vm-run "VM: Unbound variable: ~s" (#>)) make: *** [gtest] Error 1 but when running with "--no-autocompile" (with a clean cache) I get: GUILE_LOAD_PATH=. guile -l guile-r6rs-setup.scm --no-autocompile -s ./tests/test-annotated-types.sps Backtrace: In ice-9/boot-9.scm: 62: 19 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 389: 18 [eval # #] In ice-9/boot-9.scm: 1858: 17 [save-module-excursion #] 1149: 16 [load "./tests/test-annotated-types.sps" #f] 1051: 15 [%start-stack load-stack ...] 1056: 14 [#] In unknown file: ?: 13 [primitive-load "./tests/test-annotated-types.sps"] In ice-9/eval.scm: 458: 12 [# (let () # #t)] In ice-9/psyntax.scm: 1223: 11 [chi-top (let () (define-type-annotation + (# fx+) ...) ...) () ...] 2074: 10 [chi-let (let () (define-type-annotation + (# fx+) ...) ...) () ...] 1421: 9 [parse ((# . #) (# . #)) () () ...] 1072: 8 [syntax-type (define-type-annotation + # # ...) (#) (# #) ...] 1368: 7 [chi-macro # # # ...] In ice-9/eval.scm: 389: 6 [eval # #] 389: 5 [eval # #] 349: 4 [eval #))> (# # # # . #)] 356: 3 [eval # (# # # # . #)] In unknown file: ?: 2 [memoize-variable-access! # #] In ice-9/boot-9.scm: 115: 1 [# unbound-variable ...] In unknown file: ?: 0 [catch-closure unbound-variable #f "Unbound variable: ~S" (assert) #f] ERROR: Unbound variable: assert make: *** [gtest] Error 1 I do use ASSERT in the code, but I do no strange things with its binding. Unfortunately I have no time to dive in the internals of Scheme implementations. -- Marco Maggi