From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Scott N. Walck" Newsgroups: gmane.lisp.guile.user Subject: Re: set-current-module in .guile ? Date: Tue, 8 Apr 2008 11:41:39 -0400 Message-ID: <18427.37427.432863.278831@entangle.lvc.edu> References: <18423.46537.161648.253613@entangle.lvc.edu> <47F7E878.20609@wilsonjc.us> <87iqyvrpwj.fsf@gnu.org> <87ve2unnia.fsf@gnu.org> <87fxtxrdhw.fsf@gnu.org> <18426.14519.36960.278300@entangle.lvc.edu> <87ej9g4g8g.fsf@gnu.org> Reply-To: walck@lvc.edu NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1207669365 32629 80.91.229.12 (8 Apr 2008 15:42:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Apr 2008 15:42:45 +0000 (UTC) To: "guile-user@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 08 17:43:17 2008 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.50) id 1JjFyX-0007wa-7r for guile-user@m.gmane.org; Tue, 08 Apr 2008 17:43:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjFxt-0006rQ-Tz for guile-user@m.gmane.org; Tue, 08 Apr 2008 11:42:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JjFxS-0006JH-3Y for guile-user@gnu.org; Tue, 08 Apr 2008 11:42:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JjFxO-0006FK-VG for guile-user@gnu.org; Tue, 08 Apr 2008 11:42:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjFxO-0006F2-Oj for guile-user@gnu.org; Tue, 08 Apr 2008 11:41:58 -0400 Original-Received: from webmail.lvc.edu ([192.77.143.32] helo=lvc.edu) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1JjFxN-0006Fa-G7 for guile-user@gnu.org; Tue, 08 Apr 2008 11:41:58 -0400 Original-Received: from entangle.lvc.edu by lvc.edu (MDaemon PRO v9.6.4) with ESMTP id 60-md50000205364.msg for ; Tue, 08 Apr 2008 11:42:29 -0400 X-Spam-Processed: lvc.edu, Tue, 08 Apr 2008 11:42:29 -0400 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 10.1.28.214 X-Return-Path: walck@lvc.edu X-Envelope-From: walck@lvc.edu X-MDaemon-Deliver-To: guile-user@gnu.org In-Reply-To: <87ej9g4g8g.fsf@gnu.org> X-Mailer: VM 7.19 under Emacs 22.1.1 X-MDAV-Processed: lvc.edu, Tue, 08 Apr 2008 11:42:30 -0400 X-detected-kernel: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ 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:6528 Archived-At: Hi, I'm using SLIB 3a5 and Guile 1.8.3. I've had trouble with SLIB 3b1 also. Scott Ludovic Court=E8s writes: > Hi, >=20 > "Scott N. Walck" writes: >=20 > > [walck@entangle:~]$ guile > > guile> (load "/usr/local/src/guile-scmutils/src/load.scm") > > guile> (module-use! (current-module) generic-environment) > > #f > > guile> + > > # > > guile> (+ (vector 5 6) (vector 7 8)) > > Segmentation fault (core dumped) >=20 > It starts looking like something worrying from the Guile side. ;-) >=20 > I tried installing guile-scmutils to reproduce the problem but faile= d. > What version of Guile and SLIB are you using=3F >=20 > With SLIB 3b1 and Guile HEAD, I get: >=20 > $ guile -L ~/soft/lib/ -l load.scm > Backtrace: > In unknown file: > =3F: 0* [primitive-load "/home/ludo/soft/lib/slib/factor.scm"] > In /home/ludo/soft/lib/slib/factor.scm: > 90: 1* (define prime:sieve (bytes 0 0 1 1 0 1 0 1 ...)) > 90: 2 (define-public prime:sieve (bytes 0 0 1 1 0 1 0 1 ...)) > 90: 3 (begin (define-private prime:sieve (bytes 0 0 1 ...)) (ev= al-case (# #))) > In unknown file: > =3F: 4* (define-private prime:sieve (bytes 0 0 1 1 0 1 0 1 ...)= ) > In /home/ludo/soft/lib/slib/factor.scm: > 90: 5* [bytes 0 0 1 1 0 1 0 1 ...] > In /home/ludo/soft/lib/slib/byte.scm: > 61: 6 [list->array 1 #u32(32) (0 0 1 1 0 1 0 1 0 ...)] >=20 > /home/ludo/soft/lib/slib/byte.scm:61:3: In procedure list->array i= n expression (list->array 1 (A:fixN8b) ...): > /home/ludo/soft/lib/slib/byte.scm:61:3: Wrong number of arguments = to #array> >=20 > (Where `~/soft/lib' is that path to SLIB and `load.scm' is > guile-scmutils' load file.) >=20 > Actually, SLIB's `array' module isn't accessible from Guile for some= > reason: >=20 > guile> (use-modules (ice-9 slib)) > guile> (require 'array) > #t > guile> array=3F > # ;; <--- This is Guile's built-in = proc > guile> A:bool > # ;; <--- but this one's from SLIB >=20 > Any idea=3F >=20 > Thanks, > Ludovic. >=20 >=20 >=20 >=20 --=20 Scott N. Walck Associate Professor of Physics Lebanon Valley College Annville, PA 17003 phone: 717-867-6153 fax: 717-867-6075 email: walck@lvc.edu