-
Notifications
You must be signed in to change notification settings - Fork 130
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
Add cpufeatures support for risc-v #1087
Comments
I think the culprit in your project is the See here for usage: https://github.com/sigp/ethereum_hashing/blob/b6b5ff2d8db972ee6453a710e82aee3c638d5d82/src/lib.rs#L130 The real solution to your immediate problem is to open an issue on the We can leave this issue open to discuss prospective RISC-V support, but my understanding is it would require complex OS interactions similar to ARM because the runtime CPU feature detection instructions are protected. |
Thanks for all the details @tarcieri. I think we will have it fixed in lighthouse soon :) I have access to a few riscv boards, so with patience and guidance I can contribute adding support in cpufeatures. I'll start by studying more about these boards. |
IIUC you have to use the |
https://github.com/rust-lang/libc/blob/main/src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs#L549C11-L549C29 seems that it is already being exposed. |
I'm trying to build the lighthouse ethereum client in a risc-v unmatched board, and it fails with:
Please add support for the risc-v architecture.
The text was updated successfully, but these errors were encountered: