Ticket #878 (new defect)
Opened 22 months ago
Wrong CCL_DEFAULT_DIRECTORY on Cygwin
| Reported by: | bowbow99 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | other | Version: | trunk |
| Keywords: | Cc: |
Description
I'm using CCL Version 1.7-r14925M (WindowsX8632) on Cygwin 1.7.7(0.230/5/3).
Starting CCL via shell script scripts/ccl makes wrong path and fail.
% echo $CCL_DEFAULT_DIRECTORY
/home/bowbow99/opt/ccl-1.7
% ${CCL_DEFAULT_DIRECTORY}/scripts/ccl
/home/bowbow99/opt/ccl-1.7/scripts/ccl: line 49: C:/cygwin/home/bowbow99/opt/ccl-1.7/wx86cl.exe: No such file or directory
/home/bowbow99/opt/ccl-1.7/scripts/ccl: line 49: exec: C:/cygwin/home/bowbow99/opt/ccl-1.7/wx86cl.exe: cannot execute: No such file or directory
This happens when the CCL_DEFAULT_DIRECTORY is under a directory which doesn't exist in C:/cygwin in Windows environment but mounted in Cygwin environment. I think installing Cygwin into somewhere other than C:/cygwin would cause same issue, but not tested.
% mount ...(snip)... F: on /home/bowbow99 type ntfs (binary,user) ...(snip)... % cygpath -m $CCL_DEFAULT_DIRECTORY F:/opt/ccl-1.7
Using cygpath -m to make Windows path instead of prefix "C:/cygwin" worked for me.
CYGWIN*)
OPENMCL_KERNEL=wx86cl.exe
#CCL_DEFAULT_DIRECTORY="C:/cygwin$CCL_DEFAULT_DIRECTORY"
CCL_DEFAULT_DIRECTORY="$(cygpath -m "$CCL_DEFAULT_DIRECTORY")"
;;
Note: See
TracTickets for help on using
tickets.
