chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Can't install Spock (binary works, spock library doe


From: Дмитрий
Subject: Re: [Chicken-users] Can't install Spock (binary works, spock library doesn't)
Date: Mon, 04 Jun 2012 17:56:30 +0400

> Attached is the current setup script, you can do
> 
> chicken-install -r spock
> 
> and copy the script into the "spock" subdirectory and do
> 
> cd spock
> chicken-install

It has been ALMOST installed, but now I'm having problems with the library 
files. ^^"

I had to make the following changes to your setup new script:

---[cut]---
39:
FROM (list "chicken-spock"
TO (list executable

57:
FROM: (list "library.js" '("spock/library.scm" "chicken-spock")
TO: (list "library.js" `("spock/library.scm" ,executable)

60:
FROM: (list "library-debug.js" '("spock/library.scm" "chicken-spock")
TO: (list "library-debug.js" `("spock/library.scm" ,executable)
---[/cut]---

Now I'm creating a simple file helloworld.scm and try to compile it:
>chicken-spock -o helloworld.js helloworld.scm

Error: library not found: "syntax.scm"

It works if I specify -library-path on my own:
>chicken-spock -o helloworld.js -library-path spock/spock/ helloworld.scm

It seems, the problem is here:
> copy "spock" "\usr\local\lib\chicken\6\spock"
> spock\library.scm
> spock\match.scm
> spock\spock-runtime-debug-min.js
> spock\spock-runtime-debug.js
> spock\spock-runtime-min.js
> spock\spock-runtime.js
> spock\syntax.scm
>       1 file(s) copied.

Instead of creating a directory, make created A FILE 
"C:\usr\local\lib\chicken\6\spock"
(with no extension) that begins with the following lines that contains
A CONCATENATION of files spock\library.scm, spock\match.scm,
spock\spock-runtime-debug-min.js, etc.

I hope this can be fixed.


If it is helpful, here is the full log:
---[cut]---
>chicken-install
retrieving ...
checking platform for `spock' ...
checking dependencies for `spock' ...
install order:
("spock")
installing spock: ...
changing current directory to .
  "\usr\local\bin\csi" -bnq -setup-mode -e "(require-library setup-api)" -e 
"(import setup-api)" -e "(setup-error-handling)" -e 
"(extension-name-and-version '(\"spock\" \"\"))" "spock.setup"
make: making spock-compiler.so
  ""\usr\local\bin\csc"" -feature compiling-extension -setup-mode    -sS 
spock-compiler.scm -O3 -d1 -J -o spock-compiler.so

Note: global variable `spock-compiler#spock-state-options-set!' is only locally 
visible and never used

Note: global variable `spock-compiler#symbolify' is only locally visible and 
never used

Note: global variable `spock-compiler#spock-state-mstore-set!' is only locally 
visible and never used

Note: global variable `spock-compiler#join' is only locally visible and never 
used
make: making spock-compiler.import.so
  ""\usr\local\bin\csc"" -feature compiling-extension -setup-mode    -s -O3 -d0 
spock-compiler.import.scm
make: making spock.so
  ""\usr\local\bin\csc"" -feature compiling-extension -setup-mode    -sS 
spock-module.scm -O3 -d1 -J -o spock.so
make: making chicken-spock.exe
  ""\usr\local\bin\csc"" -feature compiling-extension -setup-mode    -S -O3 -d0 
-feature standalone chicken-spock.scm -o chicken-spock
make: making spock.import.so
  ""\usr\local\bin\csc"" -feature compiling-extension -setup-mode    -s -O3 -d0 
spock.import.scm
make: making library.js
  "chicken-spock" -library-path spock -optimize -library -o library.js
make: making spock/spock-runtime.js
  cat config.js runtime.js library.js > spock/spock-runtime.js
make: making library-debug.js
  "chicken-spock" -library-path spock -optimize -debug -library -o 
library-debug.js
make: making spock/spock-runtime-debug.js
  cat config.js runtime.js debug.js library-debug.js > 
spock/spock-runtime-debug.js
make: making spock/spock-runtime-min.js
make: making spock/spock-runtime-debug-min.js
make: made spock-compiler.so
make: made spock-compiler.import.so
make: made spock.so
make: made chicken-spock.exe
make: made spock.import.so
make: made library.js
make: made spock/spock-runtime.js
make: made library-debug.js
make: made spock/spock-runtime-debug.js
make: made spock/spock-runtime-min.js
make: made spock/spock-runtime-debug-min.js
  copy "spock.so" "\usr\local\lib\chicken\6\spock.so"
        1 file(s) copied.
  copy "spock" "\usr\local\lib\chicken\6\spock"
spock\library.scm
spock\match.scm
spock\spock-runtime-debug-min.js
spock\spock-runtime-debug.js
spock\spock-runtime-min.js
spock\spock-runtime.js
spock\syntax.scm
        1 file(s) copied.
  copy "spock.import.so" "\usr\local\lib\chicken\6\spock.import.so"
        1 file(s) copied.
  copy "spock-compiler.so" "\usr\local\lib\chicken\6\spock-compiler.so"
        1 file(s) copied.
  copy "spock-compiler.import.so" "\usr\local\lib\chicken\6\spock-compiler.impor
t.so"
        1 file(s) copied.
  copy "chicken-spock.exe" "\usr\local\bin\chicken-spock.exe"
        1 file(s) copied.
---[/cut]---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]