From: Marco Maggi <marco.maggi-ipsu@poste.it>
To: Andy Wingo <wingo@pobox.com>
Cc: guile-user@gnu.org
Subject: Re: [r6rs] abusive request for help on "unbound variable" error
Date: Sun, 21 Nov 2010 08:35:29 +0100 [thread overview]
Message-ID: <87r5ef5dtq.fsf@rapitore.luna> (raw)
In-Reply-To: m3bp5jzkwk.fsf@unquote.localdomain
"Andy Wingo" wrote:
>On Thu 18 Nov 2010 22:25, Marco Maggi <marco.maggi-ipsu@poste.it> 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" (#<variable 851b5e8 value: #<undefined>>))
guile: uncaught throw to vm-error: (vm-run "VM: Unbound variable: ~s" (#<variable 851b5e8 value: #<undefined>>))
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 #<procedure 825ceb8 at ice-9/boot-9.scm:1871:3 ()>]
1149: 16 [load "./tests/test-annotated-types.sps" #f]
1051: 15 [%start-stack load-stack ...]
1056: 14 [#<procedure 825ce28 ()>]
In unknown file:
?: 13 [primitive-load "./tests/test-annotated-types.sps"]
In ice-9/eval.scm:
458: 12 [#<procedure 8133ba0 at ice-9/eval.scm:451:4 (exp)> (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 #<procedure 843de70 at ice-9/eval.scm:377:13 (a)> # # ...]
In ice-9/eval.scm:
389: 6 [eval # #]
389: 5 [eval # #]
349: 4 [eval #<memoized (assert (identifier? <3>))> (# # # # . #)]
356: 3 [eval #<memoized assert> (# # # # . #)]
In unknown file:
?: 2 [memoize-variable-access! #<memoized assert> #<directory # 8458828>]
In ice-9/boot-9.scm:
115: 1 [#<procedure 80a82f8 at ice-9/boot-9.scm:109:6 (thrown-k . args)> 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
next prev parent reply other threads:[~2010-11-21 7:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 21:25 [r6rs] abusive request for help on "unbound variable" error Marco Maggi
2010-11-19 11:48 ` Marco Maggi
2010-11-19 11:52 ` Marco Maggi
2010-11-20 22:32 ` Andy Wingo
2010-11-21 7:35 ` Marco Maggi [this message]
2010-11-21 22:12 ` Andreas Rottmann
2010-11-21 22:27 ` Andreas Rottmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r5ef5dtq.fsf@rapitore.luna \
--to=marco.maggi-ipsu@poste.it \
--cc=guile-user@gnu.org \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).