Building Shen from source

35 views
Skip to first unread message

Dallin Dahl

unread,
Sep 5, 2025, 9:06:28 AM (3 days ago) Sep 5
to Shen
I've tried several ways to build shen from the sources provided, so as to be able to hack on them.  However, when I follow the instructions in the Sources directory for the 39.1 kernel, I get the following error:

occurs? is a system function

I'm using the sbcl version of shen compiled from the provided klambda files, on Linux.  I've also tried using that version to compile the code at the shen-sources repo, but I get the error:

expt is a system function

I really prefer the sbcl runtime to chez scheme, but I can't seem to get it to build.  Am I missing something obvious?

Thanks!
--Dallin

dr.mt...@gmail.com

unread,
Sep 5, 2025, 3:30:57 PM (2 days ago) Sep 5
to Shen
I think what is happening is that you are trying to rebuild from scratch using a Shen
with stlib included.  By default, the SBCL implementation comes with stlib loaded.
Unfortunately some internal kernel functions have the same names as stlib ones
and so you get these overwrite errors.  You need a Shen without stlib to generate the
new KL files.  To do this you can use Bruno's version which AFAIK lacks stlib as a default
or you can generate your own by installing Shen under SBCL but removing the lines.

(cd "Lib")
(load "install.shen")
(cd "")
(tc '-)

which install stlib.

Mark

Dallin Dahl

unread,
Sep 5, 2025, 4:20:33 PM (2 days ago) Sep 5
to qil...@googlegroups.com
Thanks for looking at it. I tried commenting out those 4 lines
in install.lsp, but I'm still getting the same error about the
occurs? function.

Thanks!
--Dallin

dr.mt...@gmail.com

unread,
Sep 7, 2025, 5:04:28 PM (7 hours ago) Sep 7
to Shen
Just got back.  This is easy to fix.  Mail tomorrow.

Mark

Reply all
Reply to author
Forward
0 new messages