Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shen-clisp fails to start on OSX when using the generated binary #9

Open
tizoc opened this issue Jan 13, 2018 · 2 comments
Open

shen-clisp fails to start on OSX when using the generated binary #9

tizoc opened this issue Jan 13, 2018 · 2 comments

Comments

@tizoc
Copy link
Member

tizoc commented Jan 13, 2018

It fails with this error: module 'syscalls' requires package OS.

But loading the generated shen.mem file works fine.

Something I noticed is that the generated shen binary's size is 7MB, while the lisp.run binary (that the 33KB clisp one seems to call) I have in my system is just 2.9MB in size.

After investigating a bit more, I found that the "OS" package is just an alias to the "POSIX" package. Also that when an image is saved, by default the packages listed in CUSTOM:*SYSTEM-PACKAGE-LIST* are saved with the image. I checked what that list looks like on my system and "POSIX" is in there:

("REGEXP" "POSIX" "I18N" "EXPORTING" "CS-COMMON-LISP" "SYSTEM" "COMMON-LISP" "EXT" "GRAY" "CHARSET" "CLOS" "SOCKET" "GSTREAM" "SCREEN")```

I haven't figured out what the problem is yet, what I have described is what I found so far.
@rkoeninger
Copy link
Member

I've never seen this on Windows or Linux. I know on Windows, you have to make sure that 2 additional DLLs (libintl-8.dll, libreadline6.dll) are in your path for bin\clisp\shen.exe to work.

The size of bin/clisp/shen is about the same and twice the size of lisp.run on other platforms, too. I didn't think too much of it - who knows what it has to include to make a standalone executable.

Here's the CUSTOM:*SYSTEM-PACKAGE-LIST* from Ubuntu: ("READLINE" "REGEXP" "POSIX" "I18N" "EXPORTING" "CS-COMMON-LISP" "SYSTEM" "COMMON-LISP" "EXT" "GRAY" "CHARSET" "CLOS" "SOCKET" "GSTREAM" "FFI" "SCREEN").

@tizoc
Copy link
Member Author

tizoc commented Oct 3, 2019

Haven't figured this one yet, but it seems it is related to stripping of binaries:

https://lists.gnu.org/archive/html/help-guix/2016-12/msg00098.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants