Closed Pentoman closed 6 years ago
please compile with cmake -DCMAKE_BUILD_TYPE=Debug ..
and run with with the debugger gdb
gdb -ex r -ex tb --args ./xmr-stak
and post all output
i also experience this issue in windows, not quite sure how to compile it as I am unsure how to specify a file path within windows to link the files i need (i assume the dep zip?) if you can assist in pathing I can compile a debug version for this as well
Follow the instructions here plus psychocrypt's request and it should compile.
Running 4.13.0-kali1-amd64 #1 SMP Debian 4.13.13-1kali1 (2017-11-17) x86_64 GNU/Linux
self complied from latest rel source::
-- 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-4.0 -- Check for working C compiler: /usr/bin/clang-4.0 -- 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++-4.0 -- Check for working CXX compiler: /usr/bin/clang++-4.0 -- 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' -- 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/local/cuda (found suitable version "8.0", minimum required is "7.5") -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.0g") fatal: Kein Git-Repository (oder irgendein Elternverzeichnis): .git fatal: Kein Git-Repository (oder irgendein Elternverzeichnis): .git -- Configuring done -- Generating done -- Build files have been written to: /root/xmr-stak-2.0.0/build root@H4XU:~/xmr-stak-2.0.0/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 [ 16%] 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 [ 23%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/jconf.cpp.o /root/xmr-stak-2.0.0/xmrstak/jconf.cpp:161:1: warning: control may reach end of non-void function [-Wreturn-type] } ^ 1 warning generated. [ 26%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/version.cpp.o [ 30%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.cpp.o [ 33%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/jconf.cpp.o [ 36%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o [ 40%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/backendConnector.cpp.o [ 43%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/globalStates.cpp.o [ 46%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/crypto/cryptonight_common.cpp.o [ 50%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o [ 53%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/webdesign.cpp.o [ 56%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.cpp.o [ 60%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/executor.cpp.o [ 63%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/telemetry.cpp.o [ 66%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o [ 70%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/jpsock.cpp.o [ 73%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/net/socket.cpp.o [ 76%] Linking CXX static library bin/libxmr-stak-backend.a [ 76%] Built target xmr-stak-backend Scanning dependencies of target xmrstak_cuda_backend [ 80%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_core.cu.o [ 83%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/nvcc_code/cuda_extra.cu.o [ 86%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/jconf.cpp.o [ 90%] Building CXX object CMakeFiles/xmrstak_cuda_backend.dir/xmrstak/backend/nvidia/minethd.cpp.o [ 93%] Linking CXX shared library bin/libxmrstak_cuda_backend.so [ 93%] Built target xmrstak_cuda_backend Scanning dependencies of target xmr-stak [ 96%] Building CXX object CMakeFiles/xmr-stak.dir/xmrstak/cli/cli-miner.cpp.o [100%] Linking CXX executable bin/xmr-stak [100%] Built target xmr-stak Install the project... -- Install configuration: "Release" xmr-stak installed to folder 'bin'
-----> STARTING XMR:
xmr-stak 2.0.0 79154f7
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.
Configurable dev donation level is set to 0.0%
You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection
[2017-11-22 20:54:46] : Start mining: MONERO [2017-11-22 20:54:46] : Starting NVIDIA GPU thread 0, affinity: 0. [2017-11-22 20:54:46] : hwloc: memory pinned [2017-11-22 20:54:46] : Starting single thread, affinity: 1. [2017-11-22 20:54:46] : hwloc: memory pinned [2017-11-22 20:54:46] : Starting single thread, affinity: 2. [2017-11-22 20:54:46] : hwloc: memory pinned [2017-11-22 20:54:46] : Starting single thread, affinity: 3. [2017-11-22 20:54:46] : hwloc: memory pinned Speicherzugriffsfehler (means mem access error)
tried all suggested changes and Settings: setting sudo sysctl -w vm.nr_hugepages=128" add following lines to /etc/security/limits.conf - " soft memlock 262144" and "* hard memlock 262144". does not help changing affinity is not working setting use_slow_mem to warn or no_mlck or always is not working setting deamon ist not working i really tried all possible setting changes now , it gives still the same error ... rebooting , running as root is also not helping. Please help
-------------------------->cpu.txt
/*
"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
],
---------------------------------> nvidia.txt
/*
"gpu_threads_conf" : [ // gpu: GeForce GTX 570 architecture: 20 // memory: 987/1218 MiB // smx: 15 { "index" : 0, "threads" : 14, "blocks" : 30, "bfactor" : 8, "bsleep" : 100, "affine_to_cpu" : false, },
],
---------------------------> config.txt
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
/*
*/ "output_file" : "",
/*
/*
/*