Giter VIP home page Giter VIP logo

cpuminer's People

Contributors

djm34 avatar harukama avatar riordant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpuminer's Issues

Difficulty building on Xenial, Xeon

Have not experienced this issue before, when compiling other forks of cpuminer.
Dependency version mismatch?
Using branch test2.

/root/mtp/cpuminer/util.c:2547: undefined reference to `json_bytes_size'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_unknown_method_bos':
/root/mtp/cpuminer/util.c:2860: undefined reference to `json_object'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_unknown_method_bos':
/root/mtp/cpuminer/util.c:2862: undefined reference to `json_false'
/root/mtp/cpuminer/util.c:2862: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2865: undefined reference to `bos_serialize'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_notify_bos':
/root/mtp/cpuminer/util.c:2531: undefined reference to `json_array_size'
/root/mtp/cpuminer/util.c:2533: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2533: undefined reference to `json_bytes_size'
/root/mtp/cpuminer/util.c:2534: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2534: undefined reference to `json_bytes_value'
/root/mtp/cpuminer/util.c:2537: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2537: undefined reference to `json_bytes_value'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_show_message':
/root/mtp/cpuminer/util.c:2939: undefined reference to `json_array_get'
/root/mtp/cpuminer/util.c:2941: undefined reference to `json_string_value'
/root/mtp/cpuminer/util.c:2946: undefined reference to `json_object'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
/tmp/ccsw4Crw.ltrans19.ltrans.o: In function `stratum_show_message':
/root/mtp/cpuminer/util.c:2948: undefined reference to `json_null'
/root/mtp/cpuminer/util.c:2948: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2949: undefined reference to `json_true'
/root/mtp/cpuminer/util.c:2949: undefined reference to `json_object_set_new'
/root/mtp/cpuminer/util.c:2950: undefined reference to `json_dumps'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `jobj_binary.constprop.199':
/root/mtp/cpuminer/util.c:819: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:824: undefined reference to `json_string_value'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `json_rpc2_call_recur.constprop.196':
/root/mtp/cpuminer/util.c:2244: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2246: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2248: undefined reference to `json_string_set'
/root/mtp/cpuminer/util.c:2251: undefined reference to `json_dumps'
/root/mtp/cpuminer/util.c:2254: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2260: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2262: undefined reference to `json_string_value'
/root/mtp/cpuminer/util.c:2271: undefined reference to `json_object_get'
/root/mtp/cpuminer/util.c:2275: undefined reference to `json_string'
/tmp/ccsw4Crw.ltrans29.ltrans.o: In function `json_object_set':
/root/mtp/cpuminer/./compat/bos-jansson/bosjansson.h:238: undefined reference to `json_object_set_new'
collect2: error: ld returned 1 exit status
Makefile:976: recipe for target 'cpuminer' failed
make[2]: *** [cpuminer] Error 1
make[2]: Leaving directory '/root/mtp/cpuminer'
Makefile:2863: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/mtp/cpuminer'
Makefile:602: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file

Can't compile on Fedora 29: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C

Hello is there any support for this project? When I try to build this code on Fedora 29 I get a compile error that I don't know how to handle.

Steps to build:
./autogen.sh
./configure CFLAGS="-march=native" --with-crypto --with-curl
make

during make I get this error:
make[2]: Entering directory '/root/cpuminer'
gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -std=gnu++11 -Iyes/include -Iyes/include -fno-strict-aliasing -I./compat/bos-jansson -I. -Iyes/include -Iyes/include -Wno-pointer-sign -Wno-pointer-to-int-cast -march=native -Iyes/include -Iyes/include -MT cpuminer-cpu-miner.o -MD -MP -MF .deps/cpuminer-cpu-miner.Tpo -c -o cpuminer-cpu-miner.o test -f 'cpu-miner.c' || echo './'cpu-miner.c
cc1: warning: command line option ‘-std=gnu++11’ is valid for C++/ObjC++ but not for C
cpu-miner.c:27:10: fatal error: curl/curl.h: No such file or directory
#include <curl/curl.h>
^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1388: cpuminer-cpu-miner.o] Error 1
make[2]: Leaving directory '/root/cpuminer'
make[1]: *** [Makefile:2979: all-recursive] Error 1
make[1]: Leaving directory '/root/cpuminer'
make: *** [Makefile:712: all] Error 2

Reference CPU hashrate?

What is an average KH/s for a reference CPU (don't care which) would be nice. For example, I found the following elsewhere on the internet: "an Intel I7 4790k hashed around 5-6 KH/s per thread"[^]

Also, now that memory usage is way down, is it one thread per-core or per-hyperthread; e.g. 4 vs 8 for the aforementioned i7?

Process for a dozen seconds then stalls for a minute

Hello,

Here is what's happening with CPUMiner:

Dec 24 16:41:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:41:19] accepted: 148/149 (diff 0.000), 102.70 kH/s yes!
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: Found a solution. Nonce=f8029375 Hash:
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #31: 3.06 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #22: 3.38 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #21: 3.18 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #23: 3.16 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #14: 3.45 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #28: 3.37 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #25: 3.18 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #9: 3.17 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #30: 3.35 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #7: 3.19 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #1: 3.17 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #17: 3.00 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #5: 3.17 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #2: 3.30 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #15: 3.24 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #26: 3.46 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #11: 3.17 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #18: 3.38 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #13: 3.13 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #10: 3.36 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #12: 3.42 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #27: 3.16 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #0: 2.87 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #4: 3.29 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #16: 3.42 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #6: 3.38 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #8: 3.35 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #3: 3.24 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #19: 3.23 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #24: 3.44 kH/s
Dec 24 16:42:13 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #20: 3.43 kH/s
Dec 24 16:42:14 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:13] CPU #29: 3.10 kH/s
Dec 24 16:42:14 host1 cpuminer-mtp[24481]: [2018-12-24 16:42:14] accepted: 149/150 (diff 0.000), 104.32 kH/s yes!
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: Found a solution. Nonce=0002dafa Hash:
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #0: 2.84 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #14: 3.44 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #6: 3.35 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #2: 3.35 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #18: 3.48 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #30: 3.38 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #20: 3.48 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #9: 3.05 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #7: 3.11 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #1: 2.81 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #13: 3.17 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #4: 3.29 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #29: 3.15 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #17: 3.09 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #5: 3.03 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #23: 3.18 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #31: 3.01 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #15: 2.92 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #11: 3.07 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #3: 3.08 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #22: 3.36 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #24: 3.41 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #8: 3.24 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #25: 3.13 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #12: 3.27 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #27: 3.08 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #21: 3.14 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #10: 3.33 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #26: 3.45 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #16: 3.38 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #19: 3.13 kH/s
Dec 24 16:43:19 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:19] CPU #28: 3.46 kH/s
Dec 24 16:43:20 host1 cpuminer-mtp[24481]: [2018-12-24 16:43:20] accepted: 150/151 (diff 0.000), 102.65 kH/s yes!

As you can see it gets stalled for one minute everytime a solution has been accepted. It renders the minger useless atm.

Confirmed on 8 differents computers with differents CPUs.

Regards,

no shares accepted

I downloaded cpuminer from this repository.
https://github.com/zcoinofficial/cpuminer/releases/tag/0.1.2

Here is the version info:
image

I created a ,bat file:
cpuminer.exe -a mtp -o stratum+tcp://us-xzc.2miners.com:8080 -u aEYVTczgdK3aQzRKYcnLAvw55kZKVpWcrh.worker1 -p password1,c=XZC,verbose,strict --cpu-affinity 0xf -f 1.0

I run it, but it doesn't seem like it is working correctly.
No messages for 'shares accepted'.

I have an ROG gaming laptop with 8 cores and 16GB of RAM.

Do I need different settings?

cpuminer.exe -a mtp -o stratum+tcp://us-xzc.2miners.com:8080 -u aEYVTczgdK3aQzRKYcnLAvw55kZKVpWcrh.worker1 -p password1,c=XZC,d=1,verbose,strict --cpu-affinity 0xf
** cpuminer-multi 0.1.2 by djm34 **
BTC donation address: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze (djm34)
ZCoin donation address: aChWVb8CpgajadpLmiwDZvZaKizQgHxfh5 (djm34)

[2020-08-06 14:33:12] Binding process to cpu mask f
[2020-08-06 14:33:12] 8 miner threads started, using 'mtp' algorithm.
[2020-08-06 14:33:12] Starting Stratum on stratum+tcp://us-xzc.2miners.com:8080
[2020-08-06 14:33:16] Stratum difficulty set to 1 (0.00000)
[2020-08-06 14:33:16] mtp block 291232, diff 0.000
Step 1 : Compute F(I) and store its T blocks X[1], X[2], ..., X[T] in the memory
Step 2 : Compute the root Φ of the Merkle hash tree
end Step 2 : Compute the root Φ of the Merkle hash tree
[2020-08-06 14:35:07] mtp block 291233, diff 0.000
[2020-08-06 14:35:07] CPU #4: 2.80 kH/s
[2020-08-06 14:35:07] CPU #3: 2.80 kH/s
[2020-08-06 14:35:07] CPU #5: 2.81 kH/s
[2020-08-06 14:35:07] CPU #1: 2.79 kH/s
[2020-08-06 14:35:07] CPU #0: 2.79 kH/s
[2020-08-06 14:35:07] CPU #7: 2.81 kH/s
[2020-08-06 14:35:07] CPU #2: 2.80 kH/s
[2020-08-06 14:35:07] CPU #6: 2.80 kH/s
Step 1 : Compute F(I) and store its T blocks X[1], X[2], ..., X[T] in the memory
Step 2 : Compute the root Φ of the Merkle hash tree
end Step 2 : Compute the root Φ of the Merkle hash tree
[2020-08-06 14:42:24] mtp block 291234, diff 0.000
[2020-08-06 14:42:24] CPU #7: 2.84 kH/s
[2020-08-06 14:42:24] CPU #5: 2.84 kH/s
[2020-08-06 14:42:24] CPU #2: 2.85 kH/s
[2020-08-06 14:42:24] CPU #4: 2.84 kH/s
[2020-08-06 14:42:24] CPU #6: 2.84 kH/s
[2020-08-06 14:42:24] CPU #3: 2.84 kH/s
[2020-08-06 14:42:24] CPU #1: 2.84 kH/s
[2020-08-06 14:42:24] CPU #0: 2.84 kH/s
Step 1 : Compute F(I) and store its T blocks X[1], X[2], ..., X[T] in the memory
Step 2 : Compute the root Φ of the Merkle hash tree
end Step 2 : Compute the root Φ of the Merkle hash tree
[2020-08-06 14:43:48] mtp block 291235, diff 0.000
[2020-08-06 14:43:48] CPU #5: 2.66 kH/s
[2020-08-06 14:43:48] CPU #0: 2.66 kH/s
[2020-08-06 14:43:48] CPU #3: 2.67 kH/s
[2020-08-06 14:43:48] CPU #1: 2.67 kH/s
[2020-08-06 14:43:48] CPU #2: 2.67 kH/s
[2020-08-06 14:43:48] CPU #4: 2.67 kH/s
[2020-08-06 14:43:48] CPU #7: 2.66 kH/s
[2020-08-06 14:43:48] CPU #6: 2.66 kH/s
Step 1 : Compute F(I) and store its T blocks X[1], X[2], ..., X[T] in the memory
Step 2 : Compute the root Φ of the Merkle hash tree
end Step 2 : Compute the root Φ of the Merkle hash tree

build instructions

Build instructions to vague. Step by step in the wiki would be ideal. I think only those with extensive computer knowledge can build this. Anyone should be able to mine this with zero computer knowledge, Zcoin is monopolized right now with out computer instructions for the computer illiterate. I personally this is not on par for what Zcoin's new algo stood for.

AMD Opteron 6234 (6200/6300 series Opteron) Bulldozer/Piledriver microarchitecture build (fail to run compiled binary 0.1.1)

These systems fail to run compiled binary using a server system of AMD 6200/6300 series QUAD Opteron processors each with 12-16 cores per processor die; depending on the blade configuration. I have 12 of these systems that I would like to bring up with djm CPUminer if possible. My first attempt failed as per a successful bring up of a intel dual 2680v4 server:

so we build CPUminer+mtp on Ubunto 18.10 Server as per:

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
git clone https://github.com/zcoinofficial/cpuminer.git
cd cpuminer/
chmod a+x configure
chmod a+x build.sh
chmod a+x autogen.sh
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
sudo apt-get install zlib1g-dev
./build.sh

When we run the binary in GDB we get:

jeff@PowerEdge-M915-miner7:~/cpuminer$ gdb --args ./cpuminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u a1jdNZbAdNKCh33VdJtCvdjnXc4VbSXmfC.blade7 -p 0,d=6,verbose,strict
GNU gdb (Ubuntu 8.2-0ubuntu1) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./cpuminer...(no debugging symbols found)...done.
(gdb) run
Starting program: /home/jeff/cpuminer/cpuminer -a mtp -o stratum+tcp://zcoin.mintpond.com:3000 -u a1jdNZbAdNKCh33VdJtCvdjnXc4VbSXmfC.blade7 -p 0,d=6,verbose,strict
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
** cpuminer-multi 0.1.0 by djm34 **
BTC donation address: 1NENYmxwZGHsKFmyjTc5WferTn5VTFb7Ze (djm34)
ZCoin donation address: aChWVb8CpgajadpLmiwDZvZaKizQgHxfh5 (djm34)

[New Thread 0x7ffff4302700 (LWP 11127)]
[New Thread 0x7ffff3b01700 (LWP 11128)]
[2019-03-12 20:53:54] Starting Stratum on stratum+tcp://zcoin.mintpond.com:3000
[New Thread 0x7ffff3300700 (LWP 11129)]
[New Thread 0x7ffff2aff700 (LWP 11130)]
[New Thread 0x7ffff22fe700 (LWP 11131)]
[New Thread 0x7ffff1ae8700 (LWP 11132)]
[New Thread 0x7ffff10aa700 (LWP 11133)]
[New Thread 0x7ffff0878700 (LWP 11134)]
[New Thread 0x7fffcbfff700 (LWP 11135)]
[New Thread 0x7fffd3fff700 (LWP 11136)]
[New Thread 0x7fffd37cd700 (LWP 11137)]
[New Thread 0x7fffd2f9b700 (LWP 11138)]
[New Thread 0x7fffd2769700 (LWP 11139)]
[New Thread 0x7fffd1f37700 (LWP 11140)]
[New Thread 0x7fffd1705700 (LWP 11141)]
[New Thread 0x7fffd0ed3700 (LWP 11142)]
[New Thread 0x7fffcb7fe700 (LWP 11143)]
[New Thread 0x7fffcaffd700 (LWP 11144)]
[New Thread 0x7fffca7fc700 (LWP 11145)]
[New Thread 0x7fffc9ffb700 (LWP 11146)]
[New Thread 0x7fffc97fa700 (LWP 11147)]
[New Thread 0x7fffc8ff9700 (LWP 11148)]
[New Thread 0x7fff93fff700 (LWP 11149)]
[New Thread 0x7fff937fe700 (LWP 11150)]
[New Thread 0x7fff92ffd700 (LWP 11151)]
[New Thread 0x7fff927fc700 (LWP 11152)]
[New Thread 0x7fff91ffb700 (LWP 11153)]
[Thread 0x7ffff2aff700 (LWP 11130) exited]
[New Thread 0x7fff917fa700 (LWP 11154)]
[New Thread 0x7fff90ff9700 (LWP 11155)]
[New Thread 0x7fff77fff700 (LWP 11156)]
[New Thread 0x7fff777fe700 (LWP 11157)]
[New Thread 0x7fff76ffd700 (LWP 11158)]
[New Thread 0x7fff767fc700 (LWP 11159)]
[New Thread 0x7fff75ffb700 (LWP 11160)]
[New Thread 0x7fff757fa700 (LWP 11161)]
[New Thread 0x7fff74ff9700 (LWP 11162)]
[New Thread 0x7fff53fff700 (LWP 11163)]
[New Thread 0x7fff4bfff700 (LWP 11164)]
[New Thread 0x7fff537fe700 (LWP 11165)]
[New Thread 0x7fff52ffd700 (LWP 11166)]
[New Thread 0x7fff527fc700 (LWP 11167)]
[New Thread 0x7fff51ffb700 (LWP 11168)]
[New Thread 0x7fff517fa700 (LWP 11169)]
[New Thread 0x7fff50ff9700 (LWP 11170)]
[New Thread 0x7fff4b7fe700 (LWP 11171)]
[New Thread 0x7fff4affd700 (LWP 11172)]
[New Thread 0x7fff4a7fc700 (LWP 11173)]
[New Thread 0x7ffff2aff700 (LWP 11174)]
[New Thread 0x7fff49ffb700 (LWP 11175)]
[New Thread 0x7fff497fa700 (LWP 11176)]
[New Thread 0x7fff48ff9700 (LWP 11177)]
[New Thread 0x7fff13fff700 (LWP 11178)]
[2019-03-12 20:53:54] 48 miner threads started, using 'mtp' algorithm.
[2019-03-12 20:53:58] MESSAGE FROM SERVER: Suggested min-difficulty accepted: 6
[2019-03-12 20:53:58] MESSAGE FROM SERVER: Verbose mode enabled.
[2019-03-12 20:53:58] MESSAGE FROM SERVER: Strict mode enabled
[2019-03-12 20:53:58] MESSAGE FROM SERVER: Difficulty change: 6
[2019-03-12 20:53:58] MESSAGE FROM SERVER: New Job: 00000444

Thread 3 "cpuminer" received signal SIGILL, Illegal instruction.
[Switching to Thread 0x7ffff3b01700 (LWP 11128)]
0x00005555555b581e in ?? ()
(gdb)

----------------------------------- DIAGNOSTICS ----------------------------------------

#Probe CPU subsystem on blade server 7

jeff@PowerEdge-M915-miner7:~/cpuminer$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 48
On-line CPU(s) list: 0-47
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 4
NUMA node(s): 8
Vendor ID: AuthenticAMD
CPU family: 21
Model: 1
Model name: AMD Opteron(TM) Processor 6234
Stepping: 2
CPU MHz: 2876.096
BogoMIPS: 4800.25
Virtualization: AMD-V
L1d cache: 16K
L1i cache: 64K
L2 cache: 2048K
L3 cache: 8192K
NUMA node0 CPU(s): 0-5
NUMA node1 CPU(s): 6-11
NUMA node2 CPU(s): 24-29
NUMA node3 CPU(s): 30-35
NUMA node4 CPU(s): 12-17
NUMA node5 CPU(s): 18-23
NUMA node6 CPU(s): 36-41
NUMA node7 CPU(s): 42-47
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid amd_dcm aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt fma4 nodeid_msr topoext perfctr_core perfctr_nb cpb hw_pstate ssbd ibpb vmmcall arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold

Please help!

Build instructions wrong (default github instructions for cpuminer point to cpuminer-multi)

Please see that the instructions to build cpuminer + mtp is inaccurate in parts.
When someone arrives on https://github.com/zcoinofficial/cpuminer they get build instructions that are not accurate on the bottom of the project page (Download). The documentation needs to be updated and the links as well as per the instructions will only build a non-mtp supported build of cpuminer-multi but not cpuminer +mtp.

Proper build instructions for Ubuntu 18.x:

sudo apt-get update -y
sudo apt-get upgrade -y
sudo reboot
git clone https://github.com/zcoinofficial/cpuminer.git
cd cpuminer/
chmod a+x configure
chmod a+x build.sh
chmod a+x autogen.sh
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev make g++
sudo apt-get install zlib1g-dev
./build.sh

Hope this helps!

cpuminer 0.1.1 works but crashes on Xeon 2680 (segfault)

Dual Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
Manufacturer: Supermicro
Product Name: X10DRL-i

Hello DJM,

Ok, I got your cpuminer + mtp support built but after roughly 45 minutes I get:

281 [2019-03-12 17:28:37] mtp block 144094, diff 0.000
282 [2019-03-12 17:28:37] CPU #26: 2.74 kH/s
283 [2019-03-12 17:28:37] CPU #47: 2.84 kH/s
284 [2019-03-12 17:28:37] CPU #37: 2.77 kH/s
285 [2019-03-12 17:28:37] CPU #12: 2.68 kH/s
286 [2019-03-12 17:28:37] CPU #6: 2.68 kH/s
287 [2019-03-12 17:28:37] CPU #46: 2.84 kH/s
288 [2019-03-12 17:28:37] CPU #49: 2.84 kH/s
289 [2019-03-12 17:28:37] CPU #7: 2.68 kH/s
290 [2019-03-12 17:28:37] CPU #50: 2.84 kH/s
291 [2019-03-12 17:28:37] CPU #5: 2.68 kH/s
292 [2019-03-12 17:28:37] CPU #36: 2.78 kH/s
293 [2019-03-12 17:28:37] CPU #48: 2.84 kH/s
294 [2019-03-12 17:28:37] CPU #44: 2.84 kH/s
295 [2019-03-12 17:28:37] CPU #3: 2.68 kH/s
296 [2019-03-12 17:28:37] CPU #42: 2.84 kH/s
297 [2019-03-12 17:28:37] CPU #8: 2.68 kH/s
298 [2019-03-12 17:28:37] CPU #20: 2.74 kH/s
299 [2019-03-12 17:28:37] CPU #53: 2.84 kH/s
300 [2019-03-12 17:28:37] CPU #27: 2.73 kH/s
301 [2019-03-12 17:28:37] CPU #19: 2.74 kH/s
302 [2019-03-12 17:28:37] CPU #1: 2.68 kH/s
303 [2019-03-12 17:28:37] CPU #0: 2.68 kH/s
304 [2019-03-12 17:28:37] CPU #45: 2.84 kH/s
305 [2019-03-12 17:28:37] CPU #43: 2.84 kH/s
306 [2019-03-12 17:28:37] CPU #40: 2.77 kH/s
307 [2019-03-12 17:28:37] CPU #52: 2.84 kH/s
308 [2019-03-12 17:28:37] CPU #55: 2.84 kH/s
309 [2019-03-12 17:28:37] CPU #15: 2.74 kH/s
310 [2019-03-12 17:28:37] CPU #2: 2.68 kH/s
311 [2019-03-12 17:28:37] CPU #17: 2.74 kH/s
312 [2019-03-12 17:28:37] CPU #23: 2.74 kH/s
313 [2019-03-12 17:28:37] CPU #39: 2.77 kH/s
314 [2019-03-12 17:28:37] CPU #18: 2.74 kH/s
315 [2019-03-12 17:28:37] CPU #29: 2.78 kH/s
316 [2019-03-12 17:28:37] CPU #33: 2.78 kH/s
317 [2019-03-12 17:28:37] CPU #24: 2.74 kH/s
318 [2019-03-12 17:28:37] CPU #54: 2.84 kH/s
319 [2019-03-12 17:28:37] CPU #4: 2.68 kH/s
320 [2019-03-12 17:28:37] CPU #38: 2.77 kH/s
321 [2019-03-12 17:28:37] CPU #51: 2.84 kH/s
322 [2019-03-12 17:28:37] CPU #34: 2.78 kH/s
323 [2019-03-12 17:28:37] CPU #35: 2.78 kH/s
324 [2019-03-12 17:28:37] CPU #16: 2.74 kH/s
325 [2019-03-12 17:28:37] CPU #30: 2.78 kH/s
326 [2019-03-12 17:28:37] CPU #14: 2.74 kH/s
327 [2019-03-12 17:28:37] CPU #11: 2.68 kH/s
328 [2019-03-12 17:28:37] CPU #9: 2.68 kH/s
329 [2019-03-12 17:28:37] CPU #21: 2.74 kH/s
330 [2019-03-12 17:28:37] CPU #32: 2.78 kH/s
331 [2019-03-12 17:28:37] CPU #25: 2.74 kH/s
332 [2019-03-12 17:28:37] CPU #31: 2.78 kH/s
333 [2019-03-12 17:28:37] CPU #13: 2.68 kH/s
334 [2019-03-12 17:28:37] CPU #22: 2.74 kH/s
335 [2019-03-12 17:28:37] CPU #10: 2.68 kH/s
336 [2019-03-12 17:28:37] CPU #28: 2.78 kH/s
337 [2019-03-12 17:28:37] CPU #41: 2.78 kH/s
338 Step 1 : Compute F(I) and store its T blocks X[1], X[2], ..., X[T] in the memory
339 Step 2 : Compute the root Φ of the Merkle hash tree
340 end Step 2 : Compute the root Φ of the Merkle hash tree
341 Segmentation fault (core dumped)

How can I fix it?

build issue on Ubuntu 16.04

I encountered a bunch of issues while trying to build the new commit... here is how I tried to resolve

autogen error

Invoking ./autogen.sh produces an error, since the compat/jansson directory is now missing, but compat/makefile.am references "compat/jansson/Makefile.in".

fixed this:

cd compat
mkdir jansson
mv bos-jansson/src/* jansson


another autogen error

"libtool library used but LIBTOOL undefined"

to resolve this error, I added an LT_INIT line to beginning of configure.ac, then
libtoolize
aclocal
autoconf

and then autogen works as expected


missing header error

./configure CFLAGS='-march=native' --with-crypto--with-curl
make

output:
fatal error: bosjansson.h: No such file or directory

solution:
cp compat/jansson/bosjansson.h .


make error

after resolving the above, make will compile for a while, then encounters the following error:

./libtool: line 7486: cd: yes/lib: No such file or directory
libtool: error: cannot determine absolute directory name of 'yes/lib'

This is probably related to the libtoolize command I used to resolve the earlier issue with the missing LIBTOOL library. I haven't been able to resolve it and at this point I'm not sure what I'm doing.

It seems to be issue with broken linking / dependencies, particularly with jansson.

Would appreciate any help

MTP memory usage

Is there any plan to share the scratchpad so that each thread doesn't need its own 4GB allocation?

no make after git clone latest release on Ubuntu 16.04

argon2ref/blake2ba.c:263:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[0], _mm_xor_si128(LOADU(&S->h[0]), row1l));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:263:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[0], _mm_xor_si128(LOADU(&S->h[0]), row1l));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:264:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[2], _mm_xor_si128(LOADU(&S->h[2]), row1h));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:267:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[4], _mm_xor_si128(LOADU(&S->h[4]), row2l));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:268:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[6], _mm_xor_si128(LOADU(&S->h[6]), row2h));
^
argon2ref/blake2ba.c: In function ‘ablake2b4rounds_compress’:
argon2ref/blake2ba.c:276:3: error: unknown type name ‘__m128i’
__m128i row1l, row1h;
^
argon2ref/blake2ba.c:277:3: error: unknown type name ‘__m128i’
__m128i row2l, row2h;
^
argon2ref/blake2ba.c:278:3: error: unknown type name ‘__m128i’
__m128i row3l, row3h;
^
argon2ref/blake2ba.c:279:3: error: unknown type name ‘__m128i’
__m128i row4l, row4h;
^
argon2ref/blake2ba.c:280:3: error: unknown type name ‘__m128i’
__m128i b0, b1;
^
argon2ref/blake2ba.c:281:3: error: unknown type name ‘__m128i’
__m128i t0, t1;
^
In file included from argon2ref/blake2ba.c:25:0:
./argon2ref/blake2b-round.h:23:37: error: ‘__m128i’ undeclared (first use in this function)
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:313:11: note: in expansion of macro ‘LOADU’
row1l = LOADU(&S->h[0]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:313:11: note: in expansion of macro ‘LOADU’
row1l = LOADU(&S->h[0]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:314:11: note: in expansion of macro ‘LOADU’
row1h = LOADU(&S->h[2]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:315:11: note: in expansion of macro ‘LOADU’
row2l = LOADU(&S->h[4]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:316:11: note: in expansion of macro ‘LOADU’
row2h = LOADU(&S->h[6]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:317:11: note: in expansion of macro ‘LOADU’
row3l = LOADU(&ablake2b_IV[0]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:318:11: note: in expansion of macro ‘LOADU’
row3h = LOADU(&ablake2b_IV[2]);
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:319:25: note: in expansion of macro ‘LOADU’
row4l = _mm_xor_si128(LOADU(&ablake2b_IV[4]), LOADU(&S->t[0]));
^
./argon2ref/blake2b-round.h:23:46: error: expected expression before ‘)’ token
#define LOADU(p) _mm_loadu_si128( (__m128i *)(p) )
^
argon2ref/blake2ba.c:320:25: note: in expansion of macro ‘LOADU’
row4h = _mm_xor_si128(LOADU(&ablake2b_IV[6]), LOADU(&S->f[0]));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:327:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[0], _mm_xor_si128(LOADU(&S->h[0]), row1l));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:328:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[2], _mm_xor_si128(LOADU(&S->h[2]), row1h));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:331:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[4], _mm_xor_si128(LOADU(&S->h[4]), row2l));
^
./argon2ref/blake2b-round.h:24:48: error: expected expression before ‘)’ token
#define STOREU(p,r) _mm_storeu_si128((__m128i *)(p), r)
^
argon2ref/blake2ba.c:332:3: note: in expansion of macro ‘STOREU’
STOREU(&S->h[6], _mm_xor_si128(LOADU(&S->h[6]), row2h));
^
argon2ref/blake2ba.c: In function ‘ablake2b_compress_old’:
argon2ref/blake2ba.c:373:0: warning: "ROUND" redefined
#define ROUND(r)
^
In file included from argon2ref/blake2ba.c:25:0:
./argon2ref/blake2b-round.h:150:0: note: this is the location of the previous definition
#define ROUND(r)
^
argon2ref/blake2ba.c: In function ‘ablake2b_compress_test’:
argon2ref/blake2ba.c:402:8: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
printf("coming here S %08x %08x %08x %08x\n", S->t[0], S->t[1], S->f[0], S->f[1
^
argon2ref/blake2ba.c:402:8: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
argon2ref/blake2ba.c:402:8: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
argon2ref/blake2ba.c:402:8: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
Makefile:2644: «argon2ref/cpuminer-blake2ba.o»

build error on raspberry pi

when i try to build this on raspberry pi ,it occurs errors:
lyra2/Lyra2.c:24:23: fatal error: mm_malloc.h: Arquivo ou diretório não encontrado
#include <mm_malloc.h>
compilation terminated.
Makefile:1611: recipe for target 'lyra2/cpuminer-Lyra2.o' failed
make[2]: *** [lyra2/cpuminer-Lyra2.o] Error 1
make[2]: ** Esperando que outros processos terminem.
lyra2/Sponge.c:27:23: fatal error: immintrin.h: Arquivo ou diretório não encontrado
#include <immintrin.h>
compilation terminated.

Api not working

If set '--api-bind 127.0.0.1:8888' for example and then 'telnet localhost 8888' you get 'connection refused'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.