[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] error unbound variable w/ srfi-13 and/or module importin
From: |
masukomi |
Subject: |
[Chicken-users] error unbound variable w/ srfi-13 and/or module importing |
Date: |
Thu, 29 Aug 2019 21:13:54 -0400 |
I've had a heck of a time getting things to compile statically with
modules. Now, I'm pretty sure I've discovered a related problem that's
either _in_ or triggered by srfi-13
here's my boiled down test harness (a simple hello world)
testing.scm
```
#!/usr/bin/env csi -script
(import hello)
(howdy "world")
```
hello.scm
```
(module hello
(howdy)
(import scheme)
(import chicken.base)
(import chicken.format)
(import srfi-13) ; <------ this line is the problem
(define (howdy who)
(print (format "howdy ~A~%" who))))
```
compilation:
```
csc -unit hello -cJ hello.scm; csc -link hello -static testing.scm; ./testing
```
error
```
Error: unbound variable:
|\xcf\xfa\xed\xfe\x07\x00\x00\x01\x03\x00\x00\x00\x08\x00\x00\x00|
Call history:
<syntax> (##core#undefined)
<syntax> (import scheme chicken.base chicken.syntax)
<syntax> (##core#begin (##core#require library scheme#)
(##core#require library chicken.base#) (##core#requir...
<syntax> (##core#require library scheme#)
<syntax> (##sys#load-library (##core#quote library))
<syntax> (##core#quote library)
<syntax> (##core#require library chicken.base#)
<syntax> (##sys#load-library (##core#quote library))
<syntax> (##core#quote library)
<syntax> (##core#begin (##core#require expand chicken.syntax#))
<syntax> (##core#require expand chicken.syntax#)
<syntax> (##sys#load-library (##core#quote expand))
<syntax> (##core#quote expand)
<eval> (##sys#load-library (##core#quote library))
<eval> (##sys#load-library (##core#quote library))
<eval> (##sys#load-library (##core#quote expand)) <--
```
If i comment out the `srfi-13` import it runs without error. If I
leave it in, it does not.
Note that running the source file `./testing.scm` works perfectly.
it's ONLY the compiled version that gives the error. I've tried
uninstalling and reinstalling 'srfi-13`. I've also tried importing
`utf8-srfi-13` instead of `srfi-13`. I've tried this in different
files to make sure it wasn't some weird hidden character in one file.
I'm kind-of at a loss as to what's going on here. Any help would be appreciated.
Thanks in advance,
-Kay
- [Chicken-users] error unbound variable w/ srfi-13 and/or module importing,
masukomi <=