ochafik/nativelibs4java — Issue #274: OpenCL compiles fail if user's home directory has a space
Author: yoden
Created: 2012-02-28 17:17:48+00:00
State: open

What steps will reproduce the problem?
1. Use a windows user with a space in the home directory (e.g., C:\Users\Gao Jie\)
2. Attempt to compile a kernel

What is the expected output? What do you see instead?

You will see something like:

ERROR Error in compiling code Compilation failure : CL_INVALID_BUILD_OPTIONS
-- Invalid option: Jie\.javacl\includes\includes5414766890489049256 (expected - at the beginning)
--

You can see that the first part of the path got stripped off.

It seems there is a static field:
userJavaCLDir = new File(new File(System.getProperty("user.home")), ".javacl");

If we change user.home to not have a space before initializing javacl, it works.

What version of the product are you using? On what operating system?

This is 1.0.0-RC1, BridJ version. It definitely affects older javacl also. We saw this on Windows 7, but I imagine it affects more OS.