esp-rs / std-training

Embedded Rust on Espressif training material.
https://esp-rs.github.io/std-training
Apache License 2.0
610 stars 79 forks source link

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

Open tojikomori opened 4 days ago

tojikomori commented 4 days ago

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 commented 4 days ago

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 commented 4 days ago

Thanks! Adding cc 1.1.31 resolved this for now.

SergioGasquez commented 1 day ago

Will keep this open until https://github.com/rust-lang/cmake-rs/pull/225 is merged, once merged and released, this should be fixed