Creepsky / creepMiner

Burstcoin C++ CPU and GPU Miner
GNU General Public License v3.0
172 stars 64 forks source link

Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.2") #449

Open josergc opened 3 years ago

josergc commented 3 years ago

Before submitting your issue, please review the following checklist:

Subject of the issue

Compilation error

Your environment

Steps to reproduce

Compiling master branch, with

cmake CMakeLists.txt

I get

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenCL.cmake:138 (find_package_handle_standard_args)
  CMakeLists.txt:99 (find_package)

Expected behavior

Compilation success

Actual behavior

Compilation failed

Other information

Output logs:

$ cmake CMakeLists.txt 
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Current conanbuildinfo.cmake directory: /xxx/burstcoin/creepMiner
-- Conan: Compiler GCC>=5, checking major version 7
-- Conan: Checking correct version: 7
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenCL (missing: OpenCL_LIBRARY) (found version "2.2")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenCL.cmake:138 (find_package_handle_standard_args)
  CMakeLists.txt:99 (find_package)

From CMakeOutput.log:

Determining if the CL_VERSION_2_2 exist passed with the following output:
Change Dir: /xxx/burstcoin/creepMiner/CMakeFiles/CMakeTmp

Run Build Command:"/bin/gmake" "cmTC_5497a/fast"
/bin/gmake -f CMakeFiles/cmTC_5497a.dir/build.make CMakeFiles/cmTC_5497a.dir/build
gmake[1]: Entering directory '/xxx/burstcoin/creepMiner/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_5497a.dir/CheckSymbolExists.c.o
/bin/cc    -o CMakeFiles/cmTC_5497a.dir/CheckSymbolExists.c.o   -c /xxx/burstcoin/creepMiner/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_5497a
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_5497a.dir/link.txt --verbose=1
/bin/cc        -rdynamic CMakeFiles/cmTC_5497a.dir/CheckSymbolExists.c.o  -o cmTC_5497a 
gmake[1]: Leaving directory '/xxx/burstcoin/creepMiner/CMakeFiles/CMakeTmp'

File /xxx/burstcoin/creepMiner/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include </usr/include/CL/cl.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef CL_VERSION_2_2
  return ((int*)(&CL_VERSION_2_2))[argc];
#else
  (void)argc;
  return 0;
#endif
}