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
Build error with mismatched types on ESP_IDF_TIME64_CHECK #137
Comments
Using ESP IDF 5 needs a very small upstream change to Rust STD where STD's In the meantime, unless you absolutely depend on ESP IDF 5, you can switch to ESP IDF 4.4, which is the "most stable" release anyway. The changes from Rust POV between ESP IDF 5 and 4.4 are negligible. |
Adding |
The upstream change got merged, closing. |
@ivmarkov , can you link the upstream change that was necessary for this? I'm curious as to what was necessary besides rust-lang/libc#2913 |
This: https://github.com/rust-lang/rust/blob/master/library/std/Cargo.toml#L18 Basically, Rust stdlib itself had to be updated to depend on a newer version of the libc crate. Cargo is not really following the package versioning resolution across your own crates and STD. |
Versions
esp-idf-sys version: 0.31.9
embuild version: 0.30.4
esp-idf version: branch:release/v5.0
Details
When building without espidf_time64 rustflag, build error with mismatched types on ESP_IDF_TIME64_CHECK and ESP_IDF_TIME64_CHECK_LIBC.
With espidf_time64 rustflag, build error with mismatched types just on ESP_IDF_TIME64_CHECK.
Between each build,
cargo clean
is done.Console output
config.toml
Cargo.toml
The text was updated successfully, but these errors were encountered: