DeadSix27 / python_cross_compile_script

Easy to use Linux to Windows cross compile script.
Mozilla Public License 2.0
31 stars 9 forks source link

Khronos OpelCL headers ... completely broken now #65

Closed hydra3333 closed 6 years ago

hydra3333 commented 6 years ago

https://github.com/KhronosGroup/OpenCL-Headers

Stuff in the git has been completely moved around and renamed in bulk :( totally breaking our scripts.

commit de26592167b9fdea503885e40e8755393c56523d @bashbaug bashbaug committed 12 hours ago Showing 68 changed files with 984 additions and 20,893 deletions.

hydra3333 commented 6 years ago
    'run_post_patch' : (
         'sed -i.bak "s;define CL_TARGET_OPENCL_VERSION 220;define CL_TARGET_OPENCL_VERSION 120;" CL/cl_version.h', # 2018.05.15 for nvidia use OpenCL version 1.2 
         'sed -i.bak "s;Defaulting to 220 (OpenCL 2.2);Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility;" CL/cl_version.h', # 2018.05.15 for nvidia use OpenCL version 1.2 
            'if [ ! -f "already_ran_make_install" ] ; then if [ ! -d "{target_prefix}/include/CL" ] ; then mkdir -pv "{target_prefix}/include/CL" ; fi ; fi',
            'if [ ! -f "already_ran_make_install" ] ; then cp -vf CL/*.h "{target_prefix}/include/CL/" ; fi',
            'if [ ! -f "already_ran_make_install" ] ; then touch already_ran_make_install ; fi',
         ),

That "fixes" the headers, but now the ICD build is broken :( :(

[03:02:20][INFO] Finished GIT cloning 'https://github.com/KhronosGroup/OpenCL-ICD-Loader.git' to 'OpenCL-ICD-Loader_git'
[03:02:20][INFO] Downloading patch 'https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/patches/opencl/0001-OpenCL-git-prefix.patch' to: 0001-OpenCL-git-prefix.patch
[03:02:20][INFO] Requesting : https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/patches/opencl/0001-OpenCL-git-prefix.patch - 356.0B
Downloading: 0001-OpenCL-git-prefix.pa 100% [██████████████████████████████████████████████] 356.0 B/356.0 B | 97.9 KiB/s | Time:  0:00:00
[03:02:20][INFO] Patching source using: '0001-OpenCL-git-prefix.patch'
patching file CMakeLists.txt
[03:02:20][INFO] Downloading patch 'https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/patches/opencl/0002-OpenCL-git-header.patch' to: 0002-OpenCL-git-header.patch
[03:02:21][INFO] Requesting : https://raw.githubusercontent.com/DeadSix27/python_cross_compile_script/master/patches/opencl/0002-OpenCL-git-header.patch - 523.0B
Downloading: 0002-OpenCL-git-header.pa 100% [██████████████████████████████████████████████] 523.0 B/523.0 B |141.2 KiB/s | Time:  0:00:00
[03:02:21][INFO] Patching source using: '0002-OpenCL-git-header.patch'
patching file icd_windows_hkr.h
[03:02:21][INFO] C-Making 'opencl_icd' with: . -G"Unix Makefiles" -DCMAKE_SYSTEM_PROCESSOR="x86_64" -DENABLE_STATIC_RUNTIME=1 -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_RANLIB=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-ranlib -DCMAKE_C_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -DCMAKE_CXX_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -DCMAKE_RC_COMPILER=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-windres -DCMAKE_FIND_ROOT_PATH=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DCMAKE_INSTALL_PREFIX=/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/x86_64-w64-mingw32 -DBUILD_SHARED_LIBS=OFF
-- The C compiler identification is GNU 8.1.1
-- The CXX compiler identification is GNU 8.1.1
-- Check for working C compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC_RUNTIME

-- Build files have been written to: /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git
[03:02:23][INFO] Making 'opencl_icd' with:  in /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git
Scanning dependencies of target IcdLog
Scanning dependencies of target OpenCL
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd_dispatch.c.obj
[ 15%] Building C object test/platform/CMakeFiles/IcdLog.dir/icd_test_log.c.obj
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd.c.obj
[ 15%] Building C object CMakeFiles/OpenCL.dir/icd_windows.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:58,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/platform/icd_test_log.c:5:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:58:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern'
 DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid,              0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10);    // DEVPROP_TYPE_GUID
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:56:124: note: in definition of macro 'DEFINE_DEVPROPKEY'
 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }, pid }
                                                                                                                            ^~~~
[ 19%] Linking C shared library ../../bin/libIcdLog.dll
[ 19%] Built target IcdLog
Scanning dependencies of target OpenCLDriverStub
[ 23%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl.c:17:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c: In function 'khrIcdOsVendorsEnumerateOnce':
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows.c:135:5: warning: implicit declaration of function 'InitOnceExecuteOnce' [-Wimplicit-function-declaration]
     InitOnceExecuteOnce(&initialized, khrIcdOsVendorsEnumerate, NULL, NULL);
     ^~~~~~~~~~~~~~~~~~~
[ 26%] Building C object CMakeFiles/OpenCL.dir/icd_windows_hkr.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.h:53,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:38:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
[ 30%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl_ext.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl_ext.c:4:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:58:19: warning: 'DEVPKEY_Device_ClassGuid' initialized and declared 'extern'
 DEFINE_DEVPROPKEY(DEVPKEY_Device_ClassGuid,              0xa45c254e, 0xdf1c, 0x4efd, 0x80, 0x20, 0x67, 0xd1, 0x46, 0xa8, 0x50, 0xe0, 10);    // DEVPROP_TYPE_GUID
                   ^~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.h:56:124: note: in definition of macro 'DEFINE_DEVPROPKEY'
 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) extern const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }, pid }
                                                                                                                            ^~~~
[ 34%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/cl_gl.c.obj
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_gl.h:35,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/cl_gl.c:1:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:160:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:223:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:228:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info /* param_name */,
     ^~~~~~~~~~~~
     cl_image_info
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:160:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:223:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * /* properties */,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:235:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags /* flags */,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:264:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties * /* sampler_properties */,
           ^~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:228:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info /* param_name */,
     ^~~~~~~~~~~~
     cl_image_info
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:406:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  /* param_name */,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:38:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1449:5: error: unknown type name 'KHRpfn_clGetPipeInfo'
     KHRpfn_clGetPipeInfo                            clGetPipeInfo;
     ^~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1450:5: error: unknown type name 'KHRpfn_clSVMAlloc'
     KHRpfn_clSVMAlloc                               clSVMAlloc;
     ^~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1459:5: error: unknown type name 'KHRpfn_clSetKernelExecInfo'
     KHRpfn_clSetKernelExecInfo                      clSetKernelExecInfo;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:235:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags /* flags */,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:264:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties * /* sampler_properties */,
           ^~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2309:11: error: unknown type name 'cl_queue_properties'
     const cl_queue_properties * properties,
           ^~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2326:11: error: unknown type name 'cl_pipe_properties'
     const cl_pipe_properties * properties,
           ^~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2342:5: error: unknown type name 'cl_pipe_info'; did you mean 'cl_image_info'?
     cl_pipe_info param_name,
     ^~~~~~~~~~~~
     cl_image_info
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:406:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  /* param_name */,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
In file included from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd.c:39:
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1449:5: error: unknown type name 'KHRpfn_clGetPipeInfo'
     KHRpfn_clGetPipeInfo                            clGetPipeInfo;
     ^~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1450:5: error: unknown type name 'KHRpfn_clSVMAlloc'
     KHRpfn_clSVMAlloc                               clSVMAlloc;
     ^~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.h:1459:5: error: unknown type name 'KHRpfn_clSetKernelExecInfo'
     KHRpfn_clSetKernelExecInfo                      clSetKernelExecInfo;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2359:5: error: unknown type name 'cl_svm_mem_flags'; did you mean 'cl_svm_mem_flags_arm'?
     cl_svm_mem_flags flags,
     ^~~~~~~~~~~~~~~~
     cl_svm_mem_flags_arm
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2502:11: error: unknown type name 'cl_sampler_properties'
     const cl_sampler_properties *  sampler_properties,
           ^~~~~~~~~~~~~~~~~~~~~
CMakeFiles/OpenCL.dir/build.make:63: recipe for target 'CMakeFiles/OpenCL.dir/icd.c.obj' failed
make[2]: *** [CMakeFiles/OpenCL.dir/icd.c.obj] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_dispatch.c:2528:5: error: unknown type name 'cl_kernel_exec_info'; did you mean 'cl_kernel_exec_info_arm'?
     cl_kernel_exec_info  param_name,
     ^~~~~~~~~~~~~~~~~~~
     cl_kernel_exec_info_arm
[ 38%] Building C object test/driver_stub/CMakeFiles/OpenCLDriverStub.dir/icd.c.obj
CMakeFiles/OpenCL.dir/build.make:88: recipe for target 'CMakeFiles/OpenCL.dir/icd_dispatch.c.obj' failed
make[2]: *** [CMakeFiles/OpenCL.dir/icd_dispatch.c.obj] Error 1
In file included from /home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl.h:36,
                 from /home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/test/driver_stub/icd.c:15:
/home/u/Desktop/ds27/workdir/toolchain/x86_64-w64-mingw32/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility
 #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 120 (OpenCL 1.2) for NVIDIA compatibility")
         ^~~~~~~
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c: In function 'khrIcdOsVendorsEnumerateHKR':
/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git/icd_windows_hkr.c:354:23: warning: implicit declaration of function 'CM_Get_DevNode_PropertyW'; did you mean 'CM_Set_DevNode_Problem'? [-Wimplicit-function-declaration]
                 ret = CM_Get_DevNode_PropertyW(
                       ^~~~~~~~~~~~~~~~~~~~~~~~
                       CM_Set_DevNode_Problem
[ 42%] Linking C shared library ../../bin/libOpenCLDriverStub.dll
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/OpenCL.dir/all' failed
make[1]: *** [CMakeFiles/OpenCL.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 42%] Built target OpenCLDriverStub
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
[03:02:26][ERROR] Error [2] running process: 'make  -j 4' in '/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git'
[03:02:26][ERROR] You can try deleting the product/dependency folder: '/home/u/Desktop/ds27/workdir/x86_64/OpenCL-ICD-Loader_git' and re-run the script
+ exit 1
hydra3333 commented 6 years ago

Opened an issue over there https://github.com/KhronosGroup/OpenCL-ICD-Loader/issues/32

DeadSix27 commented 6 years ago

@hydra3333 I will look into it later.

hydra3333 commented 6 years ago

Per advice over on the khronos issue, I let the headers default to version 2.2 and the ICD loader cross-compiled OK which is a good start.

A tad counter intuitive for a novice like me, since the comments in the headers git suggest use a version the s/w understands and nvidia is only v1.2 compatible ... but they must be talking about the ICD software instead.

We'll see what happens at runtime :)