gpu / JOCL

Java bindings for OpenCL
http://www.jocl.org
Other
187 stars 33 forks source link

Build Failure Windows 10.0.18362.1016 #29

Closed tpavelka closed 4 years ago

tpavelka commented 4 years ago

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>

tpavelka commented 4 years ago

Test set: 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.03 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)

tpavelka commented 4 years ago

1>------ Build started: Project: ZERO_CHECK, Configuration: Debug x64 ------ 1>Checking Build System 2>------ Build started: Project: JOCLCommon, Configuration: Debug x64 ------ 2>Building Custom Rule C:/Users/tpave/Desktop/JOCLRoot/JOCLCommon/CMakeLists.txt 2>Logger.cpp 2>CLJNIUtils.cpp 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 2>JNIUtils.cpp 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(337,80): warning C4100: 'writeBack': unreferenced formal parameter 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(337,63): warning C4100: 'javaString': unreferenced formal parameter 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(337,28): warning C4100: 'env': unreferenced formal parameter 2>PointerUtils.cpp 2>ConversionsCL.cpp 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 2>Generating Code... 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(358): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(356): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(358): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(340): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(338): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(340): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(426): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(424): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(426): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(444): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(442): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.cpp(444): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(205): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(202): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(205): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(261): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(258): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\ConversionsCL.hpp(261): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(450): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(443): message : index 'i' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(450): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(447): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(443): message : index 'size' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(447): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(414): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(408): message : index 'size' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(414): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(210): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(178): message : index 'i' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(210): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(181): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(178): message : index 'size' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\PointerUtils.cpp(181): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(361): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(357): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(361): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(249): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(247): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(249): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(382): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(377): message : index 'length' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\JNIUtils.cpp(382): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(520): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(503): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(520): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(568): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(551): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(568): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(617): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(600): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(617): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(508): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(503): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(508): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(605): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(600): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(605): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(556): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(551): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(556): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(499): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(497): message : index 'event_listLength' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(499): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(596): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(594): message : index 'mem_listLength' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(596): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(666): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(649): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(666): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(715): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(698): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(715): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(547): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(545): message : index 'device_listLength' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(547): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(654): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(649): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(654): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(703): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(698): message : index '' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(703): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(645): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(643): message : index 'svm_pointersLength' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(645): message : feeds call on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(694): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(692): message : index 'program_listLength' range checked by comparison on this line 2>C:\Users\tpave\Desktop\JOCLRoot\JOCLCommon\src\main\native\CLJNIUtils.cpp(694): message : feeds call on this line 2>JOCLCommon.vcxproj -> C:\Users\tpave\Desktop\JOCLRoot\JOCL.build\JOCLCommon\Debug\JOCLCommon.lib 2>Done building project "JOCLCommon.vcxproj". 3>------ Build started: Project: JOCL_2_0_1-windows-x86_64, Configuration: Debug x64 ------ 3>Building Custom Rule C:/Users/tpave/Desktop/JOCLRoot/JOCL/CMakeLists.txt 3>JOCL.cpp 3>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 3>CLFunctions.cpp 3>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 3>FunctionPointerUtils.cpp 3>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 3>FunctionPointerUtils_Linux.cpp 3>FunctionPointerUtils_Win.cpp 3>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 3>Sizeof.cpp 3>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\um\winbase.h(7464,48): warning C5039: 'TpSetCallbackCleanupGroup': pointer or reference to potentially throwing function passed to 'extern "C"' function under -EHc. Undefined behavior may occur if this function throws an exception. 3>Generating Code... 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(141): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(139): message : index 'nativeSize' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(141): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(462): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(452): message : index '' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(462): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(589): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(566): message : index '' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(589): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(714): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(696): message : index '' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(714): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(840): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(822): message : index '' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(840): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(970): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(967): message : index 'devicesLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(970): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1871): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1868): message : index 'image_formatLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1871): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1963): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1960): message : index 'image_formatLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(1963): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2720): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2718): message : index 'i' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2720): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2690): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2685): message : index 'stringsLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2690): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2687): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2685): message : index 'stringsLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2687): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2842): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2840): message : index 'i' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2842): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2813): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2804): message : index 'binariesLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2813): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2810): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2804): message : index 'i' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2810): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2806): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2804): message : index 'binariesLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(2806): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3168): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3166): message : index 'i' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3168): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3136): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3133): message : index 'header_include_namesLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(3136): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6090): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6085): message : index 'args_mem_locLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6090): message : feeds call on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6087): warning C5045: Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6085): message : index 'args_mem_locLength' range checked by comparison on this line 3>C:\Users\tpave\Desktop\JOCLRoot\JOCL\src\main\native\JOCL.cpp(6087): message : feeds call on this line 3> Creating library C:/Users/tpave/Desktop/JOCLRoot/JOCL.build/Debug/JOCL_2_0_1-windows-x86_64.lib and object C:/Users/tpave/Desktop/JOCLRoot/JOCL.build/Debug/JOCL_2_0_1-windows-x86_64.exp 3>JOCL_2_0_1-windows-x86_64.vcxproj -> C:\Users\tpave\Desktop\JOCLRoot\JOCL\nativeLibraries\Debug\JOCL_2_0_1-windows-x86_64.dll 3>Done building project "JOCL_2_0_1-windows-x86_64.vcxproj". 4>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------ 4>Project not selected to build for this solution configuration ========== Build: 3 succeeded, 0 failed, 0 up-to-date, 1 skipped ==========

tpavelka commented 4 years ago

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.

tpavelka commented 4 years ago

Microsoft Windows [Version 10.0.18362.1016] (c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\tpave>cd C:\Users\tpave\Desktop\JOCLRoot\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] Deleting C:\Users\tpave\Desktop\JOCLRoot\JOCL\target [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: 0, Skipped: 0, Time elapsed: 0.44 sec - in org.jocl.test.JOCLBasicTest Running org.jocl.test.JOCLMinimalPlatformTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.jocl.test.JOCLMinimalPlatformTest Running org.jocl.test.SizeofTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.jocl.test.SizeofTest Running org.jocl.test.TestNonBlockingConstraints Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.114 sec - in org.jocl.test.TestNonBlockingConstraints

Results :

Tests run: 9, Failures: 0, Errors: 0, Skipped: 0

[INFO] [INFO] --- maven-resources-plugin:2.4.3:copy-resources (copy-resources) @ jocl --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] skip non existing resourceDirectory C:\Users\tpave\Desktop\JOCLRoot\JOCL....\nativeLibraries [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ jocl --- [INFO] Building jar: C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT.jar [INFO] [INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) > generate-sources @ jocl >>> [INFO] [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ jocl --- [INFO] [INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) < generate-sources @ jocl <<< [INFO] [INFO] [INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ jocl --- [INFO] Building jar: C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT-sources.jar [INFO] [INFO] --- maven-javadoc-plugin:2.7:jar (attach-javadocs) @ jocl --- [INFO] Loading source files for package org.jocl... Constructing Javadoc information... Standard Doclet version 1.8.0_251 Building tree for all the packages and classes... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\BuildProgramFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\CL.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_buffer_region.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_command_queue.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_context.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_context_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_device_id.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_device_partition_property.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_event.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_image_desc.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_image_format.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_kernel.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_mem.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_pipe_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_platform_id.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_program.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_queue_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_sampler.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\cl_sampler_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\CL.LogLevel.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\CLException.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\CreateContextFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\EnqueueNativeKernelFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\EventCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\LibUtils.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\MemObjectDestructorCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\NativePointerObject.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\Pointer.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\PrintfCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\Sizeof.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\SVMFreeFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\package-frame.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\package-summary.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\package-tree.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\constant-values.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\serialized-form.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\SVMFreeFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\Sizeof.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\PrintfCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\Pointer.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\NativePointerObject.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\MemObjectDestructorCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\LibUtils.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\EventCallbackFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\EnqueueNativeKernelFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\CreateContextFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_sampler_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_sampler.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_queue_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_program.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_platform_id.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_pipe_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_mem.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_kernel.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_image_format.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_image_desc.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_event.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_device_partition_property.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_device_id.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_context_properties.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_context.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_command_queue.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\cl_buffer_region.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\CLException.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\CL.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\CL.LogLevel.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\class-use\BuildProgramFunction.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\org\jocl\package-use.html... Building index for all the packages and classes... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\overview-tree.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\index-all.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\deprecated-list.html... Building index for all classes... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\allclasses-frame.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\allclasses-noframe.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\index.html... Generating C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\apidocs\help-doc.html... [INFO] Building jar: C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT-javadoc.jar [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ jocl --- [INFO] Installing C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT.jar to C:\Users\tpave.m2\repository\org\jocl\jocl\2.0.3-SNAPSHOT\jocl-2.0.3-SNAPSHOT.jar [INFO] Installing C:\Users\tpave\Desktop\JOCLRoot\JOCL\pom.xml to C:\Users\tpave.m2\repository\org\jocl\jocl\2.0.3-SNAPSHOT\jocl-2.0.3-SNAPSHOT.pom [INFO] Installing C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT-sources.jar to C:\Users\tpave.m2\repository\org\jocl\jocl\2.0.3-SNAPSHOT\jocl-2.0.3-SNAPSHOT-sources.jar [INFO] Installing C:\Users\tpave\Desktop\JOCLRoot\JOCL\target\jocl-2.0.3-SNAPSHOT-javadoc.jar to C:\Users\tpave.m2\repository\org\jocl\jocl\2.0.3-SNAPSHOT\jocl-2.0.3-SNAPSHOT-javadoc.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.740 s [INFO] Finished at: 2020-08-26T14:03:19-05:00 [INFO] ------------------------------------------------------------------------

C:\Users\tpave\Desktop\JOCLRoot\JOCL>

gpu commented 4 years ago

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

set(JOCL_VERSION "2_0_2")

should/could already fix this issue.

The reason why this change is missing in the repo is that during the update from "2_0_1" to "2_0_2", there was no change in the native part of the code. So I just had to re-build the JARs, and the native library could just be renamed accordingly.

I'll fix this soon, but it should become obsolete anyhow, when I finally manage to tackle the long-standing issue https://github.com/gpu/JOCL/issues/28 of updating JOCL for OpenCL 3.0 ...