guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set-current-module in .guile ?


From: Scott N. Walck
Subject: Re: set-current-module in .guile ?
Date: Tue, 8 Apr 2008 11:41:39 -0400

Hi,

I'm using SLIB 3a5 and Guile 1.8.3.  I've had trouble with SLIB 3b1
also.

Scott


Ludovic Courtès writes:
 > Hi,
 > 
 > "Scott N. Walck" <address@hidden> writes:
 > 
 > > address@hidden:~]$ guile
 > > guile> (load "/usr/local/src/guile-scmutils/src/load.scm")
 > > guile> (module-use! (current-module) generic-environment)
 > > #f
 > > guile> +
 > > #<procedure g:+ args>
 > > guile> (+ (vector 5 6) (vector 7 8))
 > > Segmentation fault (core dumped)
 > 
 > It starts looking like something worrying from the Guile side.  ;-)
 > 
 > I tried installing guile-scmutils to reproduce the problem but failed.
 > What version of Guile and SLIB are you using?
 > 
 > With SLIB 3b1 and Guile HEAD, I get:
 > 
 >   $ guile -L ~/soft/lib/ -l load.scm
 >   Backtrace:
 >   In unknown file:
 >      ?: 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 ...)) (eval-case 
 > (# #)))
 >   In unknown file:
 >      ?: 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 ...)]
 > 
 >   /home/ludo/soft/lib/slib/byte.scm:61:3: In procedure list->array in 
 > expression (list->array 1 (A:fixN8b) ...):
 >   /home/ludo/soft/lib/slib/byte.scm:61:3: Wrong number of arguments to 
 > #<primitive-procedure list->array>
 > 
 > (Where `~/soft/lib' is that path to SLIB and `load.scm' is
 > guile-scmutils' load file.)
 > 
 > Actually, SLIB's `array' module isn't accessible from Guile for some
 > reason:
 > 
 >   guile> (use-modules (ice-9 slib))
 >   guile> (require 'array)
 >   #t
 >   guile> array?
 >   #<primitive-procedure array?>  ;; <--- This is Guile's built-in proc
 >   guile> A:bool
 >   #<procedure at1 opt> ;; <--- but this one's from SLIB
 > 
 > Any idea?
 > 
 > Thanks,
 > Ludovic.
 > 
 > 
 > 
 > 

-- 
Scott N. Walck
Associate Professor of Physics
Lebanon Valley College
Annville, PA 17003
phone: 717-867-6153
fax:   717-867-6075
email: address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]