From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#15602: Possible work-around Date: Fri, 06 Nov 2015 09:26:31 +0100 Message-ID: <87lhaby1mw.fsf@T420.taylan> References: <8761t19t4f.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1446798442 9787 80.91.229.3 (6 Nov 2015 08:27:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 08:27:22 +0000 (UTC) To: 15602@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Nov 06 09:27:12 2015 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZucMZ-0008G7-Tn for guile-bugs@m.gmane.org; Fri, 06 Nov 2015 09:27:12 +0100 Original-Received: from localhost ([::1]:37344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZucMZ-0005Ic-18 for guile-bugs@m.gmane.org; Fri, 06 Nov 2015 03:27:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZucMV-0005IX-Mb for bug-guile@gnu.org; Fri, 06 Nov 2015 03:27:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZucMQ-00071s-TY for bug-guile@gnu.org; Fri, 06 Nov 2015 03:27:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZucMQ-00071o-QM for bug-guile@gnu.org; Fri, 06 Nov 2015 03:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZucMQ-0001TG-Hd for bug-guile@gnu.org; Fri, 06 Nov 2015 03:27:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <8761t19t4f.fsf@gnu.org> Resent-From: taylanbayirli@gmail.com (Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 06 Nov 2015 08:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15602 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 15602-submit@debbugs.gnu.org id=B15602.14467984135636 (code B ref 15602); Fri, 06 Nov 2015 08:27:02 +0000 Original-Received: (at 15602) by debbugs.gnu.org; 6 Nov 2015 08:26:53 +0000 Original-Received: from localhost ([127.0.0.1]:55249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZucMG-0001Sp-Sz for submit@debbugs.gnu.org; Fri, 06 Nov 2015 03:26:53 -0500 Original-Received: from mail-wm0-f49.google.com ([74.125.82.49]:34768) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZucLx-0001SC-2N for 15602@debbugs.gnu.org; Fri, 06 Nov 2015 03:26:51 -0500 Original-Received: by wmnn186 with SMTP id n186so35175044wmn.1 for <15602@debbugs.gnu.org>; Fri, 06 Nov 2015 00:26:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=amFX440//YqZCgw++EJDA1Z9nS95AWzFverSwHybfnI=; b=q0nOCm9kiPitXrwpHMfrz2yTfMTvp6OCaBHpmW0n4MmNnw59e7A/YXuZOByOaZbp4o jE1yBxq7mN2O+6LcDV/YPXOhlEkIic2TRP4CsU1m/Cp9TUbqaN9+Rq9rdFERqn8Ccn7U qQsUwUPetIZotC2cL3juJfAGPAza8TPBDdLOn5Q8cxrAKT3KkQBKr8vqvYQrvmHsC8x0 X8zybAeKBa0KLCEXOh9iEScktRmypr/SvsLhBclhg8dkHIK9v8u6MVy//KHitxv8m6Wm e0rmO4mmnCXI7PG5f0R9JZPvunbfs7QpIEq4JmDNOkmQ/INnlMwuV9OgsUt9JNjRlQeq zQ0A== X-Received: by 10.28.8.205 with SMTP id 196mr9028940wmi.50.1446798392410; Fri, 06 Nov 2015 00:26:32 -0800 (PST) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id w66sm1800064wme.11.2015.11.06.00.26.31 for <15602@debbugs.gnu.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2015 00:26:31 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7880 Archived-At: A possible work-around seems to be to use 'load' or 'load-compiled' on a module file after compiling it. As far as I understand, the problem is that Guile somehow ends up with a "degenerate" version of the module in the run-time after it's compiled but not fully loaded, so we alleviate that by explicitly loading it. I know near to nothing about the deeper mechanisms at play here though, so I might be off. In any case, changing guile --no-auto-compile -L . -c \ '(use-modules (system base compile)) (for-each compile-file (list "one.scm" "three.scm" "two.scm"))' to guile --no-auto-compile -L . -c \ '(use-modules (system base compile)) (for-each (lambda (file) (compile-file file) (load file)) (list "one.scm" "three.scm" "two.scm"))' alleviates the unbound variable error in this case. Related thread: https://lists.gnu.org/archive/html/guix-devel/2015-11/msg00143.html Taylan