From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: [r6rs] abusive request for help on "unbound variable" error Date: Sun, 21 Nov 2010 23:12:29 +0100 Message-ID: <878w0mz5pu.fsf@delenn.lan> References: <87r5ef5dtq.fsf@rapitore.luna> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290377582 26769 80.91.229.12 (21 Nov 2010 22:13:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 21 Nov 2010 22:13:02 +0000 (UTC) Cc: Andy Wingo , guile-user@gnu.org To: Marco Maggi Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 21 23:12:52 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 1PKI9T-0008I8-DY for guile-user@m.gmane.org; Sun, 21 Nov 2010 23:12:51 +0100 Original-Received: from localhost ([127.0.0.1]:41579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKI9S-0008CZ-PH for guile-user@m.gmane.org; Sun, 21 Nov 2010 17:12:50 -0500 Original-Received: from [140.186.70.92] (port=38361 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKI9G-0008CU-6S for guile-user@gnu.org; Sun, 21 Nov 2010 17:12:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKI9E-00062w-NI for guile-user@gnu.org; Sun, 21 Nov 2010 17:12:38 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:54836 helo=mail.gmx.net) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PKI9E-00062k-AR for guile-user@gnu.org; Sun, 21 Nov 2010 17:12:36 -0500 Original-Received: (qmail invoked by alias); 21 Nov 2010 22:12:35 -0000 Original-Received: from 83-215-154-5.hage.dyn.salzburg-online.at (EHLO nathot.lan) [83.215.154.5] by mail.gmx.net (mp008) with SMTP; 21 Nov 2010 23:12:35 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX19NtvlVjoNN8rTi17xY3WB/RdQwfbICgHCAlsAFo1 u1sha/ADrJBFnz Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 039503A695; Sun, 21 Nov 2010 23:12:34 +0100 (CET) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TL2hyYjh3mFu; Sun, 21 Nov 2010 23:12:29 +0100 (CET) Original-Received: from delenn.lan (delenn.lan [192.168.3.11]) by nathot.lan (Postfix) with ESMTP id C0E2C3A693; Sun, 21 Nov 2010 23:12:29 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id 709582C029C; Sun, 21 Nov 2010 23:12:29 +0100 (CET) In-Reply-To: <87r5ef5dtq.fsf@rapitore.luna> (Marco Maggi's message of "Sun, 21 Nov 2010 08:35:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:8228 Archived-At: Marco Maggi writes: > "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 > Yep, that's the unfortunatly quite non-descriptive error you'll get when a module exports a binding it does not define. > but when running with "--no-autocompile" (with a clean > cache) I get: > [...] > 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. > Indeed `assert' is missing from Guile ATM, but I've submitted a patch a while ago that fixes that (among other things): I hope that someone gives that patch a review soon (*hint* *hint*)... Regards, Rotty -- Andreas Rottmann --