Closed aensley closed 6 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
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$
What version of CUDA I noticed 9 does not have the device 30 drivers so try downloading Cuda 8.
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
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.
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.
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 version:
Cmake command:
Configuration:
Build (verbose):