alvatar / spheres

Spheres - A set of tools and libraries for practical Scheme. Multiplatform and Mobile.
MIT License
69 stars 10 forks source link

can't compile scsc #17

Closed 11111000000 closed 8 years ago

11111000000 commented 8 years ago
gambit → λ git master →  → ./compile-scsc.sh 
Unknown switch -e - ignoring
GPL Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.

Error: /undefinedfilename in (\(parameterize \(\(current-readtable \(readtable-sharing-allowed?-set \(current-readtable\) 'serialize\)\)\) \(compile-file "syntax-case"\)\))
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1194/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.18: Unrecoverable error, exit code 1
11111000000 commented 8 years ago

gambit → λ git master → → gsc -v GPL Ghostscript 9.18 (2015-10-05) Copyright (C) 2015 Artifex Software, Inc. All rights reserved.

11111000000 commented 8 years ago

Git version of gambit installed:

./compile-scsc.sh 
Unknown switch -e - ignoring
GPL Ghostscript 9.18 (2015-10-05)
Copyright (C) 2015 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (\(parameterize \(\(current-readtable \(readtable-sharing-allowed?-set \(current-readtable\) 'serialize\)\)\) \(compile-file "syntax-case"\)\))
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1194/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 9.18: Unrecoverable error, exit code 1
cp: не удалось выполнить stat для «syntax-case.o1»
dpflug commented 8 years ago

It's trying to interpret Gambit Scheme using Ghostscript. Assuming you're using Arch Linux, you'll need to use the gambitc binary.

$ sed -i 's/^gsc/gambitc/' compile-scsc.sh
alvatar commented 8 years ago

Thank you @dpflug . Indeed the Ghostscript executable sometimes gets in the way.