firoorg / cpuminer-xzc Goto Github PK
View Code? Open in Web Editor NEWcpuminer for Zcoin Lyra2Z PoW
License: Other
cpuminer for Zcoin Lyra2Z PoW
License: Other
xzc lyra2z
E5-2680 V2 dual, windows cpuminer.exe can run 800KH, this version of the compiler to run on Linux only 150K
Regular people don't know how to compile. Please upload a proper built release for windows so people can actually use it and don't have hunt down random exe files from other websites. Thank you, Aaron.
There is a link in readme but it's 404.
HI,
I tried to compile the latest CPUMiner on ARM. I got the following error message:
......
arm-openwrt-linux-muslgnueabi-gcc -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -I/usr/openwrt-cc/lede-trunk/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/usr/include -I/usr/openwrt-cc/lede-trunk/staging_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/include -I/usr/openwrt-cc/lede-trunk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/usr/include -I/usr/openwrt-cc/lede-trunk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/include/fortify -I/usr/openwrt-cc/lede-trunk/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-5.4.0_musl-1.1.16_eabi/include -Wno-pointer-sign -Wno-pointer-to-int-cast -Os -pipe -mcpu=cortex-a15 -mfpu=neon-vfpv4 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=hard -iremap /usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3:cpuminer-1.3.3 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -MT lyra2/cpuminer-Lyra2.o -MD -MP -MF lyra2/.deps/cpuminer-Lyra2.Tpo -c -o lyra2/cpuminer-Lyra2.o `test -f 'lyra2/Lyra2.c' || echo './'`lyra2/Lyra2.c
lyra2/Lyra2.c:24:23: fatal error: mm_malloc.h: No such file or directory
compilation terminated.
Makefile:1611: recipe for target 'lyra2/cpuminer-Lyra2.o' failed
make[5]: *** [lyra2/cpuminer-Lyra2.o] Error 1
make[5]: Leaving directory '/usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3'
Makefile:2348: recipe for target 'all-recursive' failed
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory '/usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3'
Makefile:558: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3'
Makefile:42: recipe for target '/usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3/.built' failed
make[2]: *** [/usr/openwrt-cc/lede-trunk/build_dir/target-arm_cortex-a15+neon-vfpv4_musl-1.1.16_eabi/cpuminer/cpuminer-1.3.3/.built] Error 2
make[2]: Leaving directory '/usr/openwrt-cc/lede-trunk/package/github/cpuminer'
package/Makefile:106: recipe for target 'package/github/cpuminer/compile' failed
make[1]: *** [package/github/cpuminer/compile] Error 2
make[1]: Leaving directory '/usr/openwrt-cc/lede-trunk'
Build failed - please re-run with -j1 to see the real error message
/usr/openwrt-cc/lede-trunk/include/toplevel.mk:197: recipe for target 'package/github/cpuminer/compile' failed
As we see, the error information is lyra2/Lyra2.c:24:23: fatal error: mm_malloc.h: No such file or directory
and I try to find the same issue in other project. But it not useful because I didn't add the -march=native
option as compile.
How can I run it in ARM?
No go.
Hello, I have a problem in making.
the libcurl and openssl is already installed:
$ curl --version
curl 7.21.7 (x86_64-w64-mingw32) libcurl/7.21.7 OpenSSL/1.0.2k
Protocols: dict file ftp ftps gopher http https imap imaps ldap pop3 pop3s rtsp smtp smtps telnet tftp
Features: Largefile NTLM SSL TLS-SRP
$ openssl
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
OpenSSL> exit
The output of make is :
$ make
make all-recursive
make[1]: Entering directory `/home/sl/cpuminer-xzc'
Making all in compat
make[2]: Entering directory `/home/sl/cpuminer-xzc/compat'
Making all in jansson
make[3]: Entering directory `/home/sl/cpuminer-xzc/compat/jansson'
depbase=`echo dump.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT dump.o -MD -MP -MF $depbase.Tpo -c -o dump.o dump.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo error.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT error.o -MD -MP -MF $depbase.Tpo -c -o error.o error.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo hashtable.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT hashtable.o -MD -MP -MF $depbase.Tpo -c -o hashtable.o hashtable.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo load.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT load.o -MD -MP -MF $depbase.Tpo -c -o load.o load.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo memory.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT memory.o -MD -MP -MF $depbase.Tpo -c -o memory.o memory.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo pack_unpack.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT pack_unpack.o -MD -MP -MF $depbase.Tpo -c -o pack_unpack.o pack_unpack.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo strbuffer.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT strbuffer.o -MD -MP -MF $depbase.Tpo -c -o strbuffer.o strbuffer.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo strconv.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT strconv.o -MD -MP -MF $depbase.Tpo -c -o strconv.o strconv.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo utf.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT utf.o -MD -MP -MF $depbase.Tpo -c -o utf.o utf.c &&\
mv -f $depbase.Tpo $depbase.Po
depbase=`echo value.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -Icompat/pthreads -march=native -I/usr/local/include -MT value.o -MD -MP -MF $depbase.Tpo -c -o value.o value.c &&\
mv -f $depbase.Tpo $depbase.Po
rm -f libjansson.a
ar cru libjansson.a dump.o error.o hashtable.o load.o memory.o pack_unpack.o strbuffer.o strconv.o utf.o value.o
ranlib libjansson.a
make[3]: Leaving directory `/home/sl/cpuminer-xzc/compat/jansson'
make[3]: Entering directory `/home/sl/cpuminer-xzc/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/sl/cpuminer-xzc/compat'
make[2]: Leaving directory `/home/sl/cpuminer-xzc/compat'
make[2]: Entering directory `/home/sl/cpuminer-xzc'
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -Wno-pointer-sign -Wno-pointer-to-int-cast -Wl,--stack,10485760 -Icompat/pthreads -march=native -I/usr/local/include -I/local/include -MT cpuminer-cpu-miner.o -MD -MP -MF .deps/cpuminer-cpu-miner.Tpo -c -o cpuminer-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
mv -f .deps/cpuminer-cpu-miner.Tpo .deps/cpuminer-cpu-miner.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -Wno-pointer-sign -Wno-pointer-to-int-cast -Wl,--stack,10485760 -Icompat/pthreads -march=native -I/usr/local/include -I/local/include -MT cpuminer-util.o -MD -MP -MF .deps/cpuminer-util.Tpo -c -o cpuminer-util.o `test -f 'util.c' || echo './'`util.c
mv -f .deps/cpuminer-util.Tpo .deps/cpuminer-util.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -Wno-pointer-sign -Wno-pointer-to-int-cast -Wl,--stack,10485760 -Icompat/pthreads -march=native -I/usr/local/include -I/local/include -MT cpuminer-api.o -MD -MP -MF .deps/cpuminer-api.Tpo -c -o cpuminer-api.o `test -f 'api.c' || echo './'`api.c
mv -f .deps/cpuminer-api.Tpo .deps/cpuminer-api.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -Wno-pointer-sign -Wno-pointer-to-int-cast -Wl,--stack,10485760 -Icompat/pthreads -march=native -I/usr/local/include -I/local/include -MT cpuminer-sysinfos.o -MD -MP -MF .deps/cpuminer-sysinfos.Tpo -c -o cpuminer-sysinfos.o `test -f 'sysinfos.c' || echo './'`sysinfos.c
mv -f .deps/cpuminer-sysinfos.Tpo .deps/cpuminer-sysinfos.Po
g++ -DHAVE_CONFIG_H -I. -fno-strict-aliasing -I./compat/jansson -I. -g -O2 -MT cpuminer-uint256.o -MD -MP -MF .deps/cpuminer-uint256.Tpo -c -o cpuminer-uint256.o `test -f 'uint256.cpp' || echo './'`uint256.cpp
In file included from uint256.cpp:7:0:
miner.h:33:23: fatal error: curl/curl.h: No such file or directory
#include <curl/curl.h>
^
compilation terminated.
Makefile:2185: recipe for target `cpuminer-uint256.o' failed
make[2]: *** [cpuminer-uint256.o] Error 1
make[2]: Leaving directory `/home/sl/cpuminer-xzc'
Makefile:2248: recipe for target `all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sl/cpuminer-xzc'
Makefile:460: recipe for target `all' failed
make: *** [all] Error 2
And I also put libcurl.m4 in /share and curl-config in /bin
$ find / -name libcurl.m4
/home/sl/curl-7.21.7/curl-7.21.7/docs/libcurl/libcurl.m4
/share/aclocal/libcurl.m4
/share/aclocal-1.12/libcurl.m4
sl@DESKTOP-TQ90JBU ~/cpuminer-xzc
$ find / -name curl-config
/bin/curl-config
/home/sl/curl-7.21.7/curl-7.21.7/curl-config
/local/bin/curl-config
But I have a problem in making, in fact, I can find the curl/curl.h in /local/include .
$ find / -name curl.h
/home/sl/cpuminer-xzc/compat/curl-for-windows/curl/include/curl/curl.h
/home/sl/curl-7.21.7/curl-7.21.7/include/curl/curl.h
/local/include/curl/curl.h
Please help me !!!
Thanks!!!
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.