[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Problems with csc and csi under MinGW + MSYS
From: |
Ivan Raikov |
Subject: |
Re: [Chicken-users] Problems with csc and csi under MinGW + MSYS |
Date: |
Sun, 16 Mar 2008 18:47:24 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
I believe I know the cause of the error with chicken-setup. It
appears that Chicken is unable to find any file in the MinGW
filesystem:
csi> (file-exists? (make-absolute-pathname "/usr/local/bin" "chicken.exe"))
#f
$ ls /usr/local/bin/chicken.exe
/usr/local/bin/chicken.exe
The file exists in /usr/local/bin under the directory where MinGW is
installed, but the corresponding system call probably tries to find
that file in /usr/local/bin as a top-level directory. So when
chicken-setup tries to run csc, it does something like (system
"/usr/local/bin/csc" ...) and that fails because csc.exe is not found
in that location. The same goes for the case when csc tries to run the
chicken compiler.
-Ivan
Ivan Raikov <address@hidden> writes:
> 2) The chicken compiler works, but the csc driver program doesn't:
>
>
> $ echo "(print \"Hello, world!\")" > hello.scm
> $ chicken hello.scm
> compiling `hello.scm' ...
> generating `hello.c'...
>
> $ csc hello.scm
> (some garbage characters ...)