From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Fishman Newsgroups: gmane.lisp.guile.devel Subject: Problems with LOAD and latest build Date: Sat, 29 Aug 2009 11:49:18 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251561006 1557 80.91.229.12 (29 Aug 2009 15:50:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Aug 2009 15:50:06 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Aug 29 17:49:59 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MhQBi-0004RA-OJ for guile-devel@m.gmane.org; Sat, 29 Aug 2009 17:49:59 +0200 Original-Received: from localhost ([127.0.0.1]:60780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhQBi-0007H1-8Q for guile-devel@m.gmane.org; Sat, 29 Aug 2009 11:49:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhQBf-0007Go-8J for guile-devel@gnu.org; Sat, 29 Aug 2009 11:49:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhQBZ-0007EE-KW for guile-devel@gnu.org; Sat, 29 Aug 2009 11:49:53 -0400 Original-Received: from [199.232.76.173] (port=45947 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhQBZ-0007Dn-Ct for guile-devel@gnu.org; Sat, 29 Aug 2009 11:49:49 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:59748) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhQBY-00020F-Nc for guile-devel@gnu.org; Sat, 29 Aug 2009 11:49:49 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MhQBU-0004NM-5a for guile-devel@gnu.org; Sat, 29 Aug 2009 17:49:44 +0200 Original-Received: from fl-71-51-74-250.dhcp.embarqhsd.net ([71.51.74.250]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2009 17:49:44 +0200 Original-Received: from barry_fishman by fl-71-51-74-250.dhcp.embarqhsd.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Aug 2009 17:49:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 126 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: fl-71-51-74-250.dhcp.embarqhsd.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:9Nqwj9TaLJne7KTZbnSd5aJZII4= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9200 Archived-At: This concerns an August 28 build of guile master. I have a simple syntax definition: (define-syntax dotimes (syntax-rules () ((dotimes ( ) ...) (let ((count )) (let loop (( 0)) (if (< count) (begin ... (loop (+ 1))) #f)))) ((dotimes ( ) ...) (let ((count )) (let loop (( 0)) (if (< count) (begin ... (loop (+ 1))) )))))) If I store it in a file "dotimes.scm" and use the script "tryme" #! /bin/sh # -*- scheme -*- exec guile -s "$0" $* !# (load "dotimes.scm") (dotimes (indx 5) (display indx) (newline)) I get the following output: $ ./tryme ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling ./tryme ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/tryme.go ;;; compiling dotimes.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/dotimes.scm.go ERROR: In procedure module-lookup: ERROR: unbound variable: indx Also (from a clean cache) $ guile ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling /home/util64/guile/share/guile/1.9/ice-9/readline.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home/util64/guile/share/guile/1.9/ice-9/readline.scm.go Guile Scheme interpreter 0.5 on Guile 1.9.2 Copyright (C) 2001-2008 Free Software Foundation, Inc. Enter `,help' for help. scheme@(guile-user)> (load "tryme") ;;; compiling tryme ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/tryme.go ;;; compiling dotimes.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/dotimes.scm.go ERROR: In procedure module-lookup: ERROR: unbound variable: indx scheme@(guile-user)> And from a clean cache: $ guile ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling /home/util64/guile/share/guile/1.9/ice-9/readline.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home/util64/guile/share/guile/1.9/ice-9/readline.scm.go Guile Scheme interpreter 0.5 on Guile 1.9.2 Copyright (C) 2001-2008 Free Software Foundation, Inc. Enter `,help' for help. scheme@(guile-user)> (load "dotimes.scm") ;;; compiling dotimes.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/dotimes.scm.go scheme@(guile-user)> $ ./tryme ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling ./tryme ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/tryme.go ERROR: In procedure module-lookup: ERROR: unbound variable: indx $ But (also with a clean cache): $ guile ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling /home/util64/guile/share/guile/1.9/ice-9/readline.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home/util64/guile/share/guile/1.9/ice-9/readline.scm.go Guile Scheme interpreter 0.5 on Guile 1.9.2 Copyright (C) 2001-2008 Free Software Foundation, Inc. Enter `,help' for help. scheme@(guile-user)> (load "dotimes.scm") ;;; compiling dotimes.scm ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/dotimes.scm.go scheme@(guile-user)> (load "tryme") ;;; compiling tryme ;;; compiled /home2/barry/.cache/guile/ccache/1.9-0.D-LE-8/home2/barry/work/tryme.go 0 1 2 3 4 #f scheme@(guile-user)> $ ./tryme 0 1 2 3 4 $ -- Barry Fishman