nicehash / nheqminer Goto Github PK
View Code? Open in Web Editor NEWEquihash miner for NiceHash
Home Page: https://www.nicehash.com
License: MIT License
Equihash miner for NiceHash
Home Page: https://www.nicehash.com
License: MIT License
nheqminer: 1: nheqminer: Syntax error: "(" unexpected
^^ That is what shows up when I type "nheqminer -l eu -u {ADDRESS} -t {THREADS}" And obivous {} are replaced with values.
I run this on Ubunutu 14.04 Build with Cmake
On NVIDIA GeForce GT 610 (driver date/version: 18.10.2016/21.21.13.7557):
CUDA error 'unknown error' in func 'eq_cuda_context::solve' line 985
Ouput repeats itself...
[12:42:21][0xb7107b40] stratum | Connecting to stratum server equihash.eu.nicehash.com:3357
[12:42:21][0xb7107b40] stratum | Connected!
[12:42:21][0xb7107b40] stratum | read_until: Connection reset by peer
[12:42:21][0xb7107b40] stratum | Reconnecting in 3 seconds...
starting the miner this way
nheqminer -l eu -u 14dzAsHLNb4acdZavehSj7GpM6h4LEyRnm.mini
on a Debian 8.1 using the cmake compile method.
if i change location to US it states that the address cant be resolved.
something with your EU server or is it on my end?
This might be the dumbest thing you have ever heard but how do i start equiminer on linux?? I already fillowed the instructions in the readme but how do i start? I am fairly new to these things.
Not working for 290x and 295x2(basicly 2 290x) cards. All shares get rejected and sol/s shows in the thousands.
Benchmark is not working properly? The results are not repeated, and a difference in one of the same test 10%.
` ==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:20:00.618743][0x00002044]: Using SSE2: YES
[2016-10-28 07:20:00.626749][0x00002044]: Using AVX: YES
[2016-10-28 07:20:00.629743][0x00002044]: Using AVX2: NO
[2016-10-28 07:20:01.121043][0x00002044]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:20:01.384609][0x00002044]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:20:43.265854][0x00002044]: Benchmark done!
[2016-10-28 07:20:43.268938][0x00002044]: Total time : 41817 ms
[2016-10-28 07:20:43.272937][0x00002044]: Total iterations: 200
[2016-10-28 07:20:43.280030][0x00002044]: Total solutions found: 404
[2016-10-28 07:20:43.284109][0x00002044]: Speed: 4.78274 I/s
[2016-10-28 07:20:43.291110][0x00002044]: Speed: 9.66114 Sols/s
==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:20:50.732346][0x00000b60]: Using SSE2: YES
[2016-10-28 07:20:50.739346][0x00000b60]: Using AVX: YES
[2016-10-28 07:20:50.742347][0x00000b60]: Using AVX2: NO
[2016-10-28 07:20:51.212518][0x00000b60]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:20:51.444579][0x00000b60]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:21:33.299221][0x00000b60]: Benchmark done!
[2016-10-28 07:21:33.302722][0x00000b60]: Total time : 41789 ms
[2016-10-28 07:21:33.306229][0x00000b60]: Total iterations: 200
[2016-10-28 07:21:33.313225][0x00000b60]: Total solutions found: 431
[2016-10-28 07:21:33.316225][0x00000b60]: Speed: 4.78595 I/s
[2016-10-28 07:21:33.324297][0x00000b60]: Speed: 10.3137 Sols/s
==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:23:43.873359][0x0000075c]: Using SSE2: YES
[2016-10-28 07:23:43.879314][0x0000075c]: Using AVX: YES
[2016-10-28 07:23:43.883284][0x0000075c]: Using AVX2: NO
[2016-10-28 07:23:44.398684][0x0000075c]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:23:44.628754][0x0000075c]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:24:27.138714][0x0000075c]: Benchmark done!
[2016-10-28 07:24:27.141713][0x0000075c]: Total time : 42445 ms
[2016-10-28 07:24:27.145713][0x0000075c]: Total iterations: 200
[2016-10-28 07:24:27.152233][0x0000075c]: Total solutions found: 393
[2016-10-28 07:24:27.156242][0x0000075c]: Speed: 4.71198 I/s
[2016-10-28 07:24:27.163223][0x0000075c]: Speed: 9.25904 Sols/s
==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:24:34.429528][0x00001468]: Using SSE2: YES
[2016-10-28 07:24:34.436528][0x00001468]: Using AVX: YES
[2016-10-28 07:24:34.440454][0x00001468]: Using AVX2: NO
[2016-10-28 07:24:34.920634][0x00001468]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:24:35.091775][0x00001468]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:25:16.796577][0x00001468]: Benchmark done!
[2016-10-28 07:25:16.799576][0x00001468]: Total time : 41640 ms
[2016-10-28 07:25:16.803087][0x00001468]: Total iterations: 200
[2016-10-28 07:25:16.810188][0x00001468]: Total solutions found: 387
[2016-10-28 07:25:16.813181][0x00001468]: Speed: 4.80307 I/s
[2016-10-28 07:25:16.820112][0x00001468]: Speed: 9.29395 Sols/s
`
Can I disable the using of boost_log?
in releases/Public alpha WIN64 builds (https://github.com/nicehash/nheqminer/releases/tag/0.2a):
binaries for v0.2a but source code for v0.1c.
when mine with gpu my speed is always 0 what is that?
Is there a readme for nheqminer_zcash.exe and the different commands?
When I run:
nheqminer_zcash.exe -l eu -u WALLET -p x -t 6 -od 0 1 2
Only one GPU is mining
~/nheqminer/nheqminer/build$ cmake ..
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- 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
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- log_setup
-- log
-- date_time
-- filesystem
-- thread
-- regex
-- chrono
-- atomic
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhou/nheqminer/nheqminer/build
~/nheqminer/nheqminer/build$ make
Scanning dependencies of target nheqminer
[ 5%] Building CXX object CMakeFiles/nheqminer.dir/main.cpp.o
[ 11%] Building CXX object CMakeFiles/nheqminer.dir/amount.cpp.o
[ 17%] Building CXX object CMakeFiles/nheqminer.dir/api.cpp.o
[ 23%] Building CXX object CMakeFiles/nheqminer.dir/arith_uint256.cpp.o
[ 29%] Building CXX object CMakeFiles/nheqminer.dir/crypto/ripemd160.cpp.o
[ 35%] Building CXX object CMakeFiles/nheqminer.dir/crypto/sha256.cpp.o
[ 41%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_reader.cpp.o
[ 47%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_value.cpp.o
[ 52%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_writer.cpp.o
[ 58%] Building CXX object CMakeFiles/nheqminer.dir/libstratum/StratumClient.cpp.o
[ 64%] Building CXX object CMakeFiles/nheqminer.dir/libstratum/ZcashStratum.cpp.o
[ 70%] Building CXX object CMakeFiles/nheqminer.dir/primitives/block.cpp.o
[ 76%] Building CXX object CMakeFiles/nheqminer.dir/speed.cpp.o
[ 82%] Building CXX object CMakeFiles/nheqminer.dir/trompequihash/blake2/blake2bx.cpp.o
[ 88%] Building CXX object CMakeFiles/nheqminer.dir/uint256.cpp.o
[ 94%] Building CXX object CMakeFiles/nheqminer.dir/utilstrencodings.cpp.o
[100%] Linking CXX executable nheqminer
[100%] Built target nheqminer
nheqminer/nheqminer/build$ nheqminer -h
nheqminer:Command not found
On systems running older versions of Linux/GCC there are problems compiling and running nheqminer.
The two issues are:
alignas
is not available for file nheqminer/unit256.h
nheqminer/libstratum/StratumClient.cpp
, due to this == 0x0
.The patches to correct the problems are:
diff --git a/nheqminer/libstratum/StratumClient.cpp b/nheqminer/libstratum/StratumClient.cpp
index a9b0669..6c56dca 100644
--- a/nheqminer/libstratum/StratumClient.cpp
+++ b/nheqminer/libstratum/StratumClient.cpp
@@ -72,7 +72,7 @@ template <typename Miner, typename Job, typename Solution>
void StratumClient<Miner, Job, Solution>::startWorking()
{
m_work.reset(new std::thread([&]() {
- workLoop();
+ this->workLoop();
}));
}
diff --git a/nheqminer/uint256.h b/nheqminer/uint256.h
index 3729c98..f768e61 100644
--- a/nheqminer/uint256.h
+++ b/nheqminer/uint256.h
@@ -19,7 +19,7 @@ class base_blob
{
protected:
enum { WIDTH=BITS/8 };
- alignas(uint32_t) uint8_t data[WIDTH];
+ __attribute__((aligned(4))) uint8_t data[WIDTH];
public:
base_blob()
{
Can't mining on 980m.
Getting a build failure on ubuntu
/usr/bin/ld: final link failed: Nonrepresentable section on output
On Windows 10 I get the following error
stratum | Worker not authorized: [zcash address]
I start by using the following command nheqminer_zcash.exe -l USA -cd 0 -u [zcash address]
The benchmark completes without error.
Full output:
Setting log level to 2
[2016-10-28 14:24:04.629491][0x00004bec]: Using SSE2: YES
[2016-10-28 14:24:04.630472][0x00004bec]: Using AVX: YES
[2016-10-28 14:24:04.631453][0x00004bec]: Using AVX2: YES
[2016-10-28 14:24:04.801225][0x00003320]: stratum | Starting miner
[2016-10-28 14:24:04.803187][0x000014f0]: miner#0 | Starting thread #0 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x00004820]: miner#1 | Starting thread #1 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x00004830]: miner#2 | Starting thread #2 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x000048f4]: miner#3 | Starting thread #3 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x00004840]: miner#4 | Starting thread #4 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x000037bc]: miner#5 | Starting thread #5 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.804168][0x00003f28]: miner#6 | Starting thread #6 (CPU-XENONCAT-AVX2)
[2016-10-28 14:24:04.805150][0x00003320]: stratum | Connecting to stratum server stratum.USA.zcash.nicehash.com:3357
[2016-10-28 14:24:04.805150][0x000025a4]: miner#7 | Starting thread #7 (CUDA-TROMP) GeForce GTX 1070 (#0) BLOCKS=105, THREADS=64
[2016-10-28 14:24:04.902301][0x00003320]: stratum | Connected!
[2016-10-28 14:24:04.975199][0x00003320]: stratum | read_until: End of file
[2016-10-28 14:24:04.978117][0x00003320]: stratum | Reconnecting in 3 seconds...
[2016-10-28 14:24:07.980166][0x00003320]: stratum | Connecting to stratum server stratum.USA.zcash.nicehash.com:3357
[2016-10-28 14:24:08.072943][0x00003320]: stratum | Connected!
[2016-10-28 14:24:08.146662][0x00003320]: stratum | read_until: End of file
[2016-10-28 14:24:08.151512][0x00003320]: stratum | Reconnecting in 3 seconds...
[2016-10-28 14:24:11.154069][0x00003320]: stratum | Connecting to stratum server stratum.USA.zcash.nicehash.com:3357
[2016-10-28 14:24:11.231985][0x00003320]: stratum | Connected!
[2016-10-28 14:24:11.319586][0x00003320]: stratum | Subscribed to stratum server
[2016-10-28 14:24:11.322526][0x00003320]: miner | Extranonce is 1ffff38000000000000000001ffff37f
[2016-10-28 14:24:11.397322][0x00003320]: stratum | Target set to 03c3c3c000000000000000000000000000000000000000000000000000000000
[2016-10-28 14:24:11.408074][0x00003320]: stratum | Received new job #a
im using windows 7 and the latest amd drivers
nheqminer -u IdoKrauss.SuperMe11 -p 1 -t 4 -cd 0 1 2 3
==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.3a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 18:20:00.847205][0x00000bd4]: Using SSE2: YES
[2016-10-28 18:20:00.857206][0x00000bd4]: Using AVX: NO
[2016-10-28 18:20:00.871207][0x00000bd4]: Using AVX2: NO
[2016-10-28 18:20:00.885208][0x00000bd4]: CUDA error 'CUDA driver version is insufficient for CUDA runtime version' in func 'cuda_tromp::getinfo' line 45
both 0.2 and 0.3 have been released with the source of 0.1 , please post it ...
collect2: error: ld returned 1 exit status
make: *** [nheqminer] Error 1
Running Ubuntu 14.04.1 LTS
I already had the wallet installed, and had done some cpu mining with the other standalone miner. decided to try this out and installed Qt5 as directed beforehand. This is all being done in command line over ssh.
Hi
Since you have made the two changes in last hour I can no longer build Ubuntu 16 (was working fine before)
please advise:
In file included from ../nheqminer/amount.h:9:0,
from ../nheqminer/primitives/transaction.h:9,
from ../nheqminer/primitives/block.h:9,
from ../nheqminer/main.cpp:5:
../nheqminer/serialize.h:24:27: fatal error: boost/array.hpp: No such file or directory
compilation terminated.
Makefile:433: recipe for target 'main.o' failed
make: *** [main.o] Error 1
Seems GPU mine is not enabled when I build on Ubuntu nor being able to use a ZCash address. Anyone knows how to get those two things to work on Ubuntu? Thanks!
Trying to Build on Google Cloud. I got this error. Any help?
_traits, std::allocator >&, std::locale const&)'
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:244: recipe for target 'nheqminer' failed
make: *** [nheqminer] Error 1
Hello
I m on debian stretch and when i m compiling nheqminer i have this error:
collect2: error: ld returned 1 exit status
Makefile:244: recipe for target 'nheqminer' failed
make: *** [nheqminer] Error 1
I have try to compile both with gcc and g++ version 5 and 6 both failed with this error :(
Just get 0 H/s, 0 Sol/s.
Don't know why there is two versions either:
nheqminer_x64_AVX.exe
nheqminer_x64_SSE2.exe
Edit: Just seems to be an issue with 'eu'; 'usa' works fine. Odd...
GPU mining not working:
<info> found 2 devices
<info> compiling ...
<info> source: 0 bytes
<error> source files not found or empty
Hi,
There is no any CPU compiler optimisations with cmake build system.
You forgought to add them.
Just added
add_definitions(-O3)
To nheqminer/CMakeLists.txt
file
Before it was 1 H/s on my i7, now is 5H/s
~/nheqminer/build$ make g++ -c -m64 -pipe -std=gnu++11 -O3 -Wall -W -fPIC -DHAVE_DECL_HTOBE16 -DHAVE_DECL_HTOLE16 -DHAVE_DECL_BE16TOH -DHAVE_DECL_LE16TOH -DHAVE_DECL_HTOBE32 -DHAVE_DECL_HTOLE32 -DHAVE_DECL_BE32TOH -DHAVE_DECL_LE32TOH -DHAVE_DECL_HTOBE64 -DHAVE_DECL_HTOLE64 -DHAVE_DECL_BE64TOH -DHAVE_DECL_LE64TOH -DHAVE_BYTESWAP_H -DHAVE_DECL_BSWAP_16 -DHAVE_DECL_BSWAP_32 -DHAVE_DECL_BSWAP_64 -I../nheqminer -I. -I../nheqminer/3rdparty -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o main.o ../nheqminer/main.cpp In file included from ../nheqminer/3rdparty/boost/predef/hardware/simd.h:9:0, from ../nheqminer/3rdparty/boost/predef/hardware.h:14, from ../nheqminer/3rdparty/boost/predef.h:20, from ../nheqminer/3rdparty/boost/smart_ptr/detail/yield_k.hpp:28, from ../nheqminer/3rdparty/boost/smart_ptr/detail/spinlock_sync.hpp:18, from ../nheqminer/3rdparty/boost/smart_ptr/detail/spinlock.hpp:50, from ../nheqminer/3rdparty/boost/smart_ptr/detail/spinlock_pool.hpp:25, from ../nheqminer/3rdparty/boost/smart_ptr/shared_ptr.hpp:35, from ../nheqminer/3rdparty/boost/shared_ptr.hpp:17, from ../nheqminer/3rdparty/boost/signals2/deconstruct.hpp:28, from ../nheqminer/3rdparty/boost/signals2.hpp:15, from ../nheqminer/libstratum/ZcashStratum.h:10, from ../nheqminer/libstratum/StratumClient.h:6, from ../nheqminer/main.cpp:8: ../nheqminer/3rdparty/boost/predef/hardware/simd/x86.h:13:53: fatal error: boost/predef/hardware/simd/x86/versions.h: No such file or directory compilation terminated. Makefile:1859: recipe for target 'main.o' failed make: *** [main.o] Error 1
Following guide from readme.
make
../nheqminer/3rdparty/boost/predef/hardware/simd/x86.h:13:53: fatal error: boost/predef/hardware/simd/x86/versions.h: No such file or directory
of course boost is installed but ignored.
650M NVIDIA CUDA doesn't work with the 0.3 release.
What is an idea behind adding mining.extranonce.subscribe
?
https://github.com/str4d/zips/blob/77-zip-stratum/drafts/str4d-stratum/draft1.rst
There is big work done on specification.
Protocol Flow
Client sends mining.subscribe to set up the session.
Server replies with the session information.
Client sends mining.authorize for their worker(s).
Server replies with the result of authorization.
Server sends mining.set_target.
Server sends mining.notify with a new job.
Client mines on that job.
Client sends mining.submit for each solution found.
Server replies with whether the solution was accepted.
Server sends mining.notify again when there is a new job.
I get [21:02:43][0x00007f653f36c700] stratum | Worker not authorized:
Every time I run nheqminer
./nheqminer -l eu -u zcFr1cthUiHr2MDvtcyAVCj3FgCWMBGrcAaT4PUbLLaueyRurc94tRadFw8kV3NU3MYiDz6GyWBWaZ2zuVqWtHmodVafvYM -t 0 -od 0 1
To reproduce, just try to connect to a host which doesn't exist or is down.
This will cause an endless reconnect loop, ignoring SIGINT (Ctrl - C).
I followed this http://zcash.nicehash.com/getting_started
to start mining zcash
but it ends on "Worker not authorized"
do I need to register somewhere? The tutorial only says that it needs zcash address..
Is someone able to compile for OSX? :)
Build log:
[100%] Linking CXX executable nheqminer
/usr/bin/cmake -E cmake_link_script CMakeFiles/nheqminer.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++ -march=native -O2 -pipe -std=c++11 -march=native -Wl,-O1 -Wl,--as-needed CMakeFiles/nheqminer.dir/main.cpp.o CMakeFiles/nheqminer.dir/amount.cpp.o CMakeFiles/nheqminer.dir/api.cpp.o CMakeFiles/nheqminer.dir/arith_uint256.cpp.o CMakeFiles/nheqminer.dir/crypto/ripemd160.cpp.o CMakeFiles/nheqminer.dir/crypto/sha256.cpp.o CMakeFiles/nheqminer.dir/json/json_spirit_reader.cpp.o CMakeFiles/nheqminer.dir/json/json_spirit_value.cpp.o CMakeFiles/nheqminer.dir/json/json_spirit_writer.cpp.o CMakeFiles/nheqminer.dir/libstratum/StratumClient.cpp.o CMakeFiles/nheqminer.dir/libstratum/ZcashStratum.cpp.o CMakeFiles/nheqminer.dir/primitives/block.cpp.o CMakeFiles/nheqminer.dir/speed.cpp.o CMakeFiles/nheqminer.dir/trompequihash/blake2/blake2bx.cpp.o CMakeFiles/nheqminer.dir/uint256.cpp.o CMakeFiles/nheqminer.dir/utilstrencodings.cpp.o -o nheqminer -rdynamic -lboost_system-mt -lboost_log_setup-mt -lboost_log-mt -lboost_date_time-mt -lboost_filesystem-mt -lboost_thread-mt
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/nheqminer.dir/main.cpp.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/lib64/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/nheqminer.dir/build.make:491: nheqminer] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/nheqminer-9999/work/nheqminer-9999_build'
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/nheqminer.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/net-misc/nheqminer-9999/work/nheqminer-9999_build'
make: *** [Makefile:84: all] Error 2
Proposed patch:
--- nheqminer/nheqminer/CMakeLists.txt
+++ nheqminer/nheqminer/CMakeLists.txt
@@ -117,11 +117,11 @@
)
#add_executable(${PROJECT_NAME} ${SRC_LIST})
-set(LIBS ${LIBS} ${Threads_LIBRARIES} ${Boost_LIBRARIES})
+set(LIBS ${LIBS} ${Boost_LIBRARIES})
#message("-- CXXFLAGS: ${CMAKE_CXX_FLAGS}")
#message("-- LIBS: ${LIBS}")
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
#target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES})
-target_link_libraries(${PROJECT_NAME} ${LIBS})
+target_link_libraries(${PROJECT_NAME} ${LIBS} ${CMAKE_THREAD_LIBS_INIT})
See:
http://stackoverflow.com/questions/19901934/strange-linking-error-dso-missing-from-command-line
https://cmake.org/cmake/help/v2.8.8/cmake.html#module:FindThreads
There used boost from the folder '3rdparty', and
also included following headers:
which just absent in 3rdparty folder. What to do?
I m getting this error while running nheqminer
[2016-10-29 13:46:10.693807][0x000005bc]: stratum | Rejected share #1238 (Invalid Equihash solution)
[2016-10-29 19:24:41.702874][0x00003508]: stratum | Connecting to stratum server equihash.eu.nicehash.com:3357 [2016-10-29 19:24:41.952409][0x00003508]: stratum | Connected! [2016-10-29 19:24:42.135941][0x00003508]: stratum | read_until: End of file [2016-10-29 19:24:42.142940][0x00003508]: stratum | Reconnecting in 3 seconds... [2016-10-29 19:24:45.153858][0x00003508]: stratum | Connecting to stratum server equihash.eu.nicehash.com:3357 [2016-10-29 19:24:45.364391][0x00003508]: stratum | Connected! [2016-10-29 19:24:45.546413][0x00003508]: stratum | read_until: End of file [2016-10-29 19:24:45.553417][0x00003508]: stratum | Reconnecting in 3 seconds..
I did compile it with an Ubuntu machine, but I'm now trying to do it with this other setup which is running centOS. Had to manually install the boost libraries, since the boost_log is not included in the one from the repo. But finally I'm running into this problem that I cannot solve.
$ make
Scanning dependencies of target nheqminer
[ 5%] Building CXX object CMakeFiles/nheqminer.dir/main.cpp.o
[ 11%] Building CXX object CMakeFiles/nheqminer.dir/amount.cpp.o
[ 17%] Building CXX object CMakeFiles/nheqminer.dir/api.cpp.o
[ 23%] Building CXX object CMakeFiles/nheqminer.dir/arith_uint256.cpp.o
[ 29%] Building CXX object CMakeFiles/nheqminer.dir/crypto/ripemd160.cpp.o
[ 35%] Building CXX object CMakeFiles/nheqminer.dir/crypto/sha256.cpp.o
[ 41%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_reader.cpp.o
[ 47%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_value.cpp.o
[ 52%] Building CXX object CMakeFiles/nheqminer.dir/json/json_spirit_writer.cpp.o
[ 58%] Building CXX object CMakeFiles/nheqminer.dir/libstratum/StratumClient.cpp.o
[ 64%] Building CXX object CMakeFiles/nheqminer.dir/libstratum/ZcashStratum.cpp.o
[ 70%] Building CXX object CMakeFiles/nheqminer.dir/primitives/block.cpp.o
[ 76%] Building CXX object CMakeFiles/nheqminer.dir/speed.cpp.o
[ 82%] Building CXX object CMakeFiles/nheqminer.dir/trompequihash/blake2/blake2bx.cpp.o
[ 88%] Building CXX object CMakeFiles/nheqminer.dir/uint256.cpp.o
[ 94%] Building CXX object CMakeFiles/nheqminer.dir/utilstrencodings.cpp.o
[100%] Linking CXX executable nheqminer
/usr/bin/ld: CMakeFiles/nheqminer.dir/main.cpp.o: undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.2.5'
/usr/bin/ld: note: 'pthread_rwlock_wrlock@@GLIBC_2.2.5' is defined in DSO /lib64/libpthread.so.0 so try adding it to the linker command line
/lib64/libpthread.so.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [nheqminer] Error 1
make[1]: *** [CMakeFiles/nheqminer.dir/all] Error 2
make: *** [all] Error 2
As you can see the library is there, located at /lib64/libpthread.so.0. But I don't really know how to inform the linker about that.
Thanks
Nelson R. Pérez
AMD not working with integrated Intel Graphic
FFS. There will be a dozen useless forks with hardcoded pools in a week. Play nice, hash.
RX 480 8GB
R9 380x 4GB
R9 280x 3GB
GPU speed: 25 Sol/s
New target on rc2 in chainparams.cpp
+++ b/nheqminer/libstratum/ZcashStratum.cpp
@@ -328,7 +328,7 @@ void ZcashJob::setTarget(std::string target)
serverTarget = UintToArith256(uint256S(target));
} else {
BOOST_LOG_TRIVIAL(debug) << "miner | New job but no server target, assuming powLimit";
- serverTarget = UintToArith256(uint256S("0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f"));
+ serverTarget = UintToArith256(uint256S("03ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
use the latest v0.3a
with this command
nheqminer_zcash.exe -l hk -u t1VYaqCsB9fBLVnBDsjNdgu2NJLJ5iXTrDF -t 4 -od 0
[2016-10-29 13:06:56.087113][0x00007828]: Using SSE2: YES
[2016-10-29 13:06:56.092117][0x00007828]: Using AVX: YES
[2016-10-29 13:06:56.094108][0x00007828]: Using AVX2: YES
[2016-10-29 13:06:56.098118][0x0000836c]: stratum | Starting miner
[2016-10-29 13:06:56.102112][0x00008030]: miner#0 | Starting thread #0 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x0000814c]: miner#1 | Starting thread #1 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x000081fc]: miner#2 | Starting thread #2 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x00006b94]: miner#3 | Starting thread #3 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x000081cc]: miner#4 | Starting thread #4 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x000081d8]: miner#5 | Starting thread #5 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x00008020]: miner#6 | Starting thread #6 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.102112][0x0000836c]: stratum | Connecting to stratum server zec-eu.suprnova.cc:2142
[2016-10-29 13:06:56.102112][0x00008040]: miner#7 | Starting thread #7 (CPU-XENONCAT-AVX2)
[2016-10-29 13:06:56.531676][0x0000836c]: stratum | Connected!
[2016-10-29 13:06:56.751772][0x0000836c]: stratum | Subscribed to stratum server
[2016-10-29 13:06:56.766847][0x0000836c]: miner | Extranonce is 6c92010000000000000000000001926d
[2016-10-29 13:06:56.993436][0x0000836c]: stratum | ←[35mTarget set to 00f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0←[0m
[2016-10-29 13:06:57.005446][0x0000836c]: stratum | ←[36mReceived new job #168←[0m
[2016-10-29 13:06:57.254346][0x0000836c]: stratum | Worker not authorized: 12fmu3Fqktku3exScRfF6Uw48F41KnoWDs
[2016-10-29 13:06:57.259350][0x0000836c]: stratum | Disconnecting
but got this error anyone why & how to fix it?
The title says it. When following build-make instrucitons from readme page, on LInux (ubuntu 16.04) there is no nheqminer_zcash created.
i try to start mining with the client windows with the following command
nheqminer_x64_AVX.exe -u 16yok2aDwAGLw5TDfk4Las7jy4EWSosCbh -p x -t 4
i have this error : not possible to connect in the pool
Setting log level to 2
[2016-10-27 12:59:36.765458][0x00001dac]: stratum | Connecting to stratum server
equihash.eu.nicehash.com:3357
[2016-10-27 12:59:36.810631][0x00001dac]: stratum | Connected!
[2016-10-27 12:59:36.814559][0x00001dac]: stratum | Starting miner
[2016-10-27 12:59:36.818558][0x00002254]: miner#0 | Starting thread #0
[2016-10-27 12:59:36.818558][0x00005d5c]: miner#1 | Starting thread #1
[2016-10-27 12:59:36.818558][0x000028bc]: miner#2 | Starting thread #2
[2016-10-27 12:59:36.818558][0x000019f8]: miner#3 | Starting thread #3
[2016-10-27 12:59:36.842560][0x00001dac]: stratum | read_until: End of file
[2016-10-27 12:59:36.850564][0x00001dac]: stratum | Reconnecting in 3 seconds...
[2016-10-27 12:59:48.707220][0x000036d0]: ←[33mSpeed [300 sec]: 0 H/s, 0 Sol/s←[
0m
is the pool already working?
Pinging equihash.eu.nicehash.com [37.58.117.214] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 37.58.117.214:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Hi!
Any hopes for supporting to mine Zcash / Equihash with OpenCL GPUs?
When I run the final make I get this error: (my path is ~/nheqminer/nheqminer/build)
g++ -c -m64 -pipe -std=gnu++11 -O3 -Wall -W -fPIE -DHAVE_DECL_HTOBE16 -DHAVE_DECL_HTOLE16 -DHAVE_DECL_BE16TOH -DHAVE_DECL_LE16TOH -DHAVE_DECL_HTOBE32 -DHAVE_DECL_HTOLE32 -DHAVE_DECL_BE32TOH -DHAVE_DECL_LE32TOH -DHAVE_DECL_HTOBE64 -DHAVE_DECL_HTOLE64 -DHAVE_DECL_BE64TOH -DHAVE_DECL_LE64TOH -DHAVE_BYTESWAP_H -DHAVE_DECL_BSWAP_16 -DHAVE_DECL_BSWAP_32 -DHAVE_DECL_BSWAP_64 -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I../../nheqminer -I../3rdparty -I. -o main.o ../main.cpp
In file included from ../3rdparty/boost/predef/architecture.h:28:0,
from ../3rdparty/boost/predef.h:14,
from ../3rdparty/boost/smart_ptr/detail/yield_k.hpp:28,
from ../3rdparty/boost/smart_ptr/detail/spinlock_sync.hpp:18,
from ../3rdparty/boost/smart_ptr/detail/spinlock.hpp:50,
from ../3rdparty/boost/smart_ptr/detail/spinlock_pool.hpp:25,
from ../3rdparty/boost/smart_ptr/shared_ptr.hpp:35,
from ../3rdparty/boost/shared_ptr.hpp:17,
from ../3rdparty/boost/signals2/deconstruct.hpp:28,
from ../3rdparty/boost/signals2.hpp:15,
from ../../nheqminer/libstratum/ZcashStratum.h:10,
from ../libstratum/StratumClient.h:6,
from ../main.cpp:8:
../3rdparty/boost/predef/architecture/x86.h:8:46: fatal error: boost/predef/architecture/x86/32.h: No such file or directory
#include <boost/predef/architecture/x86/32.h>
^
compilation terminated.
make: *** [main.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.