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

hardware-check build fails with "unknown target riscv32imc_zicsr_zifencei-esp-espidf" #266

Open
tojikomori opened this issue Nov 3, 2024 · 3 comments

Comments

@tojikomori
Copy link

The hardware-check fails to build, dying with the error:

error occurred: unknown target riscv32imc_zicsr_zifencei-esp-espidf

Gist with full output.

Calling rustc --print=target-list I see riscv32imc-esp-espidf but not riscv32imc_zicsr_zifencei-esp-espidf

I also tried the docker container but to my surprise I saw the same error there too.

My host environment is x86 Linux 6.9.3, Pop OS 24.04 noble (Ubuntu derived)

@Vollbrecht
Copy link
Contributor

yeah that is a regression introduced by the latest release of the cc-rs crate yesterday. We don't directly depend on it but do so through the cmake crate and thous can't pin the dependency.

In order to make it work you need to add a cc version < 1.1.32 explicitly into your binary Cargo.toml as a dependancy. That should make it work.

@tojikomori
Copy link
Author

Thanks! Adding cc 1.1.31 resolved this for now.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Nov 3, 2024
@SergioGasquez SergioGasquez reopened this Nov 5, 2024
@github-project-automation github-project-automation bot moved this from Done to In Progress in esp-rs Nov 5, 2024
@SergioGasquez
Copy link
Member

Will keep this open until rust-lang/cmake-rs#225 is merged, once merged and released, this should be fixed

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

No branches or pull requests

3 participants