lucasjones / cpuminer-multi

Multi-algo CPUMiner & Reference Cryptonote Miner (JSON-RPC 2.0)
Other
640 stars 1.5k forks source link

LIBCURL Error #104

Open asanchez500 opened 6 years ago

asanchez500 commented 6 years ago

Hello am trying to compile for powerpc64 architecture by cross compiling with GCC. Basically:

git clone https://github.com/virtual-coin/wolf-cpuminer-multi cd wolf-cpuminer-multi ./configure --host=powerpc64-linux-gnu --prefix=$PREFIX --with-termlib CPPFLAGS=-P make make install

It almost finishes configuring but fails to due a LIBCURL error? Do you think I need to install the Curl library or something?

This is the actual error:

./configure: line 5603: syntax error near unexpected token ',' ./configure line 5603: 'LIBCURL_CHECK_CONFIG(, 7.15.2, , '

DarrenRainey commented 6 years ago

Comment out lines 5602 and 5603 then edit the Makefile and add -lcurl to lines 446 and 447 in the Makefile.

asanchez500 commented 6 years ago

So configuring went over well. I guess it just doesn't support PPC64. According to the make error I am getting. Different processor opcode or something. Must be hard to fix:

root@debianz:~/Desktop/cpuminer-multi# make make all-recursive make[1]: Entering directory '/root/Desktop/cpuminer-multi' Making all in compat make[2]: Entering directory '/root/Desktop/cpuminer-multi/compat' make[3]: Entering directory '/root/Desktop/cpuminer-multi/compat' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/root/Desktop/cpuminer-multi/compat' make[2]: Leaving directory '/root/Desktop/cpuminer-multi/compat' make[2]: Entering directory '/root/Desktop/cpuminer-multi' gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -std=gnu11 -O3 -march=native -fPIC -flto -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 mv -f .deps/minerd-cpu-miner.Tpo .deps/minerd-cpu-miner.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -std=gnu11 -O3 -march=native -fPIC -flto -MT minerd-util.o -MD -MP -MF .deps/minerd-util.Tpo -c -o minerd-util.o test -f 'util.c' || echo './'util.c mv -f .deps/minerd-util.Tpo .deps/minerd-util.Po gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing -std=gnu11 -O3 -march=native -fPIC -flto -MT minerd-wildkeccak.o -MD -MP -MF .deps/minerd-wildkeccak.Tpo -c -o minerd-wildkeccak.o test -f 'wildkeccak.c' || echo './'wildkeccak.c In file included from wildkeccak.c:16:0: reciprocal_div64.h: In function ‘reciprocal_value64’: reciprocal_div64.h:32:11: error: ‘int128’ is not supported on this target unsigned int128 m; ^~~~ reciprocal_div64.h:41:18: error: ‘int128’ is not supported on this target m = (((unsigned int128)1 << 64) ((1ULL << l) - d)); ^~~~ reciprocal_div64.h:41:29: warning: left shift count >= width of type [-Wshift-count-overflow] m = (((unsigned __int128)1 << 64) ((1ULL << l) - d)); ^~ reciprocal_div64.h: In function ‘reciprocal_divide64’: reciprocal_div64.h:53:27: error: ‘int128’ is not supported on this target u64 t = (u64)(((unsigned int128)a R.m) >> 64); ^~~~ reciprocal_div64.h:53:45: warning: right shift count >= width of type [-Wshift-count-overflow] u64 t = (u64)(((unsigned __int128)a R.m) >> 64); ^~ wildkeccak.c: In function ‘wildkeccak’: wildkeccak.c:106:2: warning: #warning using SSE2 optimizations [-Wcpp]

warning using SSE2 optimizations

^~~ Makefile:554: recipe for target 'minerd-wildkeccak.o' failed make[2]: [minerd-wildkeccak.o] Error 1 make[2]: Leaving directory '/root/Desktop/cpuminer-multi' Makefile:631: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/root/Desktop/cpuminer-multi' Makefile:401: recipe for target 'all' failed make: *** [all] Error 2

If anyone knows anything I can do please let me know. Thank you.

DarrenRainey commented 6 years ago

I think the problem is that its trying to use SSE2 which doesn't exist on PowerPC as far as I know.

juanpc2018 commented 6 years ago

Altivec is SSE for PPC, see Wikipedia, but Not all PPC have Altivec, for example the AmigaOne X5000 board, https://en.wikipedia.org/wiki/AltiVec

PPC also does Not have ECC Memory correction, when Virginia Tech build a supercomputer cluster with 1100 G5 DP 2Ghz, using pouch software to link all PPC´s the Linpack score was Top3 in the World, in the Top500 of that year, but… when doing real scientific computations, failed because missing ECC Memory,

that was the final stabbing for G5, and the reason why Apple decided to make intel Mac Pros with ECC, also why Apple discontinued Xserver.

doing Cinebench 2003 G5 optimized was very similar to Intel of that time, around 250points 1cpu, >700 DP 2.7GHz, 685 the 2.5GHz, 625 the 2.0GHz, or something like that,

my Surface Pro 2 tablet kills a G4 DP 1.25… in cinebench 2003 64-bit, makes 700/3000, the G4 250 DP, 125 1 cpu. but the cinebench 2003 32-bit GPU test does Not work in 64-bit OS like Win8.1x64, Needs the 64-Bit version… All available in Way Back, https://web.archive.org/web/*/http://http.maxon.net/pub/benchmarks/*

same location as the latest cinebench r15, but different file name… cinebench_2003_g5.sit “the final version was a tiny bit faster than g5 beta" cinebench_2003_64.zip or something, for Windows are.zip