fireice-uk / xmr-stak

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

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 #244

Closed jmichaelbarker closed 6 years ago

jmichaelbarker commented 6 years ago

On a newly installed Ubuntu 17.10 system, getting this error after starting xmr-stak.sh and running the first configurations. Full output:

[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
-------------------------------------------------------------------
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-25 22:47:36] : Start mining: MONERO
WARNING: NVIDIA Insufficient driver!
[2017-11-25 22:47:36] : WARNING: backend NVIDIA disabled.
[2017-11-25 22:47:36] : WARNING: UNKNOWN_ERROR when calling clGetPlatformIDs for number of platforms.
[2017-11-25 22:47:36] : WARNING: No OpenCL platform found.
[2017-11-25 22:47:36] : WARNING: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver.
[2017-11-25 22:47:36] : WARNING: backend AMD disabled.
[2017-11-25 22:47:36] : Starting single thread, affinity: 0.
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 1.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 2.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 3.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 4.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 5.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 6.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 7.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 16.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 17.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 8.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 9.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 10.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 11.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 12.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 13.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:36] : hwloc: memory pinned
[2017-11-25 22:47:36] : Starting single thread, affinity: 14.
[2017-11-25 22:47:36] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:37] : hwloc: memory pinned
[2017-11-25 22:47:37] : Starting single thread, affinity: 15.
[2017-11-25 22:47:37] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:37] : hwloc: memory pinned
[2017-11-25 22:47:37] : Starting single thread, affinity: 24.
[2017-11-25 22:47:37] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:37] : hwloc: memory pinned
[2017-11-25 22:47:37] : Starting single thread, affinity: 25.
[2017-11-25 22:47:37] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:37] : hwloc: memory pinned
[2017-11-25 22:47:37] : MEMORY ALLOC FAILED: mmap failed
[2017-11-25 22:47:37] : Fast-connecting to cryptonight.usa.nicehash.com:3355 pool ...
/home/michael/Downloads/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

I'm unsure how to procede from here, as Google did not prove particularly helpful.

psychocrypt commented 6 years ago

Do you use the precompiled binary? If so please compile the miner from source we have issues wth the precompiled bin.

jmichaelbarker commented 6 years ago

When compiling from source, I am unable to compile with AMD GPU support (after installing the required SDK (No rule to make target '/home/michael/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'. Stop.). However, when compiling with only CPU support, I an able to run without the error as before, albeit with no GPU support.

losttime commented 6 years ago

I'm getting the same error ('/path/to/sdk/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'. Stop.). Totally possible that it was a different cause. Mine happens to be an AMD build.

Here's the output of make install

$ make install
Scanning dependencies of target xmr-stak-c
[  3%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_groestl.c.o
[  6%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_jh.c.o
[ 10%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_skein.c.o
[ 13%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_blake256.c.o
[ 17%] Building C object CMakeFiles/xmr-stak-c.dir/xmrstak/backend/cpu/crypto/c_keccak.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/jconf.cpp.o
[ 34%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/minethd.cpp.o
[ 37%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/backend/cpu/hwlocMemory.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/webdesign.cpp.o
[ 55%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/http/httpd.cpp.o
[ 58%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/utility.cpp.o
[ 62%] Building CXX object CMakeFiles/xmr-stak-backend.dir/xmrstak/misc/console.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/executor.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 '/path/to/sdk/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'.  Stop.
CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/xmrstak_opencl_backend.dir/all' failed
make[1]: *** [CMakeFiles/xmrstak_opencl_backend.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
fernandodrf commented 6 years ago

Hi there, I am getting the same error. I am trying to compile it on a Rzyen 1600 with two RX480 in Ubuntu 16.04 64bit. But I get the following error:

make[2]: *** No rule to make target '/home/reves/AMDAPPSDK-3.0/lib/x86_64/libOpenCL.so', needed by 'bin/libxmrstak_opencl_backend.so'.  Stop.
CMakeFiles/Makefile2:142: recipe for target 'CMakeFiles/xmrstak_opencl_backend.dir/all' failed
make[1]: *** [CMakeFiles/xmrstak_opencl_backend.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
losttime commented 6 years ago

I ended up moving to a Windows box, so I won't be able to debug anymore.

fernandodrf commented 6 years ago

Apperently it's the same error as by the old XMR-STAK-AMD version, i made the simlink and workted. https://github.com/fireice-uk/xmr-stak-amd/issues/182