New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCL compiles fail if user's home directory has a space #274

Closed
yoden opened this Issue Feb 28, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@yoden

yoden commented Feb 28, 2012

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.

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Feb 29, 2012

Member

Hi @yoden,

Thanks for your report !
I've committed and reployed a fix in 1.0-SNAPSHOT, please let me know if the issue still happens...

Cheers

Member

ochafik commented Feb 29, 2012

Hi @yoden,

Thanks for your report !
I've committed and reployed a fix in 1.0-SNAPSHOT, please let me know if the issue still happens...

Cheers

@ochafik ochafik closed this Feb 29, 2012

@yoden

This comment has been minimized.

Show comment
Hide comment
@yoden

yoden Mar 12, 2012

I'm sorry, but I'm having trouble finding the SNAPSHOT. Where is it available these days?

yoden commented Mar 12, 2012

I'm sorry, but I'm having trouble finding the SNAPSHOT. Where is it available these days?

@ochafik

This comment has been minimized.

Show comment
Hide comment
@ochafik

ochafik Mar 12, 2012

Member

Hi @yoden ,

You may download snapshots from the Sonatype OSS repository, which is with Maven if you follow these instructions :

http://code.google.com/p/javacl/wiki/Usage#With_Maven

You can otherwise proceed to manual download from here :

https://oss.sonatype.org/content/groups/public/com/nativelibs4java/javacl/

Cheers

Member

ochafik commented Mar 12, 2012

Hi @yoden ,

You may download snapshots from the Sonatype OSS repository, which is with Maven if you follow these instructions :

http://code.google.com/p/javacl/wiki/Usage#With_Maven

You can otherwise proceed to manual download from here :

https://oss.sonatype.org/content/groups/public/com/nativelibs4java/javacl/

Cheers

@userid

This comment has been minimized.

Show comment
Hide comment
@userid

userid Mar 13, 2012

Hi, @ochafik
I have tried with the latest javacl-1.0-20120310.161737-12-shaded.jar, and make sure that the fix 004ed7b has already been included.

However, this bug still exists, maybe it doesn't check the spaces in some other place.

userid commented Mar 13, 2012

Hi, @ochafik
I have tried with the latest javacl-1.0-20120310.161737-12-shaded.jar, and make sure that the fix 004ed7b has already been included.

However, this bug still exists, maybe it doesn't check the spaces in some other place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment