jgarzik / cpuminer Goto Github PK
View Code? Open in Web Editor NEWCPU miner for bitcoin
License: Other
CPU miner for bitcoin
License: Other
cgminer support GPU ????
I just want to mine some bitcoins. Where is the application? Do I have to build it?
cpu0: VIA Esther processor 1200MHz ("CentaurHauls" 686-class) 1.21 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2
when i choose the via algorithm it segfaults right after minerd starts. here's the gdb backtrace of the core file:
(gdb) bt
#0 0x1c016428 in scanhash_via ()
#1 0x00000100 in ?? ()
I get this error while trying to build:
configure.ac:21: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
The internet suggests to install pkg-config
, which I did, also installed python3
which the error seems to be about to no avail.
Compiling with -O3 causes the minerd to segfault immediately if I specify cryptopp_asm32 as the algorithm. Recompiling without -O3 solves it. All other algorithms seem to work as expected with -O3. -O2 works, as well as giving no optimization parameter.
cryptopp_asm32 seems to give the best performance on this platform. Using it with '-O2 -Wall -march=core2'.
Environment info:
Intel Core 2 4300 @ 1.8GHz (dual core, obviously)
Ubuntu Linux w/ 2.6.35-28 SMP kernel, 32bit.
$ CFLAGS="-O3 -Wall -msse2" ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for yasm... false
configure: yasm is required for the sse2_64 algorithm. It will be skipped.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 5112: syntax error near unexpected token ,' ./configure: line 5112:
LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
Error occurs every few minutes, sporadically, regardless of using default algo or cryptopp_asm32.
System is PentiumD 3GHz stepping 04, 2cpu, 2048k L2 cache
Example error message in context:
[2013-04-03 11:13:40] thread 0: 62111506 hashes, 1018.48 khash/sec
Segmentation fault
config.log shows /bin/arch etc = unknown
more info:
/var/log/messages shows lines with "segfault at 0 ip 0805107c sp bxxxxec4 error 4 in minerd[8048000+e000]
where xxxx is hexidecimal number.
Any one know hot to solve the next dragonmint t1 failed:
the hash board was working well but today don't work again, I tested that change cables, PSU.. and dont do that the hashboard mine again
Apr 01 18:55:43 dragonMint cgminer[1332]: chain0: spi speed set to 390K
Apr 01 18:55:43 dragonMint cgminer[1332]: ERROR - failed to recv spi data
Apr 01 18:55:43 dragonMint cgminer[1332]: failed to reset chain 0!
Apr 01 18:55:43 dragonMint cgminer[1332]: platform re-init: chain_num(3), chip_num(63)
Apr 01 18:55:43 dragonMint cgminer[1332]: sys : platform[4] miner_type[1] chain_num[3] chip_num[63]
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] b9 pin:957,a10 pin:943
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] b9:0,a10:1,val:0x00000002
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] b9 pin:957,a10 pin:943
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] b9:0,a10:1,val:0x00000002
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] zl uart vid
Apr 01 18:55:44 dragonMint dm-monitor[1269]: [INFO:2019-04-01 18:55:44.204] zl uart vid
Apr 01 18:55:44 dragonMint cgminer[1332]: init 0 T1 chain fail
ranlib libx8664.a
ranlib: warning for library: libx8664.a the table of contents is empty (no object file members in the library define global symbols)
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -DHAS_YASM -O3 -Wall -msse2 -MT cpu-miner.o -MD -MP -MF .deps/cpu-miner.Tpo -c -o cpu-miner.o cpu-miner.c
In file included from cpu-miner.c:28:
miner.h:55:22: error: byteswap.h: No such file or directory
In file included from cpu-miner.c:28:
miner.h: In function ‘swab32’:
miner.h:96: warning: implicit declaration of function ‘bswap_32’
make[2]: *** [cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Palace-of-the-Nine-Moons:/Sviluppo/_varie/ext/cpuminer looris$ uname -a1/RELEASE_I386 i386 i386
Darwin Palace-of-the-Nine-Moons.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37
Palace-of-the-Nine-Moons:/Sviluppo/_varie/ext/cpuminer looris$ gcc -v6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
Could you please sign your most recent / future git tags?
HI
I need to use cpuminer for scrypt algorithem. Have any way to do that
Thank you
configure.ac:15: installing`./compile'
configure.ac:4: installing `./config.guess'
configure.ac:4: installing`./config.sub'
configure.ac:6: installing `./install-sh'
configure.ac:6: installing`./missing'
compat/jansson/Makefile.am: installing `./depcomp'
Makefile.am: installing`./INSTALL'
configure.ac:95: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoconf (GNU Autoconf) 2.68
$ ./autogen.sh
configure.ac:15: installing `./compile'
configure.ac:4: installing `./config.guess'
configure.ac:4: installing `./config.sub'
configure.ac:6: installing `./install-sh'
configure.ac:6: installing `./missing'
compat/jansson/Makefile.am: installing `./depcomp'
Makefile.am: installing `./INSTALL'
configure.ac:60: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
on mac
$ ./autogen.sh
configure.ac:13: installing './compile'
configure.ac:4: installing './config.guess'
configure.ac:4: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './INSTALL'
Makefile.am: installing './depcomp'
configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
When I launched automake the first time I got this error:
Palace-of-the-Nine-Moons:~/Sviluppo/_varie/ext/cpuminer looris$ ./autogen.sh
configure.ac:14: installing ./compile' configure.ac:5: installing
./install-sh'
configure.ac:5: installing ./missing' compat/jansson/Makefile.am: installing
./depcomp'
Makefile.am: installing `./INSTALL'
configure.ac:86: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
I came back later and oddly automake worked, but I got a configure error:
checking pkg-config is at least version 0.9.0... yes
./configure: line 4905: syntax error near unexpected token ,' ./configure: line 4905:
LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
I just commented out the libcurl check lines, and then it worked.
This may or might not be related to the compile issue: https://github.com/jgarzik/cpuminer/issues#issue/13
Is it possible to confirm or mine custom transaction id? If it can be done it will be very good i think. For example:
$ mineCustomTx [transaction id]
mining this transaction id: [txid]
...............
confirmation success
I hope explained my request. Thanks..
configure: error: Could not find pthread library - please install libpthread
config_log.txt
locate libpthread
/lib/i386-linux-gnu/libpthread-2.23.so
/lib/i386-linux-gnu/libpthread.so.0
/lib/x86_64-linux-gnu/libpthread-2.23.so
/lib/x86_64-linux-gnu/libpthread.so.0
/lib32/libpthread-2.23.so
/lib32/libpthread.so.0
/libx32/libpthread-2.23.so
/libx32/libpthread.so.0
/usr/arm-linux-gnueabihf/lib/libpthread-2.23.so
/usr/arm-linux-gnueabihf/lib/libpthread.a
/usr/arm-linux-gnueabihf/lib/libpthread.so
/usr/arm-linux-gnueabihf/lib/libpthread.so.0
/usr/arm-linux-gnueabihf/lib/libpthread_nonshared.a
/usr/lib/i386-linux-gnu/libpthread.a
/usr/lib/i386-linux-gnu/libpthread.so
/usr/lib/i386-linux-gnu/libpthread_nonshared.a
/usr/lib/x86_64-linux-gnu/libpthread.a
/usr/lib/x86_64-linux-gnu/libpthread.so
/usr/lib/x86_64-linux-gnu/libpthread_nonshared.a
bitcoin@optimum:/cpuminer$ CFLAGS="-O3 -Wall -msse2" ./configure/cpuminer$ make
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for json_loads in -ljansson... yes
checking for pthread_create in -lpthread... yes
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gawk... (cached) mawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.18.2
checking for libcurl >= version 7.10.1... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating x86_64/Makefile
config.status: creating cpuminer-config.h
config.status: cpuminer-config.h is unchanged
config.status: executing depfiles commands
bitcoin@optimum:
make all-recursive
make[1]: Entering directory /home/bitcoin/cpuminer' Making all in compat make[2]: Entering directory
/home/bitcoin/cpuminer/compat'
make[3]: Entering directory /home/bitcoin/cpuminer/compat' make[3]: Nothing to be done for
all-am'.
make[3]: Leaving directory /home/bitcoin/cpuminer/compat' make[2]: Leaving directory
/home/bitcoin/cpuminer/compat'
make[2]: Entering directory /home/bitcoin/cpuminer' gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -O3 -Wall -msse2 -MT cpu-miner.o -MD -MP -MF .deps/cpu-miner.Tpo -c -o cpu-miner.o cpu-miner.c cpu-miner.c: In function ‘parse_arg’: cpu-miner.c:454: warning: passing argument 2 of ‘json_load_file’ makes integer from pointer without a cast cpu-miner.c:454: error: too few arguments to function ‘json_load_file’ make[2]: *** [cpu-miner.o] Error 1 make[2]: Leaving directory
/home/bitcoin/cpuminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bitcoin/cpuminer'
make: *** [all] Error 2
When I run autogen.sh on Linux Mint
Makefile.am: installing `./INSTALL'
configure.ac:96: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
I fixed the problem by adding "autoreconf -i" as the last line of autogen.sh. I request the developer to add this line in the code.
autoconf
autoreconf -i
Link in README is 404'd
Does cpuminer not work with Bitcoin Core 0.10.0?
"--url http://127.0.0.1:8332", which works with BFGminer, produces a 404 error with cpuminer.
I got the 0.8.1 tarball, extracted it, cd into the directory, and ran "CFLAGS="-03 -Wall -msse2" ./configure
It echos:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gawk... (cached) mawk
checking for curl-config... no
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.10.1
it@ubuntu:~/Downloads/cpuminer-0.8.1$ CFLAGE="-03 -Wall -msse2" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for yasm... /usr/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gawk... (cached) mawk
checking for curl-config... no
checking whether libcurl is usable... no
configure: error: Missing required libcurl >= 7.10.1
and then exits. I'm pretty sure that my computer has libcurl3 7.21.0 installed. I'm on Ubuntu 10.10, if it helps. Would appriciate any pointers you could give on how to get it working. Thanks!
Hi,
I try to mine litecoin on wallet . I created litecoin.conf file
testnet=0
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
rpcallowip=192.168..
rpcallowip=192.168.0.101
rpcconnect=127.0.0.1
rpcconnect=192.168.0.101
rpcport=9332
daemon=1
server=1
listen=1
rpcclienttimeout=30
gen=-1
on cgminer 3.7.2 I create .bat file
cgminer --scrypt --url=http://127.0.0.1:9332 --userpass=aksharmty.1:1 -D --intensity=10
pause
system show error like this :
[2018-04-11 13:00:30] Started cgminer 3.7.2
[2018-04-11 13:00:30] Platform 0 devices: 1
[2018-04-11 13:00:30] 0 GeForce GTX 1050 Ti
[2018-04-11 13:00:30] Unable to load ati adl library
[2018-04-11 13:00:30] Probing for an alive pool
[2018-04-11 13:00:30] Popping work to stage thread
[2018-04-11 13:00:30] Testing pool http://127.0.0.1:9332
[2018-04-11 13:00:30] Probing for GBT support
[2018-04-11 13:00:30] No GBT coinbase + append support found, using getwork protocol
[2018-04-11 13:00:30] HTTP request failed: The requested URL returned error: 404 Not Found
[2018-04-11 13:00:30] Succeeded delayed connect
[2018-04-11 13:00:30] JSON decode failed(1): '[' or '{' expected near 'HTTP'
[2018-04-11 13:00:30] Failed to resume stratum, trying afresh
[2018-04-11 13:00:30] Succeeded delayed connect
[2018-04-11 13:00:30] JSON decode failed(1): '[' or '{' expected near 'HTTP'
[2018-04-11 13:00:30] Initiate stratum failed
[2018-04-11 13:00:30] Closing socket for stratum pool 0
[2018-04-11 13:00:30] FAILED to retrieve work from pool 0 http://127.0.0.1:9332
[2018-04-11 13:00:30] Pool 0 slow/down or URL or credentials invalid
please write what is wrong in my litecoin.conf or .bat file.
I cant build cpuminer on a gentoo multilib 64 bits ( 64 bits allowing 32 bits apps )
mv -f .deps/minerd-sha256_sse2_amd64.Tpo .deps/minerd-sha256_sse2_amd64.Po
gcc -DHAS_YASM -O3 -Wall -msse2 -pthread -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha256_generic.o minerd-sha256_4way.o minerd-sha256_via.o minerd-sha256_cryptopp.o minerd-
sha256_sse2_amd64.o -lcurl compat/jansson/libjansson.a -lpthread x86_64/libx8664.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.4/../../../../x86_64-pc-linux-gnu/bin/ld: x86_64/libx8664.a(sha256_xmm_amd64.o): relocation R_X86_64_32 against g_4sha256_k' can not be used when making a shared object; recompile with -fPIC x86_64/libx8664.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [minerd] Error 1 make[2]: Leaving directory
/root/cpuminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cpuminer'
make: *** [all] Error 2
If I use
./minerd -o stratum+tcp://us2.litecoinpool.org:3333 --user USER --pass PASS
it throws out :
Try `minerd --help' for more information.
And If use
./minerd -o stratum+tcp:/us2.litecoinpool.org:3333 --user USER --pass PASS
OR
./minerd -o stratum+tcp:us2.litecoinpool.org:3333 --user USER --pass PASS
It starts fine but the url is now incorrect and it cannot connect
$ CFLAGS="-O3 -Wall -msse2" ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for json_loads in -ljansson... no
checking for pthread_create in -lpthread... yes
checking for yasm... /usr/local/bin/yasm
checking if yasm version is greater than 1.0.1... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
./configure: line 4386: syntax error near unexpected token ,' ./configure: line 4386:
LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
Note that I do have libcurl installed:
is there any way to build it under uwp for win iot systems ?
Hi
How set up I username and password of the proxy?
I write this statement:
cgminer -o "http:proxy:port|stratum+tcp://stratum.bitcoin.cz:3333" -u worker1 -p xxxxx --au3-freq 250 --au3-volt 800
I receive http error 403
kind regards
Someone provided this: https://gist.github.com/971291
This works for me! It should be compiled on OS X using yasm -f mach064 ...
Prompt a command for python for adding a pool on api.
All attempts are unsuccessful
{u'STATUS': [{u'STATUS': u'E', u'Msg': u'Missing addpool details', u'Code': 52, u'When': 1513160307, u'Description': u'cgminer 3.6.6'}], u'id': 1}
This morning the minerd script crashed giving the following output:
http://pastebin.com/yPpZNSga
Let me know if you need any further info to debug.
Hey.
Is it possible to include support in cpuminer for configuring multiple source pools in either a fail-over or load-balance manner. I find that my instances of cpuminer fairly regularly loose the stratum connection and then halts hashing until the connection can be re-established.
Russ
using the http://zentec.ddns.net:8090/workers
or https://www.vvpool.com/currency/bitcoin-diamond
cpu-miner has Rejected Shares in zentec,
Rejected Reason: Low Difficulty Share.
in vvpool Rejected Reason: high-hash
using the ccminer -a bcd gpu miner the zentec pool works,
http://blog.vvpool.com/tutorial_en/bcd_en.html
something about Amd Card Not suitable "low hash rate", vs. Nvidia card.
https://pan.baidu.com/s/1mjVtHPY
code:07mp
http://btcd.io/#/download
https://github.com/alexis78/ccminer
https://github.com/eveybcd/gpu-miner
https://github.com/eveybcd/x13bcd_hash
https://github.com/eveybcd/stratum-mining
https://github.com/jgarzik/cpuminer/releases
https://github.com/pooler/cpuminer/releases
https://github.com/JayDDee/cpuminer-opt/releases
https://github.com/tpruvot/cpuminer-multi/releases
https://github.com/lucasjones/cpuminer-multi/releases
https://github.com/BeastPool/cpuminer-argon2d/issues
https://bitcointalk.org/index.php?topic=2448356.msg40760017#msg40760017
/jgarzik-cpuminer-602e31b root# make
make all-recursive
Making all in compat
Making all in jansson
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c
mv -f .deps/dump.Tpo .deps/dump.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c
mv -f .deps/hashtable.Tpo .deps/hashtable.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c
mv -f .deps/load.Tpo .deps/load.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT strbuffer.o -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.o strbuffer.c
mv -f .deps/strbuffer.Tpo .deps/strbuffer.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT utf.o -MD -MP -MF .deps/utf.Tpo -c -o utf.o utf.c
mv -f .deps/utf.Tpo .deps/utf.Po
gcc -DHAVE_CONFIG_H -I. -I../.. -O3 -Wall -msse2 -MT value.o -MD -MP -MF .deps/value.Tpo -c -o value.o value.c
mv -f .deps/value.Tpo .deps/value.Po
rm -f libjansson.a
ar cru libjansson.a dump.o hashtable.o load.o strbuffer.o utf.o value.o
ranlib libjansson.a
make[3]: Nothing to be done for all-am'. gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -I/sw/include -O3 -Wall -msse2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o
test -f 'cpu-miner.c' || echo './'`cpu-miner.c
i686-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
cpu-miner.c: In function 'parse_arg':
cpu-miner.c:867: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
cpu-miner.c:867: error: (Each undeclared identifier is reported only once
cpu-miner.c:867: error: for each function it appears in.)
make[2]: *** [minerd-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
System: OS X 10.4.11 Server Dual-Core Intel Xeon
Hi
How set up I username and password of the proxy?
I write this statement:
cgminer -o "http:proxy:port|stratum+tcp://stratum.bitcoin.cz:3333" -u worker1 -p xxxxx --au3-freq 250 --au3-volt 800
I receive http error 403
kind regards
The autogen process completes correctly. However the configure section gives the error:
.infig.status does not exist.
Even though there is no "infig.stats" file in the directory or as a supposed output of configure. There are no typos here. I'm guessing that's just some typo in the string output conditional. So I searched the configure source for all instances of config.status. There's a part of the code that tests to see if the pwd is the correct directory and matches it to $srcdir/config.status. I removed the $srcdir and made the loop read simply ./config.status. The configure runs as does make. Will do some testing of the cpuminer exec tonight. Let me know if there are any other questions.
ORIGINAL CODE segment from GITHUB:
if test "cd $srcdir && pwd
" != "pwd
"; then
am__isrc=' -I$(srcdir)'
if test -f $srcdir/config.status; then
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run "make distclean" there first" >&5
$as_echo "$as_me: error: source directory already configured; run "make distclean" there first" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
MY MODIFIED CODE segment:
if test "cd $srcdir && pwd
" != "pwd
"; then
am__isrc=' -I$(srcdir)'
if test -f ./config.status; then
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run "make distclean" there first" >&5
$as_echo "$as_me: error: source directory already configured; run "make distclean" there first" >&2;}
{ (exit 1); exit 1; }; }
fi
fi
Heres the Linux version info:
cat /proc/version
Linux version 2.6.32-358.18.1.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Aug 2 17:04:38 EDT 2013
Hi guys i am trying to run minderd on my mac and trying to connect to netcodepool for ltc minig. the command i use is:
minerd --url=stratum+tcp://netcodepool.org:3333 --userpass=username:password
instead of connecting i keep on getting the following:
Try minerd --help' for more information.
please help.
System notes:
Hostname | OpenWrt
Model | Raspberry Pi Model B Plus Rev 1.2
Firmware Version | OpenWrt Designated Driver r49390 / LuCI Branch (git-16.132.13167-ba1ef5b)
Kernel Version | 4.4.7
Note that /usr/bin/cgminer-monitor
in crontab is disabled for testing purposes.
Either via gui or via ssh running: cgminer --avalon4-fan 40-100 --avalon4-freq 200 -o stratum+tcp://solo.ckpool.org:3333 -O <address>:<pass> -o stratum+tcp://stratum.mining.eligius.st:3334 -O <address>:<pass> -o stratum+tcp://stratum.f2pool.com:3333 -O <address>:<pass> --api-allow W:127.0.0.1 --api-listen
... and / or ... cgminer --avalon4-fan 40-100 --avalon4-freq-max 200
. In both cases the machine will start out around 2.0 TH/s. Within about one hour, however, the machine will slow increase in frequency until it is running at 3.0-3.5 TH/s. Even setting it at freq=100 or freq-max=100 incurs the same behavior.
Update: The solution may be adding the parameters PoolBalance:Load-Balance
and --rotate 5
. This is stable for at least a few hours now.
See output
[root@localhost cpuminer-1.0.2]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking whether gcc needs -traditional... no
checking whether gcc and cc understand -c and -o together... yes
checking for ranlib... ranlib
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for json_loads in -ljansson... yes
checking for pthread_create in -lpthread... yes
checking for yasm... false
configure: yasm is required for the sse2_64 algorithm. It will be skipped.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.15.5
checking for libcurl >= version 7.10.1... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating compat/Makefile
config.status: creating compat/jansson/Makefile
config.status: creating x86_64/Makefile
config.status: creating cpuminer-config.h
config.status: executing depfiles commands
[root@localhost cpuminer-1.0.2]# make
make all-recursive
make[1]: Entering directory /root/bitcoin/cpuminer-1.0.2' Making all in compat make[2]: Entering directory
/root/bitcoin/cpuminer-1.0.2/compat'
make[3]: Entering directory /root/bitcoin/cpuminer-1.0.2/compat' make[3]: Nothing to be done for
all-am'.
make[3]: Leaving directory /root/bitcoin/cpuminer-1.0.2/compat' make[2]: Leaving directory
/root/bitcoin/cpuminer-1.0.2/compat'
make[2]: Entering directory /root/bitcoin/cpuminer-1.0.2' gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -g -O2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o
test -f 'cpu-miner.c' || e
cho './'cpu-miner.c cpu-miner.c: In function �parse_arg�: cpu-miner.c:786: warning: passing argument 2 of �json_load_file� makes integer from pointer without a cast cpu-miner.c:786: error: too few arguments to function �json_load_file� make[2]: *** [minerd-cpu-miner.o] Error 1 make[2]: Leaving directory
/root/bitcoin/cpuminer-1.0.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/bitcoin/cpuminer-1.0.2'
make: *** [all] Error 2
I clicked on the http://yyz.us/bitcoin/ link in this repository's subtitle, and Google Chrome warned that the domain name is associated with harmful software.
I haven't bothered checking out the link, but it sounds like something is wrong somewhere.
Hi.
I am trying to compile cpuminer
on my Debian unstable system (amd64 kernel, i386 userland) and I have a problem with conflicting types for scanhash_asm32
:
(...)
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -DHAS_YASM -Ofast -Wall -march=native -MT minerd-sha256_cryptopp.o -MD -MP -MF .deps/minerd-sha256_cryptopp.Tpo -c -o minerd-sha256_cryptopp.o test -f 'sha256_cryptopp.c' || echo './'
sha256_cryptopp.c
sha256_cryptopp.c:582:7: error: conflicting types for ‘scanhash_asm32’
In file included from sha256_cryptopp.c:9:0:
miner.h:166:14: note: previous declaration of ‘scanhash_asm32’ was here
make[2]: *** [minerd-sha256_cryptopp.o] Error 1
make[2]: Leaving directory /tmp/cpuminer' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory
/tmp/cpuminer'
make: *** [all] Error 2
Upon inspecting, the code, indeed, there prototype in miner.h has an argument (unsigned char *hash1
) that the code in function definition in sha256_cryptopp.c lacks.
[2011-06-14 01:26:13] JSON-RPC call failed: {
"code": -1,
"message": "Deepbit.lib.InfoException: Wrong data: checkWork: this nonce already completed"
}
x86_64/libx8664.a(sha256_xmm_amd64.o): In function no symbol': sha256_xmm_amd64.asm:(.text+0x118): undefined reference to
g_4sha256_k'
using 1.3.1 version under Fedora14 32-bit, , worked perfectly, pulled the latest version from git today, ran into several new wrinkes related to json.
Was able to use -l switch to use local jansson, compiled, but refuses to run. (Keep in mind previous version works fine)
[root@miner4 cgminer]# ./cgminer --version
./cgminer: error while loading shared libraries: libjansson.so.0: cannot open shared object file: No such file or directory
Not sure what's wrong...
[root@miner4 cgminer]# ldd ./cgminer
linux-gate.so.1 => (0x00c3e000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x0615b000)
libjansson.so.0 => not found
libpthread.so.0 => /lib/libpthread.so.0 (0x00d8a000)
libOpenCL.so.1 => /usr/src/AMD-APP-SDK-v2.4-lnx32//lib/x86/libOpenCL.so.1 (0x0050f000)
libncurses.so.5 => /lib/libncurses.so.5 (0x002e7000)
libtinfo.so.5 => /lib/libtinfo.so.5 (0x002c5000)
libc.so.6 => /lib/libc.so.6 (0x00110000)
libidn.so.11 => /lib/libidn.so.11 (0x0610b000)
liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x05a99000)
libldap-2.4.so.2 => /usr/lib/libldap-2.4.so.2 (0x060bd000)
librt.so.1 => /lib/librt.so.1 (0x00da7000)
libgssapi_krb5.so.2 => /lib/libgssapi_krb5.so.2 (0x05ea6000)
libkrb5.so.3 => /lib/libkrb5.so.3 (0x05c7e000)
libk5crypto.so.3 => /lib/libk5crypto.so.3 (0x05c4f000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00bb3000)
libz.so.1 => /lib/libz.so.1 (0x00dde000)
libssl3.so => /usr/lib/libssl3.so (0x05e46000)
libsmime3.so => /usr/lib/libsmime3.so (0x05e19000)
libnss3.so => /usr/lib/libnss3.so (0x05ee0000)
libnssutil3.so => /usr/lib/libnssutil3.so (0x05e7e000)
libplds4.so => /lib/libplds4.so (0x05c78000)
libplc4.so => /lib/libplc4.so (0x05e06000)
libnspr4.so => /lib/libnspr4.so (0x05d56000)
libdl.so.2 => /lib/libdl.so.2 (0x00d83000)
libssh2.so.1 => /usr/lib/libssh2.so.1 (0x061bf000)
/lib/ld-linux.so.2 (0x00bd6000)
libresolv.so.2 => /lib/libresolv.so.2 (0x0029a000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x05a56000)
libkrb5support.so.0 => /lib/libkrb5support.so.0 (0x05e0d000)
libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x05d51000)
libssl.so.10 => /usr/lib/libssl.so.10 (0x06063000)
libcrypto.so.10 => /lib/libcrypto.so.10 (0x05ac3000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00b74000)
libselinux.so.1 => /lib/libselinux.so.1 (0x0030b000)
libfreebl3.so => /lib/libfreebl3.so (0x00b25000)Linux version 2.6.35.13-92.fc14.i686 ([email protected]) (gcc version 4.5.1 20100924 (Red Hat 4.5.1-4) (GCC) ) #1 SMP Sat May 21 17:39:42 UTC 2011
Not sure what I might be missing, but it's something..
$ ./autogen.sh
/opt/local/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
/opt/local/share/aclocal/gtk.m4:7: run info '(automake)Extending aclocal'
/opt/local/share/aclocal/gtk.m4:7: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.ac:95: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
It appears to incorrectly match the version of libcurl during the configure process:
configure: error: Missing required libcurl >= 7.10.1
where I have > versions installed in exported/ldconfig locations (/opt/csw/lib, /usr/local/lib):
[ csw ]
libcurl2 CSWlibcurl2 7.11.2,REV=2011.04.29 84.0 KB
libcurl3 CSWlibcurl3 7.15.5,REV=2011.04.29 107.0 KB
libcurl4 CSWlibcurl4 7.25.0,REV=2012.04.26 360.0 KB
libcurl4_feature CSWlibcurl4-feature 7.25.0,REV=2012.04.26 397.6 KB
libcurl_dev CSWlibcurl-dev 7.25.0,REV=2012.04.26 144.1 KB
[ local compiled ]
version 7.30.0
Specifying the locations with the --with-libcurl option has no effect.
My system:
SunOS hostname.com 5.10 Generic_144501-19 i86pc i386 i86pc
psrinfo:
0 on-line since 11/12/2012 08:12:19
1 on-line since 11/12/2012 08:13:13
2 on-line since 11/12/2012 08:13:13
3 on-line since 11/12/2012 08:13:13
4 on-line since 11/12/2012 08:13:13
5 on-line since 11/12/2012 08:13:13
6 on-line since 11/12/2012 08:13:13
7 on-line since 11/12/2012 08:13:13
8 on-line since 11/12/2012 08:13:14
9 on-line since 11/12/2012 08:13:14
10 on-line since 11/12/2012 08:13:14
11 on-line since 11/12/2012 08:13:1
Hi!
Quick question: some of your source files include GPL headers with the "...version 2 of the License, or (at your option) any later version" language, and some source files don't contain any headers at all. The README.md only says "GPLv2."
Could you please clarify if all of cpuminer is licensed under GPLv2 or later? Or just the specifically marked files?
Many thanks!
CFLAGS="-O3 -Wall -msse2" ./configure fails with:
./configure: line 4977: syntax error near unexpected token `,'
./configure: line 4977: `LIBCURL_CHECK_CONFIG(, 7.10.1, ,'
Thanks,
J
not support "X-Mining-Hashrate"?
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.