-
Notifications
You must be signed in to change notification settings - Fork 672
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
cargo build fails on Raspberry Pi3B. "Unsupported target architecture" for sha2-asm. #1278
Comments
Thanks @dantrevino. I think the fix here is going to be making it so Cargo uses |
My understanding is that there is no way, currently, to dynamically include/exclude architecture-dependent features. It looks like rust-lang is tracking a fix for this in their nightly branch but implementation timeline seems indeterminate. #7914. In the meantime, I've been able to consistently get working binaries for ARMv7 by removing the 'asm' feature and cross-compiling via cross. I've documented the steps here: https://gitlab.com/riot.ai/stacks-blockchain-rpi/-/blob/master/README-Cross.md Simply removing the 'asm' feature and trying to build directly on Pi has not worked for me yet. I'm still working on testing different hardware variations. |
Just following up ... building directly on a Pi3B fails consistently with either unable to allocate memory, or over-heating. Confirmed by myself and @fluidvoice that build normally hits 2GB-ish of memory usage. Typical failure looks like:
|
Confirm stacks blockchain builds and runs fine on a Pi 4B with >= 2GB of RAM, with removal of "asm" from sha2 features. |
So how do I get around this compile problem? I have Ubuntu 19.10.1 running fine on my Pi4 now. |
Sorry it's not spelled out clearly. As @jcnelson mentions above you have to remove the 'asm' feature from Cargo.toml and use plain old sha2. Until a better workaround can be submitted as a PR here, I'm maintaining an up-to-date mirror with the change in my gitlab repo mentioned above. |
ah ok. I've never used Rust before so needed to find what explicitly to do, namely commenting out this line. The build completed OK now on my Pi 4B 4GB RAM on Ubuntu 19.10.1 Mate DE.
|
Mainly for visibility. Not a bug in blockstack-core.
We ran into this while trying to build on Raspberry Pi.
The text was updated successfully, but these errors were encountered: