xmr-stak-amd
xmr-stak-amd copied to clipboard
No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so'
Hi When compiling I have the error:
[ 20%] Built target xmr-stak-c [ 79%] Built target xmr-stak-backend make[2]: *** No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'. Stop. CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/xmrstak_opencl_backend.dir/all' failed make[1]: *** [CMakeFiles/xmrstak_opencl_backend.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
I'm using Xubuntu 17.10. I've installed AMD gpu pro drivers 17.40 and AMD SDK V3.0.130.136.
Thanks for the support.
Regards, Bruno Morais
please post all commands used to create this error including all output. Please retry all steps within a clean build folder
First tried without disabling CUDA:
~/xmr-stak/build# cmake ..
-- The C compiler identification is GNU 7.2.0
-- The CXX compiler identification is GNU 7.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- 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: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Set miner currency to 'monero' and 'aeon'
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
CMake Error at CMakeLists.txt:203 (message):
CUDA NOT found: use -DCUDA_ENABLE=OFF
to build without NVIDIA GPU support
-- Configuring incomplete, errors occurred! See also "/root/xmr-stak/build/CMakeFiles/CMakeOutput.log".
Then tried with CUDA disabled as I dont have any NVIDIA cards:
~/xmr-stak/build# cmake .. -DCUDA_ENABLE=OFF
-- Set miner currency to 'monero' and 'aeon'
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so (found version "2.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/xmr-stak/build
And make install:
~/xmr-stak/build# make install Scanning dependencies of target xmr-stak-c [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o [ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o [ 17%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o [ 20%] Linking C static library bin/libxmr-stak-c.a [ 20%] Built target xmr-stak-c Scanning dependencies of target xmr-stak-backend [ 24%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o [ 27%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 31%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o [ 34%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 37%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 41%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 44%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 48%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 51%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 55%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 58%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 62%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 65%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 68%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 72%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 75%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 79%] Linking CXX static library bin/libxmr-stak-backend.a [ 79%] Built target xmr-stak-backend Scanning dependencies of target xmrstak_opencl_backend [ 82%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o [ 86%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o [ 89%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o make[2]: *** No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'. Stop. CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/xmrstak_opencl_backend.dir/all' failed make[1]: *** [CMakeFiles/xmrstak_opencl_backend.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
could you please post the output of make VERBOSE=1
~/xmr-stak/build# cmake .. -DCUDA_ENABLE=OFF
-- Set miner currency to 'monero' and 'aeon'
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so (found version "2.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g")
-- Configuring done
-- Generating done
-- Build files have been written to: /root/xmr-stak/build
~/xmr-stak/build# make VERBOSE=1 /usr/bin/cmake -H/root/xmr-stak -B/root/xmr-stak/build --check-build-system CMakeFiles/Makefile.cmake 0 /usr/bin/cmake -E cmake_progress_start /root/xmr-stak/build/CMakeFiles /root/xmr-stak/build/CMakeFiles/progress.marks make -f CMakeFiles/Makefile2 all make[1]: Entering directory '/root/xmr-stak/build' make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/depend make[2]: Entering directory '/root/xmr-stak/build' cd /root/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/xmr-stak /root/xmr-stak /root/xmr-stak/build /root/xmr-stak/build /root/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake --color= Dependee "/root/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal". Dependee "/root/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal". Scanning dependencies of target xmr-stak-c make[2]: Leaving directory '/root/xmr-stak/build' make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/build make[2]: Entering directory '/root/xmr-stak/build' [ 3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o /usr/bin/cc -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/c_blake256.c [ 6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o /usr/bin/cc -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/c_groestl.c [ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o /usr/bin/cc -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/c_jh.c [ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o /usr/bin/cc -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/c_keccak.c [ 17%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o /usr/bin/cc -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=gnu99 -o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/c_skein.c [ 20%] Linking C static library bin/libxmr-stak-c.a /usr/bin/cmake -P CMakeFiles/xmr-stak-c.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak-c.dir/link.txt --verbose=1 /usr/bin/ar qc bin/libxmr-stak-c.a CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o /usr/bin/ranlib bin/libxmr-stak-c.a make[2]: Leaving directory '/root/xmr-stak/build' [ 20%] Built target xmr-stak-c make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/depend make[2]: Entering directory '/root/xmr-stak/build' cd /root/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/xmr-stak /root/xmr-stak /root/xmr-stak/build /root/xmr-stak/build /root/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake --color= Dependee "/root/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal". Dependee "/root/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal". Scanning dependencies of target xmr-stak-backend make[2]: Leaving directory '/root/xmr-stak/build' make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/build make[2]: Entering directory '/root/xmr-stak/build' [ 24%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o -c /root/xmr-stak/xmrstak/jconf.cpp [ 27%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o -c /root/xmr-stak/xmrstak/version.cpp [ 31%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o -c /root/xmr-stak/xmrstak/backend/cpu/hwlocMemory.cpp [ 34%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o -c /root/xmr-stak/xmrstak/backend/cpu/jconf.cpp [ 37%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o -c /root/xmr-stak/xmrstak/backend/cpu/minethd.cpp [ 41%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o -c /root/xmr-stak/xmrstak/backend/backendConnector.cpp [ 44%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o -c /root/xmr-stak/xmrstak/backend/globalStates.cpp [ 48%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o -c /root/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_common.cpp [ 51%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o -c /root/xmr-stak/xmrstak/http/httpd.cpp [ 55%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o -c /root/xmr-stak/xmrstak/http/webdesign.cpp [ 58%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o -c /root/xmr-stak/xmrstak/misc/console.cpp [ 62%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o -c /root/xmr-stak/xmrstak/misc/executor.cpp [ 65%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o -c /root/xmr-stak/xmrstak/misc/telemetry.cpp [ 68%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o -c /root/xmr-stak/xmrstak/misc/utility.cpp [ 72%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o -c /root/xmr-stak/xmrstak/net/jpsock.cpp [ 75%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o -c /root/xmr-stak/xmrstak/net/socket.cpp [ 79%] Linking CXX static library bin/libxmr-stak-backend.a /usr/bin/cmake -P CMakeFiles/xmr-stak-backend.dir/cmake_clean_target.cmake /usr/bin/cmake -E cmake_link_script CMakeFiles/xmr-stak-backend.dir/link.txt --verbose=1 /usr/bin/ar qc bin/libxmr-stak-backend.a CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o /usr/bin/ranlib bin/libxmr-stak-backend.a make[2]: Leaving directory '/root/xmr-stak/build' [ 79%] Built target xmr-stak-backend make -f CMakeFiles/xmrstak_opencl_backend.dir/build.make CMakeFiles/xmrstak_opencl_backend.dir/depend make[2]: Entering directory '/root/xmr-stak/build' cd /root/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/xmr-stak /root/xmr-stak /root/xmr-stak/build /root/xmr-stak/build /root/xmr-stak/build/CMakeFiles/xmrstak_opencl_backend.dir/DependInfo.cmake --color= Dependee "/root/xmr-stak/build/CMakeFiles/xmrstak_opencl_backend.dir/DependInfo.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmrstak_opencl_backend.dir/depend.internal". Dependee "/root/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/root/xmr-stak/build/CMakeFiles/xmrstak_opencl_backend.dir/depend.internal". Scanning dependencies of target xmrstak_opencl_backend make[2]: Leaving directory '/root/xmr-stak/build' make -f CMakeFiles/xmrstak_opencl_backend.dir/build.make CMakeFiles/xmrstak_opencl_backend.dir/build make[2]: Entering directory '/root/xmr-stak/build' [ 82%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -Dxmrstak_opencl_backend_EXPORTS -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/amd_gpu/gpu.cpp.o -c /root/xmr-stak/xmrstak/backend/amd/amd_gpu/gpu.cpp [ 86%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -Dxmrstak_opencl_backend_EXPORTS -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/jconf.cpp.o -c /root/xmr-stak/xmrstak/backend/amd/jconf.cpp [ 89%] Building CXX object CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o /usr/bin/c++ -DBACKEND_TYPE=amd-cpu -DCONF_NO_CUDA -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -Dxmrstak_opencl_backend_EXPORTS -I/root/xmr-stak/. -isystem /opt/AMDAPPSDK-3.0/include -march=native -mtune=native -msse2 -maes -O3 -DNDEBUG -fPIC -std=c++11 -o CMakeFiles/xmrstak_opencl_backend.dir/xmrstak/backend/amd/minethd.cpp.o -c /root/xmr-stak/xmrstak/backend/amd/minethd.cpp make[2]: *** No rule to make target '/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'. Stop. make[2]: Leaving directory '/root/xmr-stak/build' CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/xmrstak_opencl_backend.dir/all' failed make[1]: *** [CMakeFiles/xmrstak_opencl_backend.dir/all] Error 2 make[1]: Leaving directory '/root/xmr-stak/build' Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
Your system contains two times the library libOpenCL.so during the compile the build system can not solve this conflict.
please post the output of cmake -LA .
within the build folder
I have installed amdgpu-pro-17.40-492261 drivers and also AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.
~/xmr-stak/build# cmake -LA . -- Set miner currency to 'monero' and 'aeon' -- Configuring done -- Generating done -- Build files have been written to: /root/xmr-stak/build -- Cache values CMAKE_AR:FILEPATH=/usr/bin/ar CMAKE_BUILD_TYPE:STRING=Release CMAKE_COLOR_MAKEFILE:BOOL=ON CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++ CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_CXX_FLAGS:STRING= CMAKE_CXX_FLAGS_DEBUG:STRING=-g CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 CMAKE_C_FLAGS:STRING= CMAKE_C_FLAGS_DEBUG:STRING=-g CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG CMAKE_EXE_LINKER_FLAGS:STRING= CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF CMAKE_INSTALL_PREFIX:PATH=/root/xmr-stak/build CMAKE_LINKER:FILEPATH=/usr/bin/ld CMAKE_LINK_STATIC:BOOL=OFF CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make CMAKE_MODULE_LINKER_FLAGS:STRING= CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_NM:FILEPATH=/usr/bin/nm CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib CMAKE_SHARED_LINKER_FLAGS:STRING= CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_SKIP_INSTALL_RPATH:BOOL=NO CMAKE_SKIP_RPATH:BOOL=NO CMAKE_STATIC_LINKER_FLAGS:STRING= CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= CMAKE_STRIP:FILEPATH=/usr/bin/strip CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE CPU_ENABLE:BOOL=ON CUDA_64_BIT_DEVICE_CODE:BOOL=ON CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE:BOOL=ON CUDA_BUILD_CUBIN:BOOL=OFF CUDA_BUILD_EMULATION:BOOL=OFF CUDA_CUDART_LIBRARY:FILEPATH=CUDA_CUDART_LIBRARY-NOTFOUND CUDA_CUDA_LIBRARY:FILEPATH=CUDA_CUDA_LIBRARY-NOTFOUND CUDA_ENABLE:BOOL=OFF CUDA_GENERATED_OUTPUT_DIR:PATH= CUDA_HOST_COMPILATION_CPP:BOOL=ON CUDA_HOST_COMPILER:FILEPATH=/usr/bin/cc CUDA_NVCC_EXECUTABLE:FILEPATH=CUDA_NVCC_EXECUTABLE-NOTFOUND CUDA_NVCC_FLAGS:STRING= CUDA_NVCC_FLAGS_DEBUG:STRING= CUDA_NVCC_FLAGS_MINSIZEREL:STRING= CUDA_NVCC_FLAGS_RELEASE:STRING= CUDA_NVCC_FLAGS_RELWITHDEBINFO:STRING= CUDA_PROPAGATE_HOST_FLAGS:BOOL=ON CUDA_SDK_ROOT_DIR:PATH=CUDA_SDK_ROOT_DIR-NOTFOUND CUDA_SEPARABLE_COMPILATION:BOOL=OFF CUDA_TOOLKIT_INCLUDE:PATH=CUDA_TOOLKIT_INCLUDE-NOTFOUND CUDA_TOOLKIT_ROOT_DIR:PATH=CUDA_TOOLKIT_ROOT_DIR-NOTFOUND CUDA_VERBOSE_BUILD:BOOL=OFF CUDA_cublas_LIBRARY:FILEPATH=CUDA_cublas_LIBRARY-NOTFOUND CUDA_cublasemu_LIBRARY:FILEPATH=CUDA_cublasemu_LIBRARY-NOTFOUND CUDA_cufft_LIBRARY:FILEPATH=CUDA_cufft_LIBRARY-NOTFOUND CUDA_cufftemu_LIBRARY:FILEPATH=CUDA_cufftemu_LIBRARY-NOTFOUND HWLOC:FILEPATH=/usr/lib/x86_64-linux-gnu/libhwloc.so HWLOC_ENABLE:BOOL=ON HWLOC_INCLUDE_DIR:PATH=/usr/include MHTD:FILEPATH=/usr/lib/x86_64-linux-gnu/libmicrohttpd.so MICROHTTPD_ENABLE:BOOL=ON MTHD_INCLUDE_DIR:PATH=/usr/include OPENSSL_CRYPTO_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcrypto.so OPENSSL_INCLUDE_DIR:PATH=/usr/include OPENSSL_SSL_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libssl.so OpenCL_ENABLE:BOOL=ON OpenCL_INCLUDE_DIR:PATH=/opt/AMDAPPSDK-3.0/include OpenCL_LIBRARY:FILEPATH=/opt/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so OpenSSL_ENABLE:BOOL=ON PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config WIN_UAC:BOOL=ON XMR-STAK_COMPILE:STRING=native XMR-STAK_CURRENCY:STRING=all
I am having the same issue as @MrAbaddon when trying to build the new xmr-stak release with OpenCL.
My output is identical to his as far as I can tell, I have the exact same OpenCL variables set and get the exact same error.
Does OpenCL_LIBRARY need to be unset? How would I go about doing this in cmake or the make file?
I am running Arch Linux.
Try to set the LD_LIBRARY_PATH to the libopencl of the app sdk
Could you please be more specific?
Same issue on my side Ubuntu 16.04 LTS.
cd $AMDAPPSDKROOT/lib/x86_64/sdk sudo ln -sf sdk/libOpenCL.so.1 libOpenCL.so reboot worked for me ...
@tec88de , I already have that symbolic link. Didnt have the need to make it by hand:
root@mining#pwd /opt/AMDAPPSDK-3.0/lib/x86_64/sdk
and
root@mining#ll total 59952 drwxr-xr-x 2 root root 4096 nov 20 18:50 ./ drwxr-xr-x 3 root root 4096 nov 20 18:50 ../ -rwxr-xr-x 1 root root 61348736 nov 20 18:50 libamdocl64.so* lrwxrwxrwx 1 root root 14 nov 20 18:50 libOpenCL.so -> libOpenCL.so.1* -rwxr-xr-x 1 root root 27424 nov 20 18:50 libOpenCL.so.1*
The solution @tec88de describes with the link works, but the first cd goes 1 folder too deep. There is another libOpenCL in the folder above the sdk folder, which I assume is causing the double reference. This links it to the one in the sdk folder.
Tested built and running on Arch and Debian.
Run these commands and you should be good to go
$ cd $AMDAPPSDKROOT/lib/x86_64
$ sudo ln -sf sdk/libOpenCL.so.1 libOpenCL.so
You do not need to reboot
Thanks @csinko, it made the job for me. I was with the same issue.
Also, the docs are outdated inside docs/compile*.
Thanks @csinko , That worked for me too.
Yea works well. That was a lot easier than getting openCL with AMD drivers on linux was. Thanks
Thanks @csinko, fixed the problem for on Ubuntu 16.04!
@csinko Thank you - worked on my Ubuntu 17.10 as well Linux ubuntu17 4.13.0-21-generic #24-Ubuntu
worked for me with linux 4.15
Fix works on Ubuntu 16.04.3 LTS, thanks guys!
I had the same issue. Not sure why but the original symlink was:
/opt/AMDAPPSDK-3.0/lib/x86_6/libOpenCL.so -> /usr/lib/libOpenCL.so.1
Once I followed @csinko tip it is now:
/opt/AMDAPPSDK-3.0/lib/x86_6/libOpenCL.so -> sdk/libOpenCL.so.1