From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marek Kubica Newsgroups: gmane.lisp.guile.user Subject: Modules Date: Wed, 8 Dec 2010 12:45:02 +0100 Message-ID: <20101208124502.5f25b64d@halmanfloyd> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291810277 32089 80.91.229.12 (8 Dec 2010 12:11:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 12:11:17 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 08 13:11:13 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 1PQIrY-0004IO-4z for guile-user@m.gmane.org; Wed, 08 Dec 2010 13:11:13 +0100 Original-Received: from localhost ([127.0.0.1]:41509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQIrW-00056p-LA for guile-user@m.gmane.org; Wed, 08 Dec 2010 07:11:10 -0500 Original-Received: from [140.186.70.92] (port=54538 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQISl-0001VD-U6 for guile-user@gnu.org; Wed, 08 Dec 2010 06:45:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQISk-0001F9-4j for guile-user@gnu.org; Wed, 08 Dec 2010 06:45:35 -0500 Original-Received: from coaxial.xivilization.net ([178.63.18.39]:36405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQISj-0001Cu-Uc for guile-user@gnu.org; Wed, 08 Dec 2010 06:45:34 -0500 Original-Received: from ppp-93-104-127-226.dynamic.mnet-online.de ([93.104.127.226] helo=halmanfloyd) by coaxial.xivilization.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1PQISb-0000LQ-Tk for guile-user@gnu.org; Wed, 08 Dec 2010 12:45:25 +0100 X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:8298 Archived-At: Hi, I tried executing the modules example: $ cd guile-git/examples/module $ guile -s main (whereas guile = 1.9.13) but I get an error: ;;; note: autocompilation is enabled, set GUILE_AUTO_COMPILE=0 ;;; or pass the --no-autocompile argument to disable. ;;; compiling main ;;; WARNING: compilation of main failed: ;;; key misc-error, throw_args (#f "~A ~S" ("no code for module" (module-0)) #f) Backtrace: In ice-9/boot-9.scm: 170: 17 [catch #t # ...] In unknown file: ?: 16 [catch-closure] In ice-9/boot-9.scm: 62: 15 [call-with-prompt prompt0 ...] In ice-9/eval.scm: 389: 14 [eval # #] In ice-9/boot-9.scm: 1840: 13 [save-module-excursion #] 1149: 12 [load "main" #f] 1047: 11 [%start-stack load-stack ...] 1052: 10 [#] In unknown file: ?: 9 [primitive-load "main"] In ice-9/eval.scm: 458: 8 [# #] In ice-9/psyntax.scm: 908: 7 [chi-top-sequence ((#(syntax-object let # ...) (#) (# #) ...)) () ...] 1159: 6 [chi-top (#(syntax-object let # ...) (#) (# #) ...) () ...] In ice-9/eval.scm: 374: 5 [eval # ()] In ice-9/boot-9.scm: 2389: 4 [process-define-module ((main) #:filename "main" ...)] 2307: 3 [resolve-interface (module-0) #:select ...] In unknown file: ?: 2 [scm-error misc-error #f "~A ~S" ("no code for module" (module-0)) #f] In ice-9/boot-9.scm: 115: 1 [# misc-error ...] In unknown file: ?: 0 [catch-closure misc-error #f "~A ~S" ("no code for module" (module-0)) #f] ERROR: In procedure catch-closure: ERROR: no code for module (module-0) Is there a way to add the current directory to the search path? I think this should be default, just like in Python, otherwise creating modules is a really big hassle. regards, Marek