From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.lisp.guile.devel Subject: on second/.go-cached run: ERROR: Unbound variable: for-each - simplified Date: Wed, 23 Feb 2011 12:54:30 +0100 Organization: www.AvatarAcademy.nl Message-ID: <1298462070.10074.358.camel@vuurvlieg> References: <1296764433.19670.282.camel@vuurvlieg> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-Je8BqJuDWpRwqRhFFh0y" X-Trace: dough.gmane.org 1298462307 8024 80.91.229.12 (23 Feb 2011 11:58:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2011 11:58:27 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Feb 23 12:58:23 2011 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.69) (envelope-from ) id 1PsDLf-0005f5-69 for guile-devel@m.gmane.org; Wed, 23 Feb 2011 12:58:21 +0100 Original-Received: from localhost ([127.0.0.1]:38837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsDJ0-00083k-0x for guile-devel@m.gmane.org; Wed, 23 Feb 2011 06:54:54 -0500 Original-Received: from [140.186.70.92] (port=53091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsDIk-00081u-TR for guile-devel@gnu.org; Wed, 23 Feb 2011 06:54:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsDIg-00040b-U1 for guile-devel@gnu.org; Wed, 23 Feb 2011 06:54:36 -0500 Original-Received: from smtp-vbr19.xs4all.nl ([194.109.24.39]:3517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsDIg-0003zx-Lm for guile-devel@gnu.org; Wed, 23 Feb 2011 06:54:34 -0500 Original-Received: from [192.168.1.112] (peder.onsbrabantnet.nl [88.159.206.46] (may be forged)) (authenticated bits=0) by smtp-vbr19.xs4all.nl (8.13.8/8.13.8) with ESMTP id p1NBsVbU051395; Wed, 23 Feb 2011 12:54:31 +0100 (CET) (envelope-from janneke-list@xs4all.nl) In-Reply-To: <1296764433.19670.282.camel@vuurvlieg> X-Mailer: Evolution 2.30.3 X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-operating-system: by eggs.gnu.org: FreeBSD 4.6-4.9 X-Received-From: 194.109.24.39 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:11694 --=-Je8BqJuDWpRwqRhFFh0y Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by smtp-vbr19.xs4all.nl id p1NBsVbU051395 Jan Nieuwenhuizen schreef op do 03-02-2011 om 21:20 [+0100]: This morning I've spend some time to reduce this problem into a single scheme file, see attached. =20 Again, here's what happens when I run it twice, starting from a clean cache. =20 First run 12:47:07 janneke@vuurvlieg:~/vc/schikkers-list $ rm -rf ~/.cache/guile 12:47:10 janneke@vuurvlieg:~/vc/schikkers-list $ ./compile-cache-run-problem.scm=20 ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling ./compile-cache-run-problem.scm ;;; compiled /home/janneke/.cache/guile/ccache/2.0-0.T-LE-4/home/jann= eke/vc/schikkers-list/compile-cache-run-problem.scm.go HALLO 12:47:16 janneke@vuurvlieg:~/vc/schikkers-list Second run $ ./compile-cache-run-problem.scm=20 Backtrace: In module/ice-9/boot-9.scm: 170: 13 [catch #t # ...] In unknown file: ?: 12 [catch-closure] In module/ice-9/boot-9.scm: 62: 11 [call-with-prompt prompt0 ...] In module/ice-9/eval.scm: 389: 10 [eval # #] In module/ice-9/boot-9.scm: 1864: 9 [save-module-excursion #] 1172: 8 [load "./compile-cache-run-problem.scm" #f] In unknown file: ?: 7 [load-compiled/vm "/home/janneke/.cache/guile/ccache/2.0-0.T-= LE-4/home/janneke/vc/schikkers-list/compile-cache-run-problem.scm.go"] In ./compile-cache-run-problem.scm: 20: 6 [#] In module/oop/goops.scm: 1552: 5 [# #] In unknown file: ?: 4 [%initialize-object #< 8b01010> ()] In module/oop/goops.scm: 1552: 3 [# #] In ./compile-cache-run-problem.scm: 12: 2 [# # ...] In module/ice-9/boot-9.scm: 115: 1 [# unbound-variable ...] In unknown file: ?: 0 [catch-closure unbound-variable "module-lookup" ...] ERROR: In procedure module-lookup: ERROR: Unbound variable: for-each [1]12:47:17 janneke@vuurvlieg:~/vc/schikkers-list $=20 Greetings, Jan. --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.= nl =20 --=-Je8BqJuDWpRwqRhFFh0y Content-Disposition: attachment; filename="compile-cache-run-problem.scm" Content-Type: text/x-scheme; name="compile-cache-run-problem.scm"; charset="UTF-8" Content-Transfer-Encoding: 7bit #! /bin/sh # -*- scheme -*- exec guile --debug -s $0 "$@" !# (define-module (ikli ikli) #:use-module (oop goops) #:use-module (srfi srfi-1) #:duplicates (merge-generics)) (define-class ()) (define-method (initialize (obj ) . initargs) (let* ((self (next-method))) (for-each (lambda (x) #f) '()) (map (lambda (x) #f) '()) self)) (define-class () (music #:init-form (make ))) (define-class () (notation #:init-value (make ))) (define (main) (format #t "HALLO\n")) (main) --=-Je8BqJuDWpRwqRhFFh0y--