[gambit-list] Status of compiling R7RS programs

Lassi Kortela lassi at lassi.io
Mon Nov 11 11:03:59 EST 2019


Is there a way to compile a R7RS program that uses a R7RS library into a 
standalone executable using the latest Gambit from git?

The sample implementation for draft SRFI 175 works fine with gsi. gsc 
produces executables without complaining, but when trying to run those 
executables, they exit with code 70 and don't write anything to stdout 
or stderr. Using -:debug= flags to redirect the output does not cause 
any messages to be shown either.

Here's how to reproduce the problem:

$ git clone -q https://github.com/lassik/srfi-175.git ~/tmp/srfi-175 
--branch gambit
$ cd ~/tmp/srfi-175
$ srfi/compile-gambit-r7rs.sh
Entering directory '/Users/lassi/tmp/srfi-175'
+ gsc-script -:r7rs -exe . srfi/examples.scm
+ gsc-script -:r7rs -exe . srfi/tests.scm
$ git ls-files --others
srfi/examples
srfi/tests
$ srfi/examples; echo "exited with code $?"
exited with code 70
$ srfi/tests; echo "exited with code $?"
exited with code 70

The two programs are srfi/examples.scm and srfi/tests.scm; both depend 
on the R7RS library srfi/175.sld. Note that the programs (.scm files) 
are not wrapped within `define-library` forms.




More information about the Gambit-list mailing list