JayDDee / cpuminer-opt

Optimized multi algo CPU miner
Other
765 stars 543 forks source link

Raspberry Pi support #345

Closed tollgen closed 2 years ago

tollgen commented 2 years ago

Hi,

Could you add support for runing on raspberry pis? Just tested there on pi4 and building the docker image getting below error

In file included from ./algo-gate-api.h:8:0,
                 from algo/sha/sha256d.h:1,
                 from cpu-miner.c:41:
./simd-utils.h:142:23: fatal error: immintrin.h: No such file or directory
compilation terminated.
Makefile:2548: recipe for target 'cpuminer-cpu-miner.o' failed
make[2]: *** [cpuminer-cpu-miner.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from algo-gate-api.h:8:0,
                 from util.c:49:
simd-utils.h:142:23: fatal error: immintrin.h: No such file or directory
compilation terminated.
Makefile:2562: recipe for target 'cpuminer-util.o' failed
make[2]: *** [cpuminer-util.o] Error 1
In file included from algo-gate-api.h:8:0,
                 from algo-gate-api.c:18:
simd-utils.h:142:23: fatal error: immintrin.h: No such file or directory
compilation terminated.
Makefile:2604: recipe for target 'cpuminer-algo-gate-api.o' failed
make[2]: *** [cpuminer-algo-gate-api.o] Error 1
mv -f .deps/cpuminer-api.Tpo .deps/cpuminer-api.Po
make[2]: Leaving directory '/app'
Makefile:6477: recipe for target 'all-recursive' failed
make[1]: Leaving directory '/app'
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Makefile:985: recipe for target 'all' failed
strip: 'cpuminer': No such file
The command '/bin/sh -c cd /app/ && ./build.sh' returned a non-zero code: 1
JayDDee commented 2 years ago

cpuminer-opt is optimized for x86_64, Pi uses ARM. ARM and Pi support are specifically mentioned in the requirements as not supported and I have no intention of changing that. Youn can try tpruvot's cpuminer-multi for ARM support.