Geiser w/ mit-scheme requires compiled file, but does so at runtime
Created by: cwebber
I installed geiser with Guix (currently under the "geiser-next" package, which uses a version from git master which should have mit-scheme support) and discovered the following error:
MIT/GNU Scheme running under GNU/Linux Type `^C' (control-C) followed by `H' to obtain information about interrupts. Copyright (C) 2014 Massachusetts Institute of Technology This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Image saved on Saturday May 17, 2014 at 2:39:25 AM Release 9.2 || Microcode 15.3 || Runtime 15.7 || SF 4.41 || LIAR/x86-64 4.118 Edwin 3.116 ;Loading "/gnu/store/2g1rn0y1q7vgv9mkid337cqmlppb6vjv-geiser-next-0.8.1-28c85839/share/geiser/mit/geiser/load.scm"... ; Loading "compile.scm"... ; Loading "make.com"... ; Loading "cref-unx.pkd"... done ; Loading "mset.com"... done ; Loading "object.com"... done ; Loading "toplev.com"... done ; Loading "anfile.com"... done ; Loading "conpkg.com"... done ; Loading "forpkg.com"... done ; Loading "redpkg.com"... done ; ... done ; Generating SCode for file: "emacs.scm" => "emacs.bin"... ;The object "/gnu/store/2g1rn0y1q7vgv9mkid337cqmlppb6vjv-geiser-next-0.8.1-28c85839/share/geiser/mit/geiser/emacs.bin", passed as the second argument to primitive-fasdump, is not in the correct range. ;To continue, call RESTART with an option number: ; (RESTART 2) => Skip processing file /gnu/store/2g1rn0y1q7vgv9mkid337cqmlppb6vjv-geiser-next-0.8.1-28c85839/share/geiser/mit/geiser/emacs.scm ; (RESTART 1) => Return to read-eval-print level 1. 2 error>
It looks like this is trying to compile emacs.scm to emacs.bin at runtime. Of course, if you're running an immutable package like in Guix (or really probably any package manager that installs things in a read-only location, which includes Debian/Fedora/etc), you can't go writing this file after the package has been built.
Maybe at build time, this file could be compiled? Or a script could be provided to optionally compile it?