fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.06k stars 1.79k forks source link

Nvidia build problems on Ubuntu 17.10 "cannot find libdevice for sm_30" #198

Closed aensley closed 6 years ago

aensley commented 7 years ago

Hello, kind devs. I'm still having trouble building this project. I previously opened an issue on xmr-stak-nvidia: fireice-uk/xmr-stak-nvidia#180

I am having the same problem with the latest version of xmr-stak. I'm running an Nvidia GeForce GTX 650 Ti on Ubuntu 17.10.

Errors:

clang: error: cannot find libdevice for sm_30. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang: error: cannot find CUDA installation.  Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.
clang: error: cannot find CUDA installation.  Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.

Clang version:

aensley@desktop:~/xmr-stak$ clang -v
clang version 4.0.1-6 (tags/RELEASE_401/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/7
Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/7.2.0
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/7.2.0
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/5.4.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.2.0
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/7.2.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found CUDA installation: /usr/local/cuda, version unknown

Cmake command:

cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DMICROHTTPD_ENABLE=OFF \
    -DOpenSSL_ENABLE=ON \
    -DXMR-STAK_CURRENCY=monero \
    -DXMR-STAK_COMPILE=native \
    -DCPU_ENABLE=ON \
    -DHWLOC_ENABLE=ON \
    -DCUDA_ENABLE=ON \
    -DCUDA_ARCH=30 \
    -DXMR-STAK_LARGEGRID=OFF \
    -DXMR-STAK_THREADS=44 \
    -DCUDA_COMPILER=clang

Configuration:

aensley@desktop:~/xmr-stak$ git clean -fdx
Removing build/
aensley@desktop:~/xmr-stak$ mkdir build
aensley@desktop:~/xmr-stak$ cd build
aensley@desktop:~/xmr-stak/build$ export CC=/usr/bin/clang
aensley@desktop:~/xmr-stak/build$ export CXX=/usr/bin/clang++
aensley@desktop:~/xmr-stak/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DMICROHTTPD_ENABLE=OFF -DOpenSSL_ENABLE=ON -DXMR-STAK_CURRENCY=monero -DXMR-STAK_COMPILE=native -DCPU_ENABLE=ON -DHWLOC_ENABLE=ON -DCUDA_ENABLE=ON -DCUDA_ARCH=30 -DXMR-STAK_LARGEGRID=OFF -DXMR-STAK_THREADS=44 -DCUDA_COMPILER=clang
-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- 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/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- 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'
-- 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 CUDA: /usr (found suitable version "8.0", minimum required is "7.5") 
-- xmr-stak-nvidia: set max threads per block to 44
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.0") 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.0g") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aensley/xmr-stak/build

Build (verbose):

aensley@desktop:~/xmr-stak/build$ make VERBOSE=1
/usr/bin/cmake -H/home/aensley/xmr-stak -B/home/aensley/xmr-stak/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/aensley/xmr-stak/build/CMakeFiles /home/aensley/xmr-stak/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/depend
make[2]: Entering directory '/home/aensley/xmr-stak/build'
cd /home/aensley/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/aensley/xmr-stak /home/aensley/xmr-stak /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake --color=
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal".
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal".
Scanning dependencies of target xmr-stak-c
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/build
make[2]: Entering directory '/home/aensley/xmr-stak/build'
[  2%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
/usr/bin/clang -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_blake256.c
[  5%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
/usr/bin/clang -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_groestl.c
[  8%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
/usr/bin/clang -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_jh.c
[ 11%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o
/usr/bin/clang -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_keccak.c
[ 14%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
/usr/bin/clang -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_skein.c
[ 17%] 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 '/home/aensley/xmr-stak/build'
[ 17%] Built target xmr-stak-c
make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/depend
make[2]: Entering directory '/home/aensley/xmr-stak/build'
cd /home/aensley/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/aensley/xmr-stak /home/aensley/xmr-stak /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake --color=
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal".
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal".
Scanning dependencies of target xmr-stak-backend
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/build
make[2]: Entering directory '/home/aensley/xmr-stak/build'
[ 20%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o -c /home/aensley/xmr-stak/xmrstak/jconf.cpp
/home/aensley/xmr-stak/xmrstak/jconf.cpp:161:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
[ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o -c /home/aensley/xmr-stak/xmrstak/version.cpp
[ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/hwlocMemory.cpp
[ 29%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/jconf.cpp
[ 32%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/minethd.cpp
[ 35%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o -c /home/aensley/xmr-stak/xmrstak/backend/backendConnector.cpp
[ 38%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o -c /home/aensley/xmr-stak/xmrstak/backend/globalStates.cpp
[ 41%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/cryptonight_common.cpp
[ 44%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o -c /home/aensley/xmr-stak/xmrstak/http/httpd.cpp
[ 47%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o -c /home/aensley/xmr-stak/xmrstak/http/webdesign.cpp
[ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o -c /home/aensley/xmr-stak/xmrstak/misc/console.cpp
[ 52%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o -c /home/aensley/xmr-stak/xmrstak/misc/executor.cpp
[ 55%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o -c /home/aensley/xmr-stak/xmrstak/misc/telemetry.cpp
[ 58%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o -c /home/aensley/xmr-stak/xmrstak/misc/utility.cpp
[ 61%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o -c /home/aensley/xmr-stak/xmrstak/net/jpsock.cpp
[ 64%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o -c /home/aensley/xmr-stak/xmrstak/net/socket.cpp
[ 67%] 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 '/home/aensley/xmr-stak/build'
[ 67%] Built target xmr-stak-backend
make -f CMakeFiles/xmrstak_cuda_backend.dir/build.make CMakeFiles/xmrstak_cuda_backend.dir/depend
make[2]: Entering directory '/home/aensley/xmr-stak/build'
cd /home/aensley/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/aensley/xmr-stak /home/aensley/xmr-stak /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/DependInfo.cmake --color=
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/DependInfo.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/depend.internal".
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmrstak_cuda_backend.dir/depend.internal".
Scanning dependencies of target xmrstak_cuda_backend
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmrstak_cuda_backend.dir/build.make CMakeFiles/xmrstak_cuda_backend.dir/build
make[2]: Entering directory '/home/aensley/xmr-stak/build'
[ 70%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu.o
/usr/bin/clang++  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -Dxmrstak_cuda_backend_EXPORTS -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -O3 -x cuda --cuda-path=/usr -ffp-contract=fast --cuda-gpu-arch=sm_30 -std=c++11 -o CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu.o -c /home/aensley/xmr-stak/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu
clang: error: cannot find libdevice for sm_30. Provide path to different CUDA installation via --cuda-path, or pass -nocudalib to build without linking with libdevice.
clang: error: cannot find CUDA installation.  Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.
clang: error: cannot find CUDA installation.  Provide its path via --cuda-path, or pass -nocudainc to build without CUDA includes.
CMakeFiles/xmrstak_cuda_backend.dir/build.make:62: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu.o' failed
make[2]: *** [CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu.o] Error 1
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
CMakeFiles/Makefile2:105: recipe for target 'CMakeFiles/xmrstak_cuda_backend.dir/all' failed
make[1]: *** [CMakeFiles/xmrstak_cuda_backend.dir/all] Error 2
make[1]: Leaving directory '/home/aensley/xmr-stak/build'
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
aensley@desktop:~/xmr-stak/build$ 
aensley commented 7 years ago

I also tried again with GCC5. I received a different error this time, but it seems to be caused by some change with stdlib.

Errors:

In file included from /home/aensley/xmr-stak/xmrstak/version.cpp:1:0:
/home/aensley/xmr-stak/xmrstak/version.hpp: In function ‘std::__cxx11::string get_version_str()’:
/home/aensley/xmr-stak/xmrstak/version.hpp:13:33: error: ‘to_string’ is not a member of ‘std’
  return std::string(ver_long) + std::to_string(uint32_t(fDevDonationLevel * 1000)) ;
                                 ^

Cmake command:

cmake .. \
    -DCMAKE_BUILD_TYPE=Release \
    -DMICROHTTPD_ENABLE=OFF \
    -DOpenSSL_ENABLE=ON \
    -DXMR-STAK_CURRENCY=monero \
    -DXMR-STAK_COMPILE=native \
    -DCPU_ENABLE=ON \
    -DHWLOC_ENABLE=ON \
    -DCUDA_ENABLE=ON \
    -DCUDA_ARCH=30 \
    -DXMR-STAK_LARGEGRID=OFF \
    -DXMR-STAK_THREADS=44

Configuration:

aensley@desktop:~/xmr-stak$ git clean -fdx
Removing build/
aensley@desktop:~/xmr-stak$ mkdir build
aensley@desktop:~/xmr-stak$ cd build
aensley@desktop:~/xmr-stak/build$ export CC=/usr/bin/gcc-5
aensley@desktop:~/xmr-stak/build$ export CXX=/usr/bin/g++-5
aensley@desktop:~/xmr-stak/build$ cmake .. -DCMAKE_BUILD_TYPE=Release -DMICROHTTPD_ENABLE=OFF -DOpenSSL_ENABLE=ON -DXMR-STAK_CURRENCY=monero -DXMR-STAK_COMPILE=native -DCPU_ENABLE=ON -DHWLOC_ENABLE=ON -DCUDA_ENABLE=ON -DCUDA_ARCH=30 -DXMR-STAK_LARGEGRID=OFF -DXMR-STAK_THREADS=44
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /usr/bin/gcc-5
-- Check for working C compiler: /usr/bin/gcc-5 -- 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/g++-5
-- Check for working CXX compiler: /usr/bin/g++-5 -- 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'
-- 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 CUDA: /usr (found suitable version "8.0", minimum required is "7.5") 
-- xmr-stak-nvidia: set max threads per block to 44
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - found
-- Found OpenCL: /usr/lib/x86_64-linux-gnu/libOpenCL.so (found version "2.0") 
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.0g") 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/aensley/xmr-stak/build

Build:

aensley@desktop:~/xmr-stak/build$ make VERBOSE=1
/usr/bin/cmake -H/home/aensley/xmr-stak -B/home/aensley/xmr-stak/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/aensley/xmr-stak/build/CMakeFiles /home/aensley/xmr-stak/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/depend
make[2]: Entering directory '/home/aensley/xmr-stak/build'
cd /home/aensley/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/aensley/xmr-stak /home/aensley/xmr-stak /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake --color=
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/DependInfo.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal".
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-c.dir/depend.internal".
Scanning dependencies of target xmr-stak-c
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-c.dir/build.make CMakeFiles/xmr-stak-c.dir/build
make[2]: Entering directory '/home/aensley/xmr-stak/build'
[  2%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
/usr/bin/gcc-5 -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_blake256.c
[  5%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
/usr/bin/gcc-5 -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_groestl.c
[  8%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
/usr/bin/gcc-5 -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_jh.c
[ 11%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.c.o
/usr/bin/gcc-5 -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_keccak.c
[ 14%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
/usr/bin/gcc-5 -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -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 /home/aensley/xmr-stak/xmrstak/backend/cpu/crypto/c_skein.c
[ 17%] 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 '/home/aensley/xmr-stak/build'
[ 17%] Built target xmr-stak-c
make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/depend
make[2]: Entering directory '/home/aensley/xmr-stak/build'
cd /home/aensley/xmr-stak/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/aensley/xmr-stak /home/aensley/xmr-stak /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build /home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake --color=
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/DependInfo.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal".
Dependee "/home/aensley/xmr-stak/build/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/home/aensley/xmr-stak/build/CMakeFiles/xmr-stak-backend.dir/depend.internal".
Scanning dependencies of target xmr-stak-backend
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
make -f CMakeFiles/xmr-stak-backend.dir/build.make CMakeFiles/xmr-stak-backend.dir/build
make[2]: Entering directory '/home/aensley/xmr-stak/build'
[ 20%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o
/usr/bin/g++-5  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o -c /home/aensley/xmr-stak/xmrstak/jconf.cpp
[ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o
/usr/bin/g++-5  -DBACKEND_TYPE=nvidia-amd-cpu -DCONF_NO_AEON=1 -DCONF_NO_HTTPD -DGIT_BRANCH=master -DGIT_COMMIT_HASH=79154f7 -DXMRSTAK_CUDA_ARCH_LIST=30 -DXMR_STAK_THREADS=44 -I/home/aensley/xmr-stak/.  -march=native -mtune=native  -msse2 -maes -O3 -DNDEBUG -fPIC   -std=c++11 -o CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o -c /home/aensley/xmr-stak/xmrstak/version.cpp
In file included from /home/aensley/xmr-stak/xmrstak/version.cpp:1:0:
/home/aensley/xmr-stak/xmrstak/version.hpp: In function ‘std::__cxx11::string get_version_str()’:
/home/aensley/xmr-stak/xmrstak/version.hpp:13:33: error: ‘to_string’ is not a member of ‘std’
  return std::string(ver_long) + std::to_string(uint32_t(fDevDonationLevel * 1000)) ;
                                 ^
CMakeFiles/xmr-stak-backend.dir/build.make:86: recipe for target 'CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o' failed
make[2]: *** [CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o] Error 1
make[2]: Leaving directory '/home/aensley/xmr-stak/build'
CMakeFiles/Makefile2:180: recipe for target 'CMakeFiles/xmr-stak-backend.dir/all' failed
make[1]: *** [CMakeFiles/xmr-stak-backend.dir/all] Error 2
make[1]: Leaving directory '/home/aensley/xmr-stak/build'
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
aensley commented 7 years ago

Finally tried the pre-compiled Linux binary. That also did not work. relocation error. It did pick up my Nvidia card with the same architecture I've been trying to build with (30).

It gave me this nvidia.txt config file:

"gpu_threads_conf" :
[
  // gpu: GeForce GTX 650 Ti architecture: 30
  //      memory: 1282/1994 MiB
  //      smx: 4
  { "index" : 0,
    "threads" : 46, "blocks" : 12,
    "bfactor" : 0, "bsleep" :  0,
    "affine_to_cpu" : false,
  },

],

Run output:

aensley@desktop:~/xmr-stak-portable$ ./xmr-stak.sh 
Please enter:
- Currency: 'monero' or 'aeon'
monero
- Pool address: e.g. pool.usxmrpool.com:3333
xxxxxxxxxxxxxxxxxxxxxxxxxx
- Username (wallet address or pool login):
xxxxxxxxxxxxxxxxxxxxxxxxxx
- Password (mostly empty or x):
xxxxxxxxxxxxxxxxxxxxxxxxxx
- Does this pool port support TLS/SSL? Use no if unknown. (y/N)
n
- Do you want to use nicehash on this pool? (y/n)
n
- Do you want to use multiple pools? (y/n)
n
Configuration stored in file 'config.txt'
[2017-11-21 15:41:21] : Your CPU doesn't support hardware AES. Don't expect high hashrates.
-------------------------------------------------------------------
xmr-stak 2.0.0 0005e4a

Brought to you by fireice_uk and psychocrypt under GPLv3.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Based on NVIDIA mining code by KlausT and psychocrypt.
Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%

You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2017-11-21 15:41:21] : Start mining: MONERO
[2017-11-21 15:41:21] : NVIDIA: GPU configuration stored in file 'nvidia.txt'
[2017-11-21 15:41:21] : Starting NVIDIA GPU thread 0, no affinity.
[2017-11-21 15:41:21] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver.
[2017-11-21 15:41:21] : WARNING: backend AMD disabled.
[2017-11-21 15:41:21] : CPU configuration stored in file 'cpu.txt'
[2017-11-21 15:41:21] : Starting single thread, affinity: 0.
[2017-11-21 15:41:22] : hwloc: memory pinned
[2017-11-21 15:41:22] : Starting single thread, affinity: 1.
[2017-11-21 15:41:22] : hwloc: memory pinned
[2017-11-21 15:41:22] : Starting single thread, affinity: 2.
[2017-11-21 15:41:22] : hwloc: memory pinned
[2017-11-21 15:41:22] : Fast-connecting to xxxxxxxxxxxxxxxxxxxxxxxxxx pool ...
/home/aensley/xmr-stak-portable/stak/xmr-stak: relocation error: /lib/x86_64-linux-gnu/libnss_dns.so.2: symbol __resolv_context_get, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
aensley@desktop:~/xmr-stak-portable$ 
dankoz51 commented 6 years ago

What version of CUDA I noticed 9 does not have the device 30 drivers so try downloading Cuda 8.

aensley commented 6 years ago

Replying to https://github.com/fireice-uk/xmr-stak/issues/198#issuecomment-348412575 by @dankoz51:

aensley@desktop:~/xmr-stak$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
aensley commented 6 years ago

CUDA 8 was installed via official Ubuntu repository packages. After my first build failures, I did try to install CUDA 9 following compilation instructions on the wiki. It's installed, but it looks like CUDA 8 is taking precedence anyway.

JerichoJones commented 6 years ago

Just a word of advice. Feel free to take it or leave it. I run a separate VM for each environment (CUDA/Compiler) to avoid issues like this that you are seeing.