Skip to content
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

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

Open
3 tasks done
josergc opened this issue Mar 4, 2021 · 0 comments
Open
3 tasks done

Comments

@josergc
Copy link

josergc commented Mar 4, 2021

Before submitting your issue, please review the following checklist:

  • AVOID using the issue tracker for questions or help.
    Submitting issues to this repository are usually reserved for bugs, feature requests, or changes to the source code. We have a great discord to ask for help here: https://discord.gg/qnjyVQt
  • DO include log files.
  • [N/A] DO include the miner config.
  • DO describe the operating system for the Server and Client (Windows / Linux). Also, the run-time platform and versions.

Subject of the issue

Compilation error

Your environment

  • version of creepMiner.
    commit 688e153 (grafted, HEAD -> master, tag: 1.9.0, origin/master, origin/HEAD)
  • version of OS.
    Fedora 26, CUDA 9.1
  • which browser and its version.
    N/A

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant