Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build on ARM machine failed #255

Open
FergusFettes opened this issue Sep 20, 2020 · 1 comment
Open

Build on ARM machine failed #255

FergusFettes opened this issue Sep 20, 2020 · 1 comment

Comments

@FergusFettes
Copy link

FergusFettes commented Sep 20, 2020

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
Copy link
Member

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants