community
community copied to clipboard
[conan-khronos-opencl-clhpp] Failure to build on Windows
The conan-khronos-opencl-clhpp package fails to build on Windows. This is due to an upstream problem with khronos-opencl-icd-loader and MinGW x86_64-w64-mingw32 (multiple conflicting definitions between icd_windows_hkr.c and MSYS2 provided cfgmgr32.h).
Getting the icd loader to build correctly on Windows would require some work to be reliable. There is also a Windows Driver Kit dependency that is not handled correctly, and the recipe does not have an option to build for OpenCL 1.2 devices.
All these problems can be avoided, though. As a header only library, it does not have any build-time dependencies. So, I request that the build_requirements section be removed.
- conan-khronos-opencl-clhpp/testing/20191105
- Operating System+version: Windows 10 Pro 10.0.18362
- Compiler+version: gcc 9.2
- Conan version: 1.20.4
- Python version: Python 3.7.3
Conan profile
os_build=Windows os=Windows arch=x86_64 arch_build=x86_64 compiler=gcc compiler.exception=seh compiler.libcxx=libstdc++11 compiler.threads=posix compiler.version=9 build_type=Release