chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Module unresolved error


From: Michael Silver
Subject: [Chicken-users] Module unresolved error
Date: Tue, 14 Jun 2016 11:09:09 -0400

Hello,

I’m new to CHICKEN and I’m working on converting a large Guile codebase to CHICKEN. The codebase is a collection of shared libraries (each library in a separate .scm file), collectively known as “lab-core”. So, I’ve packaged it all as an egg called “lab-core” with each individual .scm file as it’s own module (under different names). Does this seem like a reasonable way to package such a project?

As I go file by file converting to CHICKEN modules, I keep running into “module unresolved” errors when attempting to install my egg via chicken-install.

Unfortunately, the output gives no indication of which function is causing the error or why, and the only way I’ve been able to figure this out is by commenting out chunks of code and narrowing down until I find the offending function. If I delete that function, the module compiles perfectly and I can use the rest of the functions just as you would expect. What does "module unresolved” mean and is there a better way to figure out what is causing it?

I’ve attached a MWE where loglevel is a stripped-down version of one such library causing the “module unresolved” error. Here are the steps to reproduce:
$ cd lab-core
lab-core$ chicken-install -debug
(see attached output.txt for the debug output)

Compare this to:
$ csi
> (load “loglevel-no-module.scm”)
> (err-puts "foo" 42 "!”)
foo42!
“!"
which shows my functions working perfectly as long as I’m not using module syntax.

Why would compiling into a module cause an error when my functions work fine in the REPL? Any help would be appreciated.

System information:
Ubuntu 14.04
Chicken Version 4.8.0.5 (stability/4.8.0) (rev 5bd53ac)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2013-10-03 on aeryn.xorinia.dim (Darwin)
installed via sudo apt-get install chicken-bin

Thank you,

Michael

Attachment: lab-core.zip
Description: Zip archive

Attachment: loglevel-no-module.scm
Description: Binary data

Attachment: output.txt
Description: Text document

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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