magi-project / wolf-m7m-cpuminer-v2 Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
This is a multi-threaded CPU pool miner for M7M/Magi (XMG). This miner is an optimizing of code released by Wolf0 mainly by revising <m7mhash.c> https://github.com/wolf9466/wolf-m7m-cpuminer License: GPLv2. See COPYING for details. Downloads: https://sourceforge.net/projects/cpuminer/files/ Git tree: https://github.com/pooler/cpuminer Dependencies: libcurl http://curl.haxx.se/libcurl/ libgmp http://gmplib.org/ openssl http://www.openssl.org/ jansson http://www.digip.org/jansson/ (jansson is optional, and is included in-tree) Basic *nix build instructions: ./autogen.sh && ./configure CFLAGS="-O3" CXXFLAGS="-O3" && make ./autogen.sh # only needed if building from git repo ./nomacro.pl # only needed if building on Mac OS X or with Clang ./configure CFLAGS="-O3" CXXFLAGS="-O3" 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 In the MSYS shell, run: ./autogen.sh # only needed if building from git repo LIBCURL="-lcurldll" ./configure CFLAGS="-O3" 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. Also many issues and FAQs are covered in the forum thread dedicated to this program, https://bitcointalk.org/index.php?topic=55038.0 Solo mining: ./minerd --url http://127.0.0.1:RPCPORT/ --user RPCUSER --pass RPCPASSWORD --threads thread_numbers Pool mining: ./minerd -a m7m -o stratum+tcp://pool_url:pool_port -u pool_user.worker -p password -t thread_numbers Scrypts: magi-minerd.sh, magi-minerd.bat; change rpcport, rpc user and pass accordinly.
Hello I was wondering if there is somewhere to modify to auto restart the miner on a rejected share threshold?
Full Error
./minerd: unknown algorithm -- 'm7m' Try `minerd --help' for more information.
What is the wrong one? Please help
I use Termux
I use Ubuntu on Termux
When I try the build on Ubuntu 17.04 I get the following errors at the end of the build:
<artificial>:(.text+0x93b): undefined reference to `sph_sha224'
<artificial>:(.text+0x94a): undefined reference to `sph_sha256_close'
<artificial>:(.text+0xf7a): undefined reference to `sph_sha224'
<artificial>:(.text+0xf8d): undefined reference to `sph_sha256_close'
collect2: error: ld returned 1 exit status
Makefile:518: recipe for target 'minerd' failed
make[2]: *** [minerd] Error 1
make[2]: Leaving directory '/home/ole/Miners/wolf-m7m-cpuminer-V2'
Makefile:771: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ole/Miners/wolf-m7m-cpuminer-V2'
Makefile:422: recipe for target 'all' failed
make: *** [all] Error 2
Thoughts?
Trying to compile on the 32 bit version of ubuntu 16.10. The final output looks like this:
collect2: error: ld returned 1 exit status
Makefile:518: recipe for target 'minerd' failed
make[2]: *** [minerd] Error 1
make[2]: Leaving directory '/home/ole/Miners/wolf-m7m-cpuminer-V2'
Makefile:771: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ole/Miners/wolf-m7m-cpuminer-V2'
Makefile:422: recipe for target 'all' failed
make: *** [all] Error 2
Thoughts?
tmp/ccgquXHO.ltrans4.ltrans.o: In function scanhash_m7m_hash': <artificial>:(.text+0x6a): undefined reference to
sph_sha256_init'
:(.text+0x78): undefined reference to sph_sha256_init' <artificial>:(.text+0x8a): undefined reference to
sph_sha224'
:(.text+0x98): undefined reference to sph_sha512_init' <artificial>:(.text+0xaa): undefined reference to
sph_sha384'
:(.text+0xb6): undefined reference to sph_keccak512_init' <artificial>:(.text+0xc4): undefined reference to
sph_keccak512'
:(.text+0xce): undefined reference to sph_whirlpool_init' <artificial>:(.text+0xe4): undefined reference to
sph_whirlpool'
:(.text+0xf0): undefined reference to sph_haval256_5_init' <artificial>:(.text+0xfe): undefined reference to
sph_haval256_5'
:(.text+0x108): undefined reference to sph_tiger_init' <artificial>:(.text+0x112): undefined reference to
sph_tiger'
:(.text+0x122): undefined reference to sph_ripemd160_init' <artificial>:(.text+0x12e): undefined reference to
sph_ripemd160'
:(.text+0x2e0): undefined reference to sph_sha224' <artificial>:(.text+0x2ea): undefined reference to
sph_sha256_close'
:(.text+0x300): undefined reference to sph_sha384' <artificial>:(.text+0x308): undefined reference to
sph_sha512_close'
:(.text+0x320): undefined reference to sph_keccak512' <artificial>:(.text+0x328): undefined reference to
sph_keccak512_close'
:(.text+0x342): undefined reference to sph_whirlpool' <artificial>:(.text+0x34c): undefined reference to
sph_whirlpool_close'
:(.text+0x366): undefined reference to sph_haval256_5' <artificial>:(.text+0x370): undefined reference to
sph_haval256_5_close'
:(.text+0x386): undefined reference to sph_tiger' <artificial>:(.text+0x38e): undefined reference to
sph_tiger_close'
:(.text+0x3a4): undefined reference to sph_ripemd160' <artificial>:(.text+0x3ac): undefined reference to
sph_ripemd160_close'
:(.text+0x464): undefined reference to sph_sha224' <artificial>:(.text+0x46e): undefined reference to
sph_sha256_close'
:(.text+0x836): undefined reference to sph_sha224' <artificial>:(.text+0x842): undefined reference to
sph_sha256_close'
collect2: error: ld returned 1 exit status
Makefile:518: recipe for target 'minerd' failed
make[2]: *** [minerd] Error 1
make[2]: Leaving directory '/root/wolf-m7m-cpuminer-V211'
Makefile:771: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/wolf-m7m-cpuminer-V211'
Makefile:422: recipe for target 'all' failed
make: *** [all] Error 2
How to solo mined?
Adakah tutorial nya?
./minerd: no such file ir directory
make[2]: Entering directory '/root/Desktop/wolf-m7m-cpuminer-V2/m7' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -Ofast -march=native -flto -g -O2 -MT libm7m_a-haval.o -MD -MP -MF .deps/libm7m_a-haval.Tpo -c -o libm7m_a-haval.o
test -f 'haval.c' || echo './'`haval.c
haval.c:1:0: error: unknown value 'native' for -march
/* $Id: haval.c 227 2010-06-16 17:28:38Z tp $ */
^
Makefile:363: recipe for target 'libm7m_a-haval.o' failed
make[2]: *** [libm7m_a-haval.o] Error 1
make[2]: Leaving directory '/root/Desktop/wolf-m7m-cpuminer-V2/m7'
Makefile:760: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/Desktop/wolf-m7m-cpuminer-V2'
Makefile:410: recipe for target 'all' failed
make: *** [all] Error 2
root@Orangepi:~/Desktop/wolf-m7m-cpuminer-V2#
`
tried to delete the line in nano Makefile. But when I want to open the miner it can't find the minerd.
I
Hi,
what i'm doing wrong?
i get this while running make:
make all-recursive
make[1]: Entering directory /root/minerd/wolf-m7m-cpuminer-V2-master' Making all in compat make[2]: Entering directory
/root/minerd/wolf-m7m-cpuminer-V2-master/compat'
Making all in jansson
make[3]: Entering directory /root/minerd/wolf-m7m-cpuminer-V2-master/compat/jansson' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c mv -f .deps/dump.Tpo .deps/dump.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT hashtable.o -MD -MP -MF .deps/hashtable.Tpo -c -o hashtable.o hashtable.c mv -f .deps/hashtable.Tpo .deps/hashtable.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT load.o -MD -MP -MF .deps/load.Tpo -c -o load.o load.c mv -f .deps/load.Tpo .deps/load.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT strbuffer.o -MD -MP -MF .deps/strbuffer.Tpo -c -o strbuffer.o strbuffer.c mv -f .deps/strbuffer.Tpo .deps/strbuffer.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -MT utf.o -MD -MP -MF .deps/utf.Tpo -c -o utf.o utf.c mv -f .deps/utf.Tpo .deps/utf.Po gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -g -O2 -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]: Leaving directory
/root/minerd/wolf-m7m-cpuminer-V2-master/compat/jansson'
make[3]: Entering directory /root/minerd/wolf-m7m-cpuminer-V2-master/compat' make[3]: Für das Ziel »all-am« ist nichts zu tun. make[3]: Leaving directory
/root/minerd/wolf-m7m-cpuminer-V2-master/compat'
make[2]: Leaving directory /root/minerd/wolf-m7m-cpuminer-V2-master/compat' Making all in m7 make[2]: Entering directory
/root/minerd/wolf-m7m-cpuminer-V2-master/m7'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -Ofast -march=native -flto -g -O2 -MT libm7m_a-haval.o -MD -MP -MF .deps/libm7m_a-haval.Tpo -c -o libm7m_a-haval.o test -f 'haval.c' || echo './'
haval.c
cc1: Fehler: ungültiges Optionsargument »-Ofast«
cc1: Fehler: nicht erkannte Kommandozeilenoption »-flto«
make[2]: *** [libm7m_a-haval.o] Fehler 1
make[2]: Leaving directory /root/minerd/wolf-m7m-cpuminer-V2-master/m7' make[1]: *** [all-recursive] Fehler 1 make[1]: Leaving directory
/root/minerd/wolf-m7m-cpuminer-V2-master'
make: *** [all] Fehler 2
kind regards,
Marcus
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.