This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Failure to build for target riscv32imc-esp-espidf #63
Closed
Description
rust version = rustc 1.60.0-nightly (1e12aef3f 2022-02-13)
toolchain = nightly-aarch64-apple-darwin
target = riscv32imc-esp-espidf
might be related to this? esp-rs/embedded-svc@3e822e7
yogi@yogi-mac rust-esp32-std-demo % cargo build
Compiling esp-idf-sys v0.30.5
Compiling embedded-svc v0.16.8
error[E0034]: multiple applicable items in scope
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/utils/nonblocking/event_bus.rs:214:24
|
214 | CV::Mutex::new(SubscriptionState {
| ^^^ multiple `new` found
|
note: candidate #1 is defined in the trait `mutex::Mutex`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/mutex.rs:21:5
|
21 | fn new(data: Self::Data) -> Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `mutex::Condvar`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/mutex.rs:33:5
|
33 | fn new() -> Self;
| ^^^^^^^^^^^^^^^^^
help: disambiguate the associated function for candidate #1
|
214 | <_ as mutex::Mutex>::new(SubscriptionState {
| ~~~~~~~~~~~~~~~~~~~~~
help: disambiguate the associated function for candidate #2
|
214 | <_ as mutex::Condvar>::new(SubscriptionState {
| ~~~~~~~~~~~~~~~~~~~~~~~
error[E0609]: no field `0` on type `Arc<_>`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/utils/nonblocking/event_bus.rs:226:51
|
226 | let (mut state, condvar) = (state.0.lock(), &state.1);
| ^ unknown field
error[E0034]: multiple applicable items in scope
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/utils/nonblocking/mqtt/client.rs:174:37
|
174 | payload: CV::Mutex::new(Payload {
| ^^^ multiple `new` found
|
note: candidate #1 is defined in the trait `mutex::Mutex`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/mutex.rs:21:5
|
21 | fn new(data: Self::Data) -> Self;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `mutex::Condvar`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/mutex.rs:33:5
|
33 | fn new() -> Self;
| ^^^^^^^^^^^^^^^^^
help: disambiguate the associated function for candidate #1
|
174 | payload: <_ as mutex::Mutex>::new(Payload {
| ~~~~~~~~~~~~~~~~~~~~~
help: disambiguate the associated function for candidate #2
|
174 | payload: <_ as mutex::Condvar>::new(Payload {
| ~~~~~~~~~~~~~~~~~~~~~~~
error[E0284]: type annotations needed: cannot satisfy `<CV as mutex::Condvar>::Mutex<_> == _`
--> /Users/yogi/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-svc-0.16.8/src/utils/nonblocking/mqtt/client.rs:194:55
|
194 | payload = self.connection_state.processed.wait(payload);
| ^^^^ cannot satisfy `<CV as mutex::Condvar>::Mutex<_> == _`
Metadata
Metadata
Assignees
Labels
No labels