Coder Social home page Coder Social logo

cpuminer-multi's Introduction

CPUMiner-Multi

Build Status

This is a multi-threaded CPU miner, fork of pooler's cpuminer (see AUTHORS for list of contributors).

Table of contents

Algorithms

Currently supported

  • scrypt (Litecoin, Dogecoin, Feathercoin, etc..)
  • scrypt:N (Vertcoin [VTC])
  • sha256d (Bitcoin, Freicoin, Peercoin/PPCoin, Terracoin, etc..)
  • x11 (Darkcoin [DRK], Hirocoin, Limecoin)
  • x13 (Sherlockcoin, [ACE], [B2B], [GRC], [XHC], etc..)
  • x14 (X14, Webcoin [WEB])
  • x15 (RadianceCoin [RCE])
  • cryptonight (Bytecoin [BCN], Monero)
  • fresh (FreshCoin)

Implemented, but untested

  • ? keccak (Maxcoin HelixCoin, CryptoMeth, Galleon, 365coin, Slothcoin, BitcointalkCoin)
  • ? hefty1 (Heavycoin)
  • ? quark (Quarkcoin)
  • ? skein (Skeincoin, Myriadcoin)
  • ? shavite3 (INKcoin)
  • ? blake (Blakecoin)

Planned support for

  • scrypt-jane (YaCoin, CopperBars, Pennies, Tickets, etc..)
  • qubit (Qubitcoin, Myriadcoin)
  • groestl (Groestlcoin)

Dependencies

Download

Build

Basic *nix build instructions:

  • ./autogen.sh # only needed if building from git repo
  • ./nomacro.pl # only needed if building on Mac OS X or with Clang
  • ./configure CFLAGS="-march=native"
    • Use -march=native if building for a single machine

  • make

Notes for AIX users:

  • To build a 64-bit binary, export OBJECT_MODE=64
  • GNU-style long options are not supported, but are accessible via configuration file

Basic Windows build instructions, using MinGW:

  • Install MinGW and the MSYS Developer Tool Kit (http://www.mingw.org/)
    • Make sure you have mstcpip.h in MinGW\include
  • If using MinGW-w64, install pthreads-w64
  • Install libcurl devel (http://curl.haxx.se/download.html)
    • Make sure you have libcurl.m4 in MinGW\share\aclocal
    • Make sure you have curl-config in MinGW\bin
  • Install openssl devel (https://www.openssl.org/related/binaries.html)
  • In the MSYS shell, run:
    • ./autogen.sh # only needed if building from git repo
    • LIBCURL="-lcurldll" ./configure CFLAGS="-march=native"
      • Use -march=native if building for a single machine

    • make

Architecture-specific notes:

  • ARM:
    • No runtime CPU detection. The miner can take advantage of some instructions specific to ARMv5E and later processors, but the decision whether to use them is made at compile time, based on compiler-defined macros.
    • To use NEON instructions, add "-mfpu=neon" to CFLAGS.
  • x86:
    • The miner checks for SSE2 instructions support at runtime, and uses them if they are available.
  • x86-64:
    • The miner can take advantage of AVX, AVX2 and XOP instructions, but only if both the CPU and the operating system support them.
      • Linux supports AVX starting from kernel version 2.6.30.
      • FreeBSD supports AVX starting with 9.1-RELEASE.
      • Mac OS X added AVX support in the 10.6.8 update.
      • Windows supports AVX starting from Windows 7 SP1 and Windows Server 2008 R2 SP1.
    • The configure script outputs a warning if the assembler doesn't support some instruction sets. In that case, the miner can still be built, but unavailable optimizations are left off.

Usage instructions

Run "minerd --help" to see options.

Connecting through a proxy

Use the --proxy option.

To use a SOCKS proxy, add a socks4:// or socks5:// prefix to the proxy host
Protocols socks4a and socks5h, allowing remote name resolving, are also available since libcurl 7.18.0.

If no protocol is specified, the proxy is assumed to be a HTTP proxy.
When the --proxy option is not used, the program honors the http_proxy and all_proxy environment variables.

Donations

Donations for the work done in this fork are accepted at

  • MRO: 472haywQKoxFzf7asaQ4XKBc2foAY4ezk8HiN63ifW4iAbJiLnfmJfhHSR9XmVKw2WYPnszJV9MEHj9Z5WMK9VCNHaGLDmJ
  • BTC: 139QWoktddChHsZMWZFxmBva4FM96X2dhE

Credits

CPUMiner-multi was forked from pooler's CPUMiner, and has been developed by Lucas Jones.

  • tpruvot added some features and recent SHA3 based algorythmns
  • Wolf9466 helped with Intel AES-NI support for CryptoNight

License

GPLv2. See COPYING for details.

cpuminer-multi's People

Contributors

erkmos avatar lucasjones avatar pooler avatar tpruvot 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpuminer-multi's Issues

Docker build error macos

$ docker build -t cpuminer-multi .
Sending build context to Docker daemon 1.572 MB
Step 1 : FROM ubuntu:12.10
 ---> 3e314f95dcac
Step 2 : MAINTAINER Guillaume J. Charmes <[email protected]>
 ---> Using cache
 ---> 68ac2fb9f3ce
Step 3 : RUN apt-get update -qq
 ---> Running in 9c77c5bfdd64
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/restricted/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/universe/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/main/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/main/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/restricted/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/universe/source/Sources  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/main/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/restricted/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/quantal-security/universe/binary-amd64/Packages  404  Not Found [IP: 91.189.88.149 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update -qq' returned a non-zero code: 100

undef: _freshhash

After quite some tinkering it's seems I have unique error right at the end of my make process. Something about _freshhash...

make
/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive
Making all in compat
Making all in jansson
make[3]: Nothing to be done for 'all'.
make[3]: Nothing to be done for 'all-am'.
gcc -Ofast -flto -fuse-linker-plugin -march=native -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-fresh.o minerd-x11.o minerd-x13.o minerd-x14.o minerd-x15.o sha3/minerd-sph_keccak.o sha3/minerd-sph_hefty1.o sha3/minerd-sph_groestl.o sha3/minerd-sph_skein.o sha3/minerd-sph_bmw.o sha3/minerd-sph_jh.o sha3/minerd-sph_shavite.o sha3/minerd-sph_blake.o sha3/minerd-sph_luffa.o sha3/minerd-sph_cubehash.o sha3/minerd-sph_simd.o sha3/minerd-sph_echo.o sha3/minerd-sph_hamsi.o sha3/minerd-sph_fugue.o sha3/minerd-sph_shabal.o sha3/minerd-sph_whirlpool.o crypto/minerd-oaes_lib.o crypto/minerd-c_keccak.o crypto/minerd-c_groestl.o crypto/minerd-c_blake256.o crypto/minerd-c_jh.o crypto/minerd-c_skein.o crypto/minerd-hash.o crypto/minerd-aesb.o  minerd-sha2-x64.o minerd-scrypt-x64.o minerd-aesb-x64.o  -L/usr/local/Cellar/curl/7.53.1/lib -lcurl -lldap -lz compat/jansson/libjansson.a -lpthread  -lcrypto
clang: warning: argument unused during compilation: '-pthread'
undef: _freshhash
Undefined symbols for architecture x86_64:
  "_freshhash", referenced from:
      _miner_thread in lto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [minerd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2```

Any ideas?

thread speed not shown

Only the total speed is shown with scrypt :

[2014-08-02 04:48:24] thread 0: 90000 hashes, 0.00 khash/s
[2014-08-02 04:48:24] thread 1: 90024 hashes, 0.00 khash/s
[2014-08-02 04:48:24] thread 2: 90144 hashes, 0.00 khash/s
[2014-08-02 04:48:24] thread 3: 89664 hashes, 0.00 khash/s
[2014-08-02 04:48:24] Total: 72.37 khash/s

Should be :

[2014-08-02 04:51:21] thread 2: 62400 hashes, 17.99 khash/s
[2014-08-02 04:51:21] thread 3: 62568 hashes, 18.04 khash/s
[2014-08-02 04:51:21] thread 0: 62424 hashes, 18.00 khash/s
[2014-08-02 04:51:25] thread 1: 69408 hashes, 18.05 khash/s
[2014-08-02 04:51:25] accepted: 25/25 (100.00%), 72.09 khash/s (yay!!!)

AES-NI not working on arm

Hello I have an allwiner a64 which has AES-NI support however when I build the cpuminer its says the cpu does not support AES-NI despite linux and allwinner saying it does.

error building in raspberry pi

can't build from git in Raspberry Pi.
make error:
" cpu-miner.c: In function ‘main’:
cpu-miner.c:1822:2: error: impossible constraint in ‘asm’ "

running same version on amd64, no problems.

Compile Error

In file included from miner.h:9:0,
                 from cpu-miner.c:42:
c:\mingw\include\pthread.h:320:8: error: redefinition of 'struct timespec'
 struct timespec {
        ^
In file included from c:\mingw\include\unistd.h:96:0,
                 from cpu-miner.c:19:
c:\mingw\include\parts\time.h:105:8: note: originally defined here
 struct timespec
        ^
cpu-miner.c: In function 'miner_thread':
cpu-miner.c:1061:70: error: 'MEM_LARGE_PAGES' undeclared (first use in this function)
   persistentctx = VirtualAlloc(NULL, sizeof(struct cryptonight_ctx), MEM_LARGE_PAGES, PAGE_READWRITE);
                                                                      ^
cpu-miner.c:1061:70: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [minerd-cpu-miner.o] Error 1

Not sure what this means

Errors on autogen.sh

I have these errors when I run 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'
Makefile.am:12: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
Makefile.am: installing './depcomp'
configure.ac:130: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

I am using centos 7 x86_64. Any idea?

Thanks

Getting json error for ziftr

./cpuminer -t2 -a zr5 -o stratum+tcp://zrc.maxminers.net:3331 -u xxx.worker -p password
** cpuminer-multi 1.2-dev by Tanguy Pruvot (tpruvot@github) **
BTC donation address: 1FhDPLPpw18X4srecguG3MxJYe4a1JsZnd

[2015-11-08 18:18:44] Starting Stratum on stratum+tcp://zrc.maxminers.net:3331
[2015-11-08 18:18:44] 2 miner threads started, using 'zr5' algorithm.
[2015-11-08 18:18:44] JSON decode failed(1): '[' or '{' expected near 'HTTP'
[2015-11-08 18:18:44] JSON decode failed(1): '[' or '{' expected near 'Content'
[2015-11-08 18:18:44] ...retry after 10 seconds
[2015-11-08 18:18:54] JSON decode failed(1): '[' or '{' expected near 'HTTP'
[2015-11-08 18:18:54] JSON decode failed(1): '[' or '{' expected near 'Content'
[2015-11-08 18:18:54] ...retry after 10 seconds

Error of make![ARM CPU]

Wen i make this program on my PI,always this error.

root@resbi:/srcs/xmr# make -j4
make all-recursive
make[1]: Entering directory '/root/srcs/xmr'
Making all in compat
make[2]: Entering directory '/root/srcs/xmr/compat'
make[3]: Entering directory '/root/srcs/xmr/compat'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/srcs/xmr/compat'
make[2]: Leaving directory '/root/srcs/xmr/compat'
make[2]: Entering directory '/root/srcs/xmr'
gcc -Ofast -flto -fuse-linker-plugin -march=native -pthread -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-fresh.o minerd-x11.o minerd-x13.o minerd-x14.o minerd-x15.o sha3/minerd-sph_keccak.o sha3/minerd-sph_hefty1.o sha3/minerd-sph_groestl.o sha3/minerd-sph_skein.o sha3/minerd-sph_bmw.o sha3/minerd-sph_jh.o sha3/minerd-sph_shavite.o sha3/minerd-sph_blake.o sha3/minerd-sph_luffa.o sha3/minerd-sph_cubehash.o sha3/minerd-sph_simd.o sha3/minerd-sph_echo.o sha3/minerd-sph_hamsi.o sha3/minerd-sph_fugue.o sha3/minerd-sph_shabal.o sha3/minerd-sph_whirlpool.o crypto/minerd-oaes_lib.o crypto/minerd-c_keccak.o crypto/minerd-c_groestl.o crypto/minerd-c_blake256.o crypto/minerd-c_jh.o crypto/minerd-c_skein.o crypto/minerd-hash.o crypto/minerd-aesb.o -L/usr/lib/aarch64-linux-gnu -lcurl -ljansson -lpthread -lcrypto
cpu-miner.c: In function 'main':
cpu-miner.c:1823:2: error: impossible constraint in 'asm'
asm volatile("cpuid":"=a"(where),"=b"((where+1)),
^
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:622: recipe for target 'minerd' failed
make[2]: *** [minerd] Error 1
make[2]: Leaving directory '/root/srcs/xmr'
Makefile:1466: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/srcs/xmr'
Makefile:464: recipe for target 'all' failed
make: *** [all] Error 2
root@resbi:
/srcs/xmr#

No connection with Pool

I did compile but it seems that is not made communication with the pool.
I'm using the pool, minergate.

Would the libs that I used were not appropriate?

image

image

Newest release not submitting cryptonight shares

I just did a git clone on 2 linux mint 16 machines, compiled fine and seeing record hashrates for i5-4440 (~65 hashes per thread vs 25 on windows) but not submitting any shares (~60 min).

Windows versions are slower but working fine, old i7 Nehalem with ubuntu server working fine too with newest git so i guess there went something wrong with a cpu optimization...

If i switch from stratum to normal http it sends shares but they are rejected 100%, tested on two pools.

Cheers

nicehash support

Hi, i use your miner cryptonight algroithm on nicehash pool. but its not accepted what can i do?

x11 not working

on a fresh clone/build from current git it seems youve forgotten to add the full support for x11

v@n:/dev/cpuminer-multi$ minerd --benchmark -a x11
minerd: unknown algorithm -- 'x11'
Try `minerd --help' for more information.
v@n:
/dev/cpuminer-multi$ minerd --help
Usage: minerd [OPTIONS]
Options:
-a, --algo=ALGO specify the algorithm to use
scrypt scrypt(1024, 1, 1) (default)
scrypt:N scrypt(N, 1, 1)
sha256d SHA-256d
-o, --url=URL URL of mining server

Linking error on s390 architecture

g++ -g -O2 -Lyes/lib -Lyes/lib -Lyes/lib -Lyes/lib -o cpuminer cpuminer-cpu-miner.o cpuminer-util.o cpuminer-api.o cpuminer-sysinfos.o cpuminer-uint256.o sha3/cpuminer-sph_keccak.o sha3/cpuminer-sph_hefty1.o sha3/cpuminer-sph_groestl.o sha3/cpuminer-sph_skein.o sha3/cpuminer-sph_bmw.o sha3/cpuminer-sph_jh.o sha3/cpuminer-sph_shavite.o sha3/cpuminer-sph_blake.o sha3/cpuminer-mod_blakecoin.o sha3/cpuminer-sph_luffa.o sha3/cpuminer-sph_cubehash.o sha3/cpuminer-sph_simd.o sha3/cpuminer-sph_echo.o sha3/cpuminer-sph_hamsi.o sha3/cpuminer-sph_haval.o sha3/cpuminer-sph_fugue.o sha3/cpuminer-sph_ripemd.o sha3/cpuminer-sph_sha2.o sha3/cpuminer-sph_sha2big.o sha3/cpuminer-sph_shabal.o sha3/cpuminer-sph_whirlpool.o sha3/cpuminer-gost_streebog.o crypto/cpuminer-blake2s.o crypto/cpuminer-blake2b.o crypto/cpuminer-oaes_lib.o crypto/cpuminer-c_keccak.o crypto/cpuminer-c_groestl.o crypto/cpuminer-c_blake256.o crypto/cpuminer-c_jh.o crypto/cpuminer-c_skein.o crypto/cpuminer-hash.o crypto/cpuminer-aesb.o lyra2/cpuminer-Lyra2.o lyra2/cpuminer-Sponge.o yescrypt/cpuminer-yescrypt-common.o yescrypt/cpuminer-yescrypt-best.o yescrypt/cpuminer-sha256_Y.o algo/cpuminer-axiom.o algo/cpuminer-bastion.o algo/cpuminer-blake.o algo/cpuminer-blakecoin.o algo/cpuminer-blake2.o algo/cpuminer-bmw256.o algo/cpuminer-c11.o algo/cpuminer-cryptonight.o algo/cpuminer-cryptolight.o algo/cpuminer-decred.o algo/cpuminer-drop.o algo/cpuminer-fresh.o algo/cpuminer-groestl.o algo/cpuminer-heavy.o algo/cpuminer-ink.o algo/cpuminer-jha.o algo/cpuminer-lbry.o algo/cpuminer-luffa.o algo/cpuminer-lyra2re.o algo/cpuminer-lyra2rev2.o algo/cpuminer-myr-groestl.o algo/cpuminer-keccak.o algo/cpuminer-pentablake.o algo/cpuminer-quark.o algo/cpuminer-neoscrypt.o algo/cpuminer-nist5.o algo/cpuminer-pluck.o algo/cpuminer-qubit.o algo/cpuminer-scrypt.o algo/cpuminer-scrypt-jane.o algo/cpuminer-sha2.o algo/cpuminer-sia.o algo/cpuminer-sibcoin.o algo/cpuminer-skein.o algo/cpuminer-skein2.o algo/cpuminer-s3.o algo/cpuminer-bitcore.o algo/cpuminer-timetravel.o algo/cpuminer-tribus.o algo/cpuminer-veltor.o algo/cpuminer-x11evo.o algo/cpuminer-x11.o algo/cpuminer-x13.o algo/cpuminer-x14.o algo/cpuminer-x15.o algo/cpuminer-x17.o algo/cpuminer-xevan.o algo/cpuminer-yescrypt.o algo/cpuminer-zr5.o asm/cpuminer-neoscrypt_asm.o -lcurl -lz -lssl -lcrypto compat/jansson/libjansson.a -lpthread
cpu-miner.c: In function 'main':
sysinfos.c:122:2: error: inconsistent operand constraints in an 'asm'
asm volatile("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "a"(functionnumber), "c"(0));
^
lto-wrapper: fatal error: g++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:900: recipe for target 'cpuminer' failed
make[2]: *** [cpuminer] Error 1
make[2]: Leaving directory '/home/x0ran/cpuminer-multi'
Makefile:2530: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/x0ran/cpuminer-multi'
Makefile:570: recipe for target 'all' failed
make: *** [all] Error 2
strip: 'cpuminer': No such file

Parameters -D and --protocol-dump

Hi

First of all thanks for your tremendous work and for offering it to the community. Not everyone has the ability to invest thousands of dollars in mining equipment, but with cpuminer-multi everyone who has a computer is able to try and have the thrill of discovering crypto mining.

There are 2 options that I like to use with cpuminer-multi:
-D
--protocol-dump

It helps me understand the underlying protocol and what happens between my miner and the mining pool servers.

When I use these options with "skein" algorithm for example (when trying to mine DigiByte), I get this lines when I find a valid share:

[2017-06-04 19:17:34] DEBUG: hash <= target
Hash:   0000002d8b9db4b00486c9dd216e04550ff5468bdf6f82bc63266c46813cf52f
Target: 00000063ff9c0000000000000000000000000000000000000000000000000000
[2017-06-04 19:17:34] share diff 0.02196 (2.2x)
[2017-06-04 19:17:34] > {"method": "mining.submit", "params": ["D8En7o9BEE2PNCev837t2Df8hLFcrsYxB3", "b83c", "00000000", "59344094", "5b826200"], "id":4}
[2017-06-04 19:17:35] < {"id":4,"result":true,"error":null}
[2017-06-04 19:17:35] accepted: 61/63 (diff 0.022), 882.32 kH/s yes!

When I use the same parameters with "cryptonight" algorithm, I don't have the first lines of output telling me which share I submit to the pool.

Should I use another parameter to be able to see it?
Or if it isn't implemented, would it be hard to implement?

Thanks
Xavier

Error of autogen.sh![Tiny Core Linux x86]

I compile under the Tiny Core Linux. Here is the result:
root@box:/tmp/cpuminer-multi-master# ./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'
configure.ac:130: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.

What can i do? thanks

Freebsd 11 compile error caused by ftime

gcc -Ofast -flto -fuse-linker-plugin -O3 -pthread -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-fresh.o minerd-x11.o minerd-x13.o minerd-x14.o minerd-x15.o sha3/minerd-sph_keccak.o sha3/minerd-sph_hefty1.o sha3/minerd-sph_groestl.o sha3/minerd-sph_skein.o sha3/minerd-sph_bmw.o sha3/minerd-sph_jh.o sha3/minerd-sph_shavite.o sha3/minerd-sph_blake.o sha3/minerd-sph_luffa.o sha3/minerd-sph_cubehash.o sha3/minerd-sph_simd.o sha3/minerd-sph_echo.o sha3/minerd-sph_hamsi.o sha3/minerd-sph_fugue.o sha3/minerd-sph_shabal.o sha3/minerd-sph_whirlpool.o crypto/minerd-oaes_lib.o crypto/minerd-c_keccak.o crypto/minerd-c_groestl.o crypto/minerd-c_blake256.o crypto/minerd-c_jh.o crypto/minerd-c_skein.o crypto/minerd-hash.o crypto/minerd-aesb.o minerd-sha2-x64.o minerd-scrypt-x64.o minerd-aesb-x64.o -L/usr/local/lib -lcurl -ljansson -lpthread -lcrypto
/tmp//ccg2hUZz.ltrans9.ltrans.o: In function oaes_alloc': <artificial>:(.text+0xe9b): undefined reference to ftime'
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.

SHA256 not worked

unknown algorithm -- 'sha256'
Try `cpuminer-multi --help' for more information.

CPU-Limit

Hey guys,

is it possible to configure cpuminer-multi to use a limit of CPU-Cores ?

If this is possible, can you say me how i configure this ?

Best regards,
Rob

FreeBSD compile: oaes_lib.c:481: undefined reference to `ftime'

cc -g -O2 -pthread -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-x11.o minerd-sph_keccak.o minerd-sph_hefty1.o minerd-sph_groestl.o minerd-sph_skein.o minerd-sph_bmw.o minerd-sph_jh.o minerd-sph_shavite.o minerd-sph_blake.o minerd-sph_luffa.o minerd-sph_cubehash.o minerd-sph_simd.o minerd-sph_echo.o minerd-oaes_lib.o minerd-c_keccak.o minerd-c_groestl.o minerd-c_blake256.o minerd-c_jh.o minerd-c_skein.o minerd-hash.o minerd-aesb.o minerd-sha2-x64.o minerd-scrypt-x64.o minerd-aesb-x64.o -L/usr/local/lib -lcurl compat/jansson/libjansson.a -lpthread -lcrypto
/usr/bin/ld: warning: libcrypto.so.8, needed by /usr/local/lib/libcurl.so, may conflict with libcrypto.so.9
minerd-oaes_lib.o: In function oaes_get_seed': /usr/local/src/cpuminer-multi-1.0.3/crypto/oaes_lib.c:481: undefined reference to ftime'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[2]: stopped in /usr/local/src/cpuminer-multi-1.0.3
*** Error code 1

Could not find crypto

Whenever I run ./configure on Fedora 21 I get:
configure: error: could not find crypto

Problem with macros at build

I am using Debian x64

root@5:~/github/cpuminer-multi# ./autogen.sh
aclocal: configure.ac: 6: macro `AM_INIT_AUTOMAKE' not found in library
aclocal: configure.ac: 10: macro `AM_MAINTAINER_MODE' not found in library
aclocal: configure.ac: 15: macro `AM_PROG_CC_C_O' not found in library
aclocal: configure.ac: 16: macro `AM_PROG_AS' not found in library
aclocal: configure.ac: 115: macro `AM_CONDITIONAL' not found in library
aclocal: configure.ac: 116: macro `AM_CONDITIONAL' not found in library
aclocal: configure.ac: 117: macro `AM_CONDITIONAL' not found in library
aclocal: configure.ac: 118: macro `AM_CONDITIONAL' not found in library
aclocal: configure.ac: 119: macro `AM_CONDITIONAL' not found in library
aclocal: configure.ac: 120: macro `AM_CONDITIONAL' not found in library

The first problem was the aclocal complaining about the /usr/local/share/aclocal- folder, when i really expected to claim for ``/usr/local/share/aclocal` instead.

Regarding of that, i would like to ask why are only Windows binaries released.
Would help to have Linux binary ready to use even if not 100% optimized...

Any hint to build it?

fix neon compiler flag in README.md

fix cflags to enable ARM neon.

Was unable to compile with listing provided. Searching https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html indicated need for single-quotes. Adding single quote = successful compile (CHIP single-board-computer, ARM R8 single core ARMv7 + vpf3 instructions).

(note: this compile was tpruvot's cpuminer-multi fork, but can't file an issue on a fork, so maybe this will help someone else. using cflags -march=native -mcpu=native -mtune=native -mfloat-abi='hard' -mfpu='neon' gained me ~6kH/s decred compared to just running build.sh.)

Can't compile on Raspberry Pi 3 (PI3)

uname
Linux raspberrypi 4.4.9-v7+ #884 SMP Fri May 6 17:28:59 BST 2016 armv7l GNU/Linux
configure
config.txt

algorithm/minerd-sha2-arm.o algorithm/minerd-scrypt-arm.o -lcurl -lssl -lcrypto -ljansson -lpthread
algorithm/minerd-cryptonight.o: In function mul_sum_xor_dst': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:78: undefined reference tomul128'
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:78: undefined reference to mul128' algorithm/minerd-cryptonight.o: In functioncryptonight_hash_ctx_aes_ni':
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:197: undefined reference to fast_aesb_pseudo_round_mut' /home/pi/cpuminer-lbry/algorithm/cryptonight.c:198: undefined reference tofast_aesb_pseudo_round_mut'
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:199: undefined reference to fast_aesb_pseudo_round_mut' /home/pi/cpuminer-lbry/algorithm/cryptonight.c:200: undefined reference tofast_aesb_pseudo_round_mut'
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:201: undefined reference to fast_aesb_pseudo_round_mut' algorithm/minerd-cryptonight.o:/home/pi/cpuminer-lbry/algorithm/cryptonight.c:202: more undefined references tofast_aesb_pseudo_round_mut' follow
algorithm/minerd-cryptonight.o: In function cryptonight_hash_ctx_aes_ni': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:218: undefined reference tofast_aesb_single_round'
algorithm/minerd-cryptonight.o: In function mul_sum_xor_dst': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:78: undefined reference tomul128'
algorithm/minerd-cryptonight.o: In function cryptonight_hash_ctx_aes_ni': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:224: undefined reference tofast_aesb_single_round'
algorithm/minerd-cryptonight.o: In function mul_sum_xor_dst': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:78: undefined reference tomul128'
algorithm/minerd-cryptonight.o: In function cryptonight_hash_ctx_aes_ni': /home/pi/cpuminer-lbry/algorithm/cryptonight.c:234: undefined reference tofast_aesb_pseudo_round_mut'
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:236: undefined reference to fast_aesb_pseudo_round_mut' /home/pi/cpuminer-lbry/algorithm/cryptonight.c:238: undefined reference tofast_aesb_pseudo_round_mut'
/home/pi/cpuminer-lbry/algorithm/cryptonight.c:240: undefined reference to fast_aesb_pseudo_round_mut' /home/pi/cpuminer-lbry/algorithm/cryptonight.c:242: undefined reference tofast_aesb_pseudo_round_mut'
algorithm/minerd-cryptonight.o:/home/pi/cpuminer-lbry/algorithm/cryptonight.c:244: more undefined references to `fast_aesb_pseudo_round_mut' follow

error: could not find crypto

Trying to compile on Ubuntu 14.10. When running ./configure CFLAGS="-march=native" I get an error that states:

error: in `/home/jeremys/Sandbox/cpuminer-multi':
configure: error: could not find crypto

The same error occurs when running ./configure CFLAGS="-O3".

Compile error on UBUNTU 14.04 LTS

Hi. Got the following error on the in-line asm in <cryptonight_aesni.c>:

cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ
asm("mulq %3\n\t"
^
together with a number of warnings on earlier lines - see below for complete output.

Help would be apreciated!

Regards, Menno

make[2]: Entering directory /home/server/cpuminer-multi' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -I./compat/jansson -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16 -Ofast -flto -fuse-linker-plugin -funroll-loops -fvariable-expansion-in-unroller -ftree-loop-if-convert-stores -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -maes -march=native -MT minerd-cryptonight_aesni.o -MD -MP -MF .deps/minerd-cryptonight_aesni.Tpo -c -o minerd-cryptonight_aesni.otest -f 'cryptonight_aesni.c' || echo './'cryptonight_aesni.c In file included from cryptonight.h:6:0, from cryptonight_aesni.c:2: miner.h:188:58: warning: âstruct cryptonight_ctxâ declared inside parameter list [enabled by default] uint32_t max_nonce, unsigned long *hashes_done, struct cryptonight_ctx *persistentctx); ^ miner.h:188:58: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] cryptonight_aesni.c: In function âcryptonight_hash_ctxâ: cryptonight_aesni.c:90:2: warning: passing argument 3 of âkeccakâ from incompatible pointer type [enabled by default] keccak((const uint8_t *)input, 76, &ctx->state.hs, 200); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:64:6: note: expected âuint8_t *â but argument is of type âunion hash_state *â void keccak(const uint8_t *in, int inlen, uint8_t *md, int mdlen); ^ cryptonight_aesni.c:94:5: warning: implicit declaration of function âmemcpyâ [-Wimplicit-function-declaration] memcpy(ctx->text, ctx->state.init, INIT_SIZE_BYTE); ^ cryptonight_aesni.c:94:5: warning: incompatible implicit declaration of built-in function âmemcpyâ [enabled by default] cryptonight_aesni.c:172:18: warning: initialization from incompatible pointer type [enabled by default] uint64_t *dst = &ctx->long_state[c[0] & 0x1FFFF0]; ^ cryptonight_aesni.c:215:2: warning: passing argument 1 of âkeccakfâ from incompatible pointer type [enabled by default] keccakf(&ctx->state.hs, 24); ^ In file included from cryptonight_aesni.c:2:0: cryptonight.h:65:6: note: expected âuint64_t *â but argument is of type âunion hash_state *â void keccakf(uint64_t st[25], int rounds); ^ cryptonight_aesni.c:162:4: error: inconsistent operand constraints in an âasmâ __asm__("mulq %3\n\t" ^ make[2]: *** [minerd-cryptonight_aesni.o] Error 1 make[2]: Leaving directory/home/server/cpuminer-multi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/server/cpuminer-multi'
make: *** [all] Error 2

Can't compile in OpenSuse AArch64

I'm trying to compile it using OpenSuse AArch64 with a Raspberry Pi 3.
The architecture seems not to be predicted, and it is trying some default architecture maybe?

The gcc seems ok, and at some point when compiling it returns:

Checking weather the C compiler works ... No

Windows binary missing deps

Hey there,
the windows binary is missing zlib1.dll (this one i managed to find) but after that just crashes with no real error except that it couldn't start (0xc000007b)
image

Compilation Error Arm64

i have an error when i do 'sudo make' on arm64:

cpu-miner.c: In function ‘main’:
cpu-miner.c:1823:2: error: impossible constraint in ‘asm’
asm volatile("cpuid":"=a"(where),"=b"((where+1)),
^
lto-wrapper: fatal error: gcc returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status
Makefile:622: recipe for target 'minerd' failed

What can i do? thanks

Failover / Multi Protocol Mining

Do I miss something or is it just not implemented ?
I tried to use cpuminer-multi against nicehash miningpool with failover multi-algo switching - but i was not able to make a correct json configuration file, nor did I succeed to pass multiple urls/algos by commandline.

It would be nice if that can be done, similar to sgminer

yours sincerely

Bitranox

MinGW x32

How can I compile on x32 in MinGW?

Fails to compile on centos 6

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -I./compat/jansson -O3 -MT minerd-cryptonight.o -MD -MP -MF .deps/minerd-cryptonight.Tpo -c -o minerd-cryptonight.o test -f 'cryptonight.c' || echo './'cryptonight.c
In file included from cryptonight.c:13:
crypto/c_jh.h:17: error: redefinition of typedef âBitSequenceâ
crypto/c_groestl.h:36: note: previous declaration of âBitSequenceâ was here
crypto/c_jh.h:18: error: redefinition of typedef âDataLengthâ
crypto/c_groestl.h:37: note: previous declaration of âDataLengthâ was here
cryptonight.c:178:1: warning: "RND" redefined
cryptonight.c:141:1: warning: this is the location of the previous definition
cryptonight.c:210:1: warning: "RND" redefined
cryptonight.c:178:1: warning: this is the location of the previous definition
cryptonight.c:247:1: warning: "RND" redefined
cryptonight.c:210:1: warning: this is the location of the previous definition
make[2]: *** [minerd-cryptonight.o] Error 1
make[2]: Leaving directory /root/cpuminer-multi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/root/cpuminer-multi'
make: *** [all] Error 2

Unable to compile on ubuntu 14.04 32 bits

hello,

I have succes compiling this miner on several x86-64 ubuntu computers but i can't manage to compile it on a ubuntu 14.04 computer.
It seems to fail at then end of the compilation process. with the following message.
So i am trying to compile it on an ubuntu 14.04 32 bits.

mv -f .deps/minerd-x11.Tpo .deps/minerd-x11.Po
mv -f .deps/minerd-cryptonight.Tpo .deps/minerd-cryptonight.Po
mv -f .deps/minerd-sha2.Tpo .deps/minerd-sha2.Po
mv -f .deps/minerd-c_skein.Tpo .deps/minerd-c_skein.Po
gcc -std=gnu99  -O3 -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha2.o minerd-scrypt.o minerd-keccak.o minerd-heavy.o minerd-quark.o minerd-skein.o minerd-ink.o minerd-blake.o minerd-cryptonight.o minerd-x11.o minerd-sph_keccak.o minerd-sph_hefty1.o minerd-sph_groestl.o minerd-sph_skein.o minerd-sph_bmw.o minerd-sph_jh.o minerd-sph_shavite.o minerd-sph_blake.o minerd-sph_luffa.o minerd-sph_cubehash.o minerd-sph_simd.o minerd-sph_echo.o minerd-oaes_lib.o minerd-c_keccak.o minerd-c_groestl.o minerd-c_blake256.o minerd-c_jh.o minerd-c_skein.o minerd-hash.o minerd-aesb.o minerd-sha2-x86.o minerd-scrypt-x86.o   -L/usr/lib/i386-linux-gnu -lcurl compat/jansson/libjansson.a -lpthread  -lcrypto
minerd-cryptonight.o: In function `cryptonight_hash_ctx_aes_ni':
cryptonight.c:(.text+0xdb3): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0xdce): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0xde9): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0xe04): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0xe1f): undefined reference to `fast_aesb_pseudo_round_mut'
minerd-cryptonight.o:cryptonight.c:(.text+0xe3a): more undefined references to `fast_aesb_pseudo_round_mut' follow
minerd-cryptonight.o: In function `cryptonight_hash_ctx_aes_ni':
cryptonight.c:(.text+0xfa7): undefined reference to `fast_aesb_single_round'
cryptonight.c:(.text+0x119e): undefined reference to `fast_aesb_single_round'
cryptonight.c:(.text+0x140a): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0x1449): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0x1488): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0x14c7): undefined reference to `fast_aesb_pseudo_round_mut'
cryptonight.c:(.text+0x1506): undefined reference to `fast_aesb_pseudo_round_mut'
minerd-cryptonight.o:cryptonight.c:(.text+0x1545): more undefined references to `fast_aesb_pseudo_round_mut' follow
collect2: error: ld returned 1 exit status

The only reference to fast_aesb_single_round i could find is in the file aesb-x64.S file which looks like a file dedicated to X86-64 systems :

$ grep -ri fast_aesb_single_round .
./cryptonight.c:extern int fast_aesb_single_round(const uint8_t *in, uint8_t*out, const uint8_t *expandedKey);
./cryptonight.c:        fast_aesb_single_round(&ctx->long_state[j], ctx->c, ctx->a);
./cryptonight.c:        fast_aesb_single_round(&ctx->long_state[j], ctx->b, ctx->a);
./aesb-x64.S:    .globl fast_aesb_single_round
./aesb-x64.S:    .globl _fast_aesb_single_round
./aesb-x64.S:fast_aesb_single_round:
./aesb-x64.S:_fast_aesb_single_round:
Binary file ./minerd-cryptonight.o matches

I can provide any information you need.
Thx for your help !

configure: error: cannot run C compiled programs.

Trying to compile on freebsd and getting the following

checking whether we are cross compiling... configure: error: in /root/cpuminer-cryptonite': configure: error: cannot run C compiled programs. If you meant to cross compile, use --host'.
See `config.log' for more details

Below config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by cpuminer configure 1.0.4, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = pfs-gh.9mcloud.com
uname -m = amd64
uname -r = 10.3-RELEASE-p17
uname -s = FreeBSD
uname -v = FreeBSD 10.3-RELEASE-p17 #10 6da131e75c7(RELENG_2_3_3): Wed Mar 8 14:24:33 CST 2017 root@ce23-amd64-builder:/builder/pfsense-233/tmp/obj/builder/pfsense-233/tmp/FreeBSD-src/sys/pfSense

/usr/bin/uname -p = amd64
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /root/bin

-----------

Core tests.

-----------

configure:2324: checking build system type
configure:2338: result: amd64-unknown-freebsd10.3
configure:2358: checking host system type
configure:2371: result: amd64-unknown-freebsd10.3
configure:2391: checking target system type
configure:2404: result: amd64-unknown-freebsd10.3
configure:2448: checking for a BSD-compatible install
configure:2516: result: /usr/bin/install -c
configure:2527: checking whether build environment is sane
configure:2582: result: yes
configure:2733: checking for a thread-safe mkdir -p
configure:2772: result: ./install-sh -c -d
configure:2779: checking for gawk
configure:2795: found /usr/local/bin/gawk
configure:2806: result: gawk
configure:2817: checking whether make sets $(MAKE)
configure:2839: result: yes
configure:2868: checking whether make supports nested variables
configure:2885: result: yes
configure:3015: checking whether to enable maintainer-specific portions of Makefiles
configure:3024: result: no
configure:3050: checking for style of include used by make
configure:3078: result: GNU
configure:3149: checking for gcc
configure:3165: found /usr/local/bin/gcc
configure:3176: result: gcc
configure:3405: checking for C compiler version
configure:3414: gcc --version >&5
gcc (FreeBSD Ports Collection) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3425: $? = 0
configure:3414: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc49/gcc/x86_64-portbld-freebsd10.3/4.9.4/lto-wrapper
Target: x86_64-portbld-freebsd10.3
Configured with: /wrkdirs/usr/ports/lang/gcc/work/gcc-4.9.4/configure --disable-bootstrap --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc49 --libexecdir=/usr/local/libexec/gcc49 --program-suffix=49 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc49/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --disable-libgcj --enable-languages=c,c++,objc,fortran --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/info/gcc49 --build=x86_64-portbld-freebsd10.3
Thread model: posix
gcc version 4.9.4 (FreeBSD Ports Collection)
configure:3425: $? = 0
configure:3414: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3425: $? = 1
configure:3414: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3425: $? = 1
configure:3445: checking whether the C compiler works
configure:3467: gcc conftest.c >&5
configure:3471: $? = 0
configure:3519: result: yes
configure:3522: checking for C compiler default output file name
configure:3524: result: a.out
configure:3530: checking for suffix of executables
configure:3537: gcc -o conftest conftest.c >&5
configure:3541: $? = 0
configure:3563: result:
configure:3585: checking whether we are cross compiling
configure:3593: gcc -o conftest conftest.c >&5
In file included from conftest.c:11:0:
/usr/local/lib/gcc49/gcc/x86_64-portbld-freebsd10.3/4.9.4/include-fixed/stdio.h:53:23: fatal error: sys/cdefs.h: No such file or directory
#include <sys/cdefs.h>
^
compilation terminated.
configure:3597: $? = 1
configure:3604: ./conftest
eval: ./conftest: not found
configure:3608: $? = 127
configure:3615: error: in /root/cpuminer-multi': configure:3619: error: cannot run C compiled programs. If you meant to cross compile, use --host'.
See `config.log' for more details

----------------

Cache variables.

----------------

ac_cv_build=amd64-unknown-freebsd10.3
ac_cv_env_CCASFLAGS_set=''
ac_cv_env_CCASFLAGS_value=''
ac_cv_env_CCAS_set=''
ac_cv_env_CCAS_value=''
ac_cv_env_CC_set=''
ac_cv_env_CC_value=''
ac_cv_env_CFLAGS_set=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_LDFLAGS_set=''
ac_cv_env_LDFLAGS_value=''
ac_cv_env_LIBS_set=''
ac_cv_env_LIBS_value=''
ac_cv_env_build_alias_set=''
ac_cv_env_build_alias_value=''
ac_cv_env_host_alias_set=''
ac_cv_env_host_alias_value=''
ac_cv_env_target_alias_set=''
ac_cv_env_target_alias_value=''
ac_cv_host=amd64-unknown-freebsd10.3
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
ac_cv_target=amd64-unknown-freebsd10.3
am_cv_make_support_nested_variables=yes

-----------------

Output variables.

-----------------

ACLOCAL='${SHELL} /root/cpuminer-multi/missing aclocal-1.15'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
ARCH_ARM_FALSE=''
ARCH_ARM_TRUE=''
ARCH_x86_64_FALSE=''
ARCH_x86_64_TRUE=''
ARCH_x86_FALSE=''
ARCH_x86_TRUE=''
AUTOCONF='${SHELL} /root/cpuminer-multi/missing autoconf'
AUTOHEADER='${SHELL} /root/cpuminer-multi/missing autoheader'
AUTOMAKE='${SHELL} /root/cpuminer-multi/missing automake-1.15'
AWK='gawk'
CC='gcc'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
HAVE_WINDOWS_FALSE=''
HAVE_WINDOWS_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JANSSON_LIBS=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /root/cpuminer-multi/missing makeinfo'
MKDIR_P='./install-sh -c -d'
OBJEXT=''
PACKAGE='cpuminer'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='cpuminer'
PACKAGE_STRING='cpuminer 1.0.4'
PACKAGE_TARNAME='cpuminer'
PACKAGE_URL=''
PACKAGE_VERSION='1.0.4'
PATH_SEPARATOR=':'
PTHREAD_FLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
USE_ASM_FALSE=''
USE_ASM_TRUE=''
VERSION='1.0.4'
WANT_JANSSON_FALSE=''
WANT_JANSSON_TRUE=''
WS2_LIBS=''
ac_ct_CC='gcc'
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='amd64-unknown-freebsd10.3'
build_alias=''
build_cpu='amd64'
build_os='freebsd10.3'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='amd64-unknown-freebsd10.3'
host_alias=''
host_cpu='amd64'
host_os='freebsd10.3'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /root/cpuminer-multi/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='amd64-unknown-freebsd10.3'
target_alias=''
target_cpu='amd64'
target_os='freebsd10.3'
target_vendor='unknown'

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME "cpuminer"
#define PACKAGE_TARNAME "cpuminer"
#define PACKAGE_VERSION "1.0.4"
#define PACKAGE_STRING "cpuminer 1.0.4"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "cpuminer"
#define VERSION "1.0.4"

configure: exit 1

Cannot build on OSX

Can you please provide guide for build binary on OSX. Because autogen.sh missing dependency
./autogen.sh: line 8: aclocal: command not found

libcurl install on mingw-w32

I tried to install libcurl by moving libcurl.dll to C:\MinGW\bin but that didn't really work.

There's no instructions anywhere on how to do this, especially instructions on how to get libcurl.m4 and curl-config.

Please help!

Merged mining pool support

Ability to bridge or mine 2 pools with different stratum address and port at same time under one instance

Optimization issue

This isn't the place for this, but I could find no other way to contact you, since you're never on IRC. I've been trying to optimize the aesb_pseudo_round_mut() code, but it seems obfuscated, and I'm not entirely clear on what it does. I attempted to replace it with this linux only code:

http://pastebin.com/qczpTnjY

but it failed - hashing, yet not submitting valid shares.

Example usages

Hey
would be nice if you add some example usages for the miner. The --help section is nice but not very meaningful.

accepcted is always 0 in count...

Hi There,
I am using the CPUMiner-Multi in my raspberry pi, the day i started with the raspberry pi for mining using the cpuminer-multi, it was minning in good form for a couple of days, but now it is minning but all the accepceted count that pints is always 0.
can any one help me in this.............

Unable to run ./autogen.sh on Ubuntu 14

Makefile.am:17: warning: source file 'sha3/sph_keccak.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled. For now, the corresponding output
automake: object file(s) will be placed in the top-level directory. However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
Makefile.am:17: warning: source file 'sha3/sph_hefty1.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_groestl.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_skein.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_bmw.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_jh.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_shavite.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_blake.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_luffa.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_cubehash.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_simd.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'sha3/sph_echo.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/oaes_lib.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/c_keccak.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/c_groestl.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/c_blake256.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/c_jh.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/c_skein.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/hash.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:17: warning: source file 'crypto/aesb.c' is in a subdirectory,
Makefile.am:17: but option 'subdir-objects' is disabled
Makefile.am:10: error: required directory ./compat,sha3,crypto does not exist

can't build with statically linked library

  • CentOS does not have glibc 2.14+, nor libcurl4
  • if built with dynamically linked libs, the binary file runs fine on Debian based linux
  • so how do i compile a generic ELF with statically linked libs?

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.