Skip to content

Fail to compile in riscv because of cpufeatures unconditional dependency #9

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

Closed
come-maiz opened this issue Jul 24, 2024 · 4 comments
Closed

Comments

@come-maiz
Copy link
Contributor

come-maiz commented Jul 24, 2024

I'm trying to build the lighthouse ethereum client in a risc-v unmatched board, and it fails with:

Compiling cpufeatures v0.2.12
error: This crate works only on `aarch64`, `loongarch64`, `x86`, and `x86-64` targets.
   --> /home/come-maiz/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpufeatures-0.2.12/src/lib.rs:152:1
    |
152 | compile_error!("This crate works only on `aarch64`, `loongarch64`, `x86`, and `x86-64` targets.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

I requested cpufeatures to support riscv, and they suggested to open an issue here to make it's dependency conditional on the architecture:

RustCrypto/utils#1087 (comment)

@michaelsproul
Copy link
Member

Are you already acquainted with @haurog ? Maybe you could work together:

@haurog
Copy link
Contributor

haurog commented Jul 24, 2024

I pinged @come-maiz on the Ethereum-on-arm discord. Working together to get clients run on RISC-V is exciting.

@come-maiz
Copy link
Contributor Author

nice, let's be friends @haurog :D

@come-maiz
Copy link
Contributor Author

Thank you @michaelsproul

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

3 participants