[Openmcl-devel] CCL on 32 bit Windows - write permissions needed to load

harshrc harshrc at ccs.neu.edu
Tue Oct 13 19:15:45 PDT 2009


I run 32 bit Windows Vista. I got the copy of CCL from release svn trunk.

I am getting a strange error which I cant reproduce on a linux machine :

here is the output from CMD.exe

C:\Users\harshrc\tools\ccl>wx86cl.exe
Welcome to Clozure Common Lisp Version 1.3-r11936  (WindowsX8632)!
? (load "ok1.lsp")
> Error: Permission denied : #P"C:/Users/harshrc/tools/ccl/ok1.lsp"
> While executing: CCL::MAKE-FILE-STREAM, in process listener(1).
> Type :POP to abort, :R for a list of available restarts.
> Type :? for other options.
1 >

where ok1.lsp is a dummy lisp file containing a single form (+ 1 2)
C:\Users\harshrc\tools\ccl>cat ok1.lsp
(+ 1 2)

ok2.lsp is a similar dummy lisp file with same contents as ok1.lsp

C:\Users\harshrc\tools\ccl>wx86cl.exe
Welcome to Clozure Common Lisp Version 1.3-r11936  (WindowsX8632)!
? (load "ok2.lsp")
#P"C:/Users/harshrc/tools/ccl/ok2.lsp"
?

So ok2.lsp loads fine.
If i look at permissions:
C:\Users\harshrc\tools\ccl>ls -l ok*
- -r--r--r-- 1 harshrc Administrators    9 Oct 13 20:04 ok1.lsp
- -r--r--r-- 1 harshrc Administrators    9 Oct 13 20:39 ok2.lsp

It says no difference, but CMD.exe is buggy I presume, because actual 
permissions set
from GUI(right click -> properties -> security -> edit permissions)
for user harshrc are deny write for ok1.lsp and full-control for ok2.lsp.
i.e. ok1.lsp is not writable and ok2.lsp is writable.

Which means Clozure Common Lisp cannot load read-only lisp files on
Windows?

I wanted to ask wether this happens only for VISTA, or is it the same for XP
and 2000?
Or is it just that I compiled CCL in a non-standard way, which seems not
plausible, since my copy of CCL is from the CCL svn repository.


Any help would be most appreciated.



More information about the Openmcl-devel mailing list