fireworm71 / veriumMiner

veriumMiner for solomining and pools
Other
59 stars 36 forks source link

unable to compile on aarch64 #23

Open genewitch opened 6 years ago

genewitch commented 6 years ago

https://paste.pound-python.org/show/8hsyjbC10YPtFCT5JjMz/

relevant portion: 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 crypto/cpuminer-oaes_lib.o crypto/cpuminer-aesb.o algo/cpuminer-scrypt.o algo/cpuminer-sha2.o -lcurl -lz -lssl -lcrypto -ljansson -lpthread
Makefile:604: recipe for target 'cpuminer' failed make[2]: Leaving directory '/home/pine64/veriumMiner' Makefile:986: recipe for target 'all-recursive' failed make[1]: Leaving directory '/home/pine64/veriumMiner' Makefile:458: recipe for target 'all' failed util.c: In function ‘stratum_handle_method.constprop’: sysinfos.c:122:2: error: impossible constraint in ‘asm’ asm volatile("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "a"(functionnumber), "c"(0)); ^ sysinfos.c:122:2: error: impossible constraint in ‘asm’ asm volatile("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "a"(functionnumber), "c"(0)); ^ sysinfos.c:122:2: error: impossible constraint in ‘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.

I will answer whatever questions you may have!

fireworm71 commented 6 years ago

What hardware are you compiling on? Odroid? Pine64? also, can you paste the output of gcc -dM -E - < /dev/null and gcc -v?

rollmeister commented 6 years ago

Try... git clean -xdf && make distclean

./configure CFLAGS="-O3 -march=armv8-a -flto -fuse-linker-plugin" CXXFLAGS="-O3 -march=armv8-a -flto -fuse-linker-plugin" RANLIB="ranlib --plugin=$(gcc --print-file-name=liblto_plugin.so)" ARFLAGS="cr --plugin=$(gcc --print-file-name=liblto_plugin.so)" --with-curl --with-crypto

make RANLIB="ranlib --plugin=$(gcc --print-file-name=liblto_plugin.so)" ARFLAGS=" cr --plugin=$(gcc --print-file-name=liblto_plugin.so)" LDFLAGS="-O3 -march=armv8-a -flto -fuse-linker-plugin" AR="ar"