mimblewimble / grin-miner

Standalone miner for grin
Apache License 2.0
296 stars 155 forks source link

Build on ARM machine failed #255

Open FergusFettes opened 3 years ago

FergusFettes commented 3 years ago

Hi all! This is probably not the most urgent thing, but I wanted to try running the miner on an NVIDIA Jetson Nano and the build failed.

Worth noting that the rust build for the grin node passed, here is the version information from the grin node: This is Grin version 4.2.0-alpha.1 (git v4.0.0-36-gdc47bed), built for aarch64-unknown-linux-gnu by rustc 1.46.0 (04488afe3 2020-08-24).

I tried poking around in the cmake files to see where I could switch off the broken flags but I wasn't sure where to start as grepping for them in the relevant folder turned up lots of results:

ffettes@jetson01:~/grin/grin-miner/target/debug/build/cuckoo_miner-74177a3f916aa48b$ grep -rE "m64" . | wc 56 758 14737

here is the relevant part of the debug:

--- stderr c++: error: unrecognized command line option ‘-m64’ c++: error: unrecognized command line option ‘-mno-avx2’; did you mean ‘-Wno-a,’? make[2]: *** [CMakeFiles/cuckarood_cpu_compat_29.dir/cuckoo/src/cuckarood/mean.cpp.o] Error 1 make[1]: *** [CMakeFiles/cuckarood_cpu_compat_29.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [all] Error 2 thread 'main' panicked at ' command did not execute successfully, got: exit code: 2

and attached is the full debug. build.txt

quentinlesceller commented 3 years ago

Hi @FergusFettes :) pretty cool ! I think this is related to the cuckarood mean solver. Which is now useless. Can you replace this line in Cargo.toml https://github.com/mimblewimble/grin-miner/blob/master/Cargo.toml#L39-L40 ? The solver that is not working is here https://github.com/tromp/cuckoo/tree/master/src. Let me know how it goes :)