-
Notifications
You must be signed in to change notification settings - Fork 33
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
Build Failure Windows 10.0.18362.1016 #29
Comments
Test set: org.jocl.test.JOCLBasicTestTests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec <<< FAILURE! - in org.jocl.test.JOCLBasicTest |
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------ |
Upon using cmake-gui to generate JOCL.build and then building ALL_BUILD.vcxproj to generate JOCL_2_0_1-windows-x86_64 in JOCLRoot\JOCL\nativeLibraries\Debug, it seems that JOCL\pom.xml actually requires JOCL_2_0_2-windows-x86_64. A simple file rename of JOCL_2_0_2-windows-x86_64 to JOCL_2_0_1-windows-x86_64 does not fix the issue. But, upon moving the renamed file to JOCLRoot\JOCL\nativeLibraries, the maven build succeeds, although, it generates a jocl-2.0.3-SNAPSHOT.jar. It is undetermined if this DLL is safe to use in the jocl-2.0.3-SNAPSHOT. |
Microsoft Windows [Version 10.0.18362.1016] C:\Users\tpave>cd C:\Users\tpave\Desktop\JOCLRoot\JOCL C:\Users\tpave\Desktop\JOCLRoot\JOCL>mvn clean install T E S T SRunning org.jocl.test.JOCLBasicTest Results : Tests run: 9, Failures: 0, Errors: 0, Skipped: 0 [INFO] C:\Users\tpave\Desktop\JOCLRoot\JOCL> |
Sorry for the delayed response here. From quickly skimming over the messages, the root cause indeed seems to be the wrong version number at https://github.com/gpu/JOCL/blob/master/CMakeLists.txt#L31 . Changing this to
should/could already fix this issue. The reason why this change is missing in the repo is that during the update from I'll fix this soon, but it should become obsolete anyhow, when I finally manage to tackle the long-standing issue #28 of updating JOCL for OpenCL 3.0 ... |
Microsoft Windows [Version 10.0.18362.1016]
(c) 2019 Microsoft Corporation. All rights reserved.
C:\Users\tpave>cd C:\Users\tpave\Desktop\JOCLRoot
C:\Users\tpave\Desktop\JOCLRoot>git clone https://github.com/gpu/JOCL
Cloning into 'JOCL'...
remote: Enumerating objects: 53, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 971 (delta 15), reused 45 (delta 11), pack-reused 918
Receiving objects: 100% (971/971), 765.08 KiB | 1.69 MiB/s, done.
Resolving deltas: 100% (515/515), done.
C:\Users\tpave\Desktop\JOCLRoot>git clone https://github.com/gpu/JOCLCommon.git
Cloning into 'JOCLCommon'...
remote: Enumerating objects: 173, done.
Receiving objects: 59% 0), reused 0 (delta 0), pack-reused 173 eceiving objects: 58% (101/173)
Receiving objects: 100% (173/173), 81.65 KiB | 633.00 KiB/s, done.
Resolving deltas: 100% (88/88), done.
C:\Users\tpave\Desktop\JOCLRoot>cmake-gui
C:\Users\tpave\Desktop\JOCLRoot>cd JOCL
C:\Users\tpave\Desktop\JOCLRoot\JOCL>mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.jocl:jocl:jar:2.0.3-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter. @ line 181, column 40
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------------< org.jocl:jocl >----------------------------
[INFO] Building JOCL 2.0.3-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jocl ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ jocl ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jocl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ jocl ---
[INFO] Compiling 33 source files to C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ jocl ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\test\resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ jocl ---
[INFO] Compiling 5 source files to C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ jocl ---
[INFO] Surefire report directory: C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\surefire-reports
T E S T S
Running org.jocl.test.JOCLBasicTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.03 sec <<< FAILURE! - in org.jocl.test.JOCLBasicTest
basicTest(org.jocl.test.JOCLBasicTest) Time elapsed: 0.022 sec <<< ERROR!
java.lang.UnsatisfiedLinkError: Error while loading native library "JOCL_2_0_2-windows-x86_64"
Operating system name: Windows 10
Architecture : amd64
Architecture bit size: 64
---(start of nested stack traces)---
Stack trace from the attempt to load the library as a file:
java.lang.UnsatisfiedLinkError: no JOCL_2_0_2-windows-x86_64 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at org.jocl.LibUtils.loadLibrary(LibUtils.java:144)
at org.jocl.CL.loadNativeLibrary(CL.java:65)
at org.jocl.CL.(CL.java:51)
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.JOCLBasicTest.basicTest(JOCLBasicTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Stack trace from the attempt to load the library as a resource:
java.io.IOException: No resource found with name '/lib/JOCL_2_0_2-windows-x86_64.dll'
at org.jocl.LibUtils.writeResourceToFile(LibUtils.java:341)
at org.jocl.LibUtils.loadLibraryResource(LibUtils.java:269)
at org.jocl.LibUtils.loadLibrary(LibUtils.java:159)
at org.jocl.CL.loadNativeLibrary(CL.java:65)
at org.jocl.CL.(CL.java:51)
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.JOCLBasicTest.basicTest(JOCLBasicTest.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
---(end of nested stack traces)---
at org.jocl.LibUtils.loadLibrary(LibUtils.java:194)
at org.jocl.CL.loadNativeLibrary(CL.java:65)
at org.jocl.CL.(CL.java:51)
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.JOCLBasicTest.basicTest(JOCLBasicTest.java:30)
Running org.jocl.test.JOCLMinimalPlatformTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.jocl.test.JOCLMinimalPlatformTest
testGetPlatformIDs(org.jocl.test.JOCLMinimalPlatformTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLMinimalPlatformTest.testGetPlatformIDs(JOCLMinimalPlatformTest.java:18)
Running org.jocl.test.SizeofTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.jocl.test.SizeofTest
sizeofTest(org.jocl.test.SizeofTest) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.Sizeof.(Sizeof.java:48)
at org.jocl.test.SizeofTest.sizeofTest(SizeofTest.java:17)
Running org.jocl.test.TestNonBlockingConstraints
Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in org.jocl.test.TestNonBlockingConstraints
testNonBlockingReadWithJavaArrayThrows(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingReadWithJavaArrayThrows(TestNonBlockingConstraints.java:37)
testNonBlockingReadWithBufferThrows(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingReadWithBufferThrows(TestNonBlockingConstraints.java:55)
testNonBlockingWriteWithJavaArrayThrows(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingWriteWithJavaArrayThrows(TestNonBlockingConstraints.java:92)
testNonBlockingWriteWithBufferThrows(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingWriteWithBufferThrows(TestNonBlockingConstraints.java:110)
testNonBlockingReadWithDirectBuffer(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingReadWithDirectBuffer(TestNonBlockingConstraints.java:73)
testNonBlockingWriteWithDirectBuffer(org.jocl.test.TestNonBlockingConstraints) Time elapsed: 0 sec <<< ERROR!
java.lang.NoClassDefFoundError: Could not initialize class org.jocl.CL
at org.jocl.test.JOCLAbstractTest.initCL(JOCLAbstractTest.java:52)
at org.jocl.test.TestNonBlockingConstraints.testNonBlockingWriteWithDirectBuffer(TestNonBlockingConstraints.java:128)
Results :
Tests in error:
JOCLBasicTest.basicTest:30->JOCLAbstractTest.initCL:52 » UnsatisfiedLink Error...
JOCLMinimalPlatformTest.testGetPlatformIDs:18 NoClassDefFound Could not initia...
SizeofTest.sizeofTest:17 » NoClassDefFound Could not initialize class org.jocl...
TestNonBlockingConstraints.testNonBlockingReadWithBufferThrows:55->JOCLAbstractTest.initCL:52 » NoClassDefFound
TestNonBlockingConstraints.testNonBlockingReadWithDirectBuffer:73->JOCLAbstractTest.initCL:52 » NoClassDefFound
TestNonBlockingConstraints.testNonBlockingReadWithJavaArrayThrows:37->JOCLAbstractTest.initCL:52 » NoClassDefFound
TestNonBlockingConstraints.testNonBlockingWriteWithBufferThrows:110->JOCLAbstractTest.initCL:52 » NoClassDefFound
TestNonBlockingConstraints.testNonBlockingWriteWithDirectBuffer:128->JOCLAbstractTest.initCL:52 » NoClassDefFound
TestNonBlockingConstraints.testNonBlockingWriteWithJavaArrayThrows:92->JOCLAbstractTest.initCL:52 » NoClassDefFound
Tests run: 9, Failures: 0, Errors: 9, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.170 s
[INFO] Finished at: 2020-08-26T12:25:08-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project jocl: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
C:\Users\tpave\Desktop\JOCLRoot\JOCL>
The text was updated successfully, but these errors were encountered: