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

esp-idf-svc 0.51 compilation error #552

Closed
haijd opened this issue Jan 21, 2025 · 1 comment
Closed

esp-idf-svc 0.51 compilation error #552

haijd opened this issue Jan 21, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@haijd
Copy link

haijd commented Jan 21, 2025

Bug description

After I updated esp-idf-svc to the latest version 0.51.0, an error occurred when compiling the project.
The error is as follows:

error[E0599]: no method named `vtable` found for reference `&Waker` in the current scope
  --> /Users/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embassy-executor-0.7.0/src/raw/waker.rs:37:14
   |
37 |     if waker.vtable() as *const _ != &VTABLE as *const _ {
   |              ^^^^^^ method not found in `&Waker`

error[E0599]: no method named `data` found for reference `&Waker` in the current scope
  --> /Users/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/embassy-executor-0.7.0/src/raw/waker.rs:41:38
   |
41 |     unsafe { TaskRef::from_ptr(waker.data() as *const TaskHeader) }
   |                                      ^^^^ method not found in `&Waker`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `embassy-executor` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
    Building [======================>  ] 224/235: esp-idf-sys(build)
  • Would you like to work on a fix? [n]

To Reproduce

The version of esp-idf-svc is 0.51.0, and the enabled features are: "critical-section", "embassy-time-driver", "embassy-sync", "experimental"

Environment

  • Crate (esp-idf-svc) version: [0.51.0]
  • ESP-IDF branch or tag: [v5.2.3]
  • Target device (MCU): [esp32s3]
  • OS: [macOS]
@haijd haijd added the bug Something isn't working label Jan 21, 2025
@ivmarkov
Copy link
Collaborator

Update to Rust 1.84.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants