Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Build fails for xtensa-esp32-espidf because of error in esp-idf-svc #108

Closed
michidk opened this issue Jul 25, 2022 · 2 comments
Closed

Build fails for xtensa-esp32-espidf because of error in esp-idf-svc #108

michidk opened this issue Jul 25, 2022 · 2 comments

Comments

@michidk
Copy link
Contributor

michidk commented Jul 25, 2022

I followed the instructions and executed cargo build --target xtensa-esp32-espidf.
(Same with cargo +esp build --target xtensa-esp32-espidf and cargo +esp build --target xtensa-esp32-espidf --release)

Error:

error[E0308]: mismatched types
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/esp-idf-svc-0.42.0/src/ping.rs:36:18
   |
36 |             tos: conf.tos,
   |                  ^^^^^^^^ expected `i32`, found `u8`

For more information about this error, try `rustc --explain E0308`.
error: could not compile `esp-idf-svc` due to previous error
warning: build failed, waiting for other jobs to finish...

I use a rust:1-bullseye Docker container with the following setup:

apt-get install -y git curl gcc clang ninja-build cmake libudev-dev unzip xz-utils python3 python3-pip python3-venv libusb-1.0-0 libssl-dev pkg-config libtinfo5 libpython2.7

curl -LO https://github.com/esp-rs/rust-build/releases/download/v1.62.0.0/install-rust-toolchain.sh
chmod a+x install-rust-toolchain.sh

git clone https://github.com/esp-rs/rust-build.git
cd rust-build
./install-rust-toolchain.sh

rustup default esp
cargo install ldproxy
@michidk michidk changed the title Build fails for xtensa-esp32-espidf because of error in ping.rs Build fails for xtensa-esp32-espidf because of error in esp-idf-svc Jul 25, 2022
@brianmay
Copy link

I believe this should be fixed with esp-idf-svc 0.42.1; this needs to be updated to Cargo.toml

@michidk
Copy link
Contributor Author

michidk commented Jul 27, 2022

Yep, can confirm that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants