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

Error when compiling fresh project #361

Closed
Flamabalistic opened this issue Jan 9, 2024 · 7 comments
Closed

Error when compiling fresh project #361

Flamabalistic opened this issue Jan 9, 2024 · 7 comments

Comments

@Flamabalistic
Copy link

I've just started a new std project, following the instructions in https://esp-rs.github.io/book, and I'm having trouble getting the template to compile.

I've created the template using cargo generate esp-rs/esp-idf-template cargo -> esp32s2 -> use default options. I have not made any changes after this.

When running cargo run, I receive the following error:

error[E0425]: cannot find value `g_wifi_feature_caps` in this scope
   --> C:\Users\torna\.cargo\registry\src\index.crates.io-6f17d22bba15001f\esp-idf-svc-0.47.3\src\wifi.rs:498:36
    |
498 |             feature_caps: unsafe { g_wifi_feature_caps },
    |                                    ^^^^^^^^^^^^^^^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `esp-idf-svc` (lib) due to previous error

Additional notes:

  • I've tried with the master branch, yielding the same issue.
  • I've tried with no-std, and it works as expected
@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Jan 9, 2024

thanks for reporting, there seams to be some problems with respect to psram. Some updates where made in upstream esp-idf but not backported yet.

Could you try setting CONFIG_ESP32_SPIRAM_SUPPORT=n or CONFIG_SPIRAM_IGNORE_NOTFOUND=y in the sdkconfig.default file and rebuild with that options.

We will see in the meantime if we can salvage the situation with maybe some conditional foo added here.

Some meta info -> here is longterm fix deployed
More meta info -> here

@Flamabalistic
Copy link
Author

I tried placing CONFIG_ESP32_SPIRAM_SUPPORT=n, and CONFIG_SPIRAM_IGNORE_NOTFOUND=y in sdkconfig.defaults, same issue.

I also tried putting just one in and building, then putting just the other in and building, which also didn't work.

I'm relatively new, so just to make sure I'm doing this right, I'm:

  • cargo clean
  • Add the relevant line to sdkconfig.defaults
  • cargo build

In case it helps with tracking the problem, it's apparently been around since at least Dec 25 - being reported here

@SuddenlyHazel
Copy link

Hitting the same issue with esp32c3

As temporary workaround - I found creating a new project from without default settings, and selecting the 4.4 version builds successfully.

@ivmarkov
Copy link
Collaborator

In case it helps with tracking the problem, it's apparently been around since at least Dec 25 - being reported here

On the positive side, our bug reports hit Reddit now!!

Seriously speaking, this would be fixed shortly (as in today, latest tmr). A bit stuck on the just-released e-hal 1.0 and waiting for the new embassy-time.

After that, we'll publish a new version of esp-idf-sys/hal/svc where this problem will be addressed.

@ivmarkov
Copy link
Collaborator

Bug-fixing commit - for reference: esp-rs/esp-idf-svc@efa0e75

@ivmarkov
Copy link
Collaborator

By the way folks (@Flamabalistic @SuddenlyHazel) the easiest way to escalate issues like that is the Matrix chat which is linked-in the README of this crate, rather than Reddit.

@Flamabalistic
Copy link
Author

Good to know! (The reddit post isn't mine BTW, I just found it when looking for people with the same issue)

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

No branches or pull requests

4 participants