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

IDF 5.1.2 fails to build with a bunch of invalid conversion from 'int' to 'spi_event_t' [-fpermissive] error (IDFGH-11718) #12825

Closed
3 tasks done
idea--list opened this issue Dec 18, 2023 · 1 comment
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@idea--list
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.1.2

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

What is the expected behavior?

I expected updating my project to IDF 5.1.2 will not a cause major break.

What is the actual behavior?

When trying to build my C++ project i get a bunch of
IDF 5.1.2 fails to build with a bunch of invalid conversion from 'int' to 'spi_event_t' [-fpermissive] error
messages while building the project.

After some trial&error i find after commenting out both #include "esp_sleep.h" and esp_sleep_enable_gpio_wakeup() in my code, the project builds fine again.

So it seems esp_sleep.h of IDF 5.1.2 has changed in a breaking way

Steps to reproduce.

  1. Write a basic C++ project that includes esp_sleep.h and uses esp_sleep_enable_gpio_wakeup().
  2. try to build that with IDF v5.1.2

Build or installation Logs.

C:/Espressif/frameworks/esp-idf-v5.1.2/components/esp_common/include/esp_attr.h:155:61: error: invalid conversion from 'int' to 'spi_event_t' [-fpermissive]

More Information.

No response

@idea--list idea--list added the Type: Bug bugs in IDF label Dec 18, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 18, 2023
@github-actions github-actions bot changed the title IDF 5.1.2 fails to build with a bunch of invalid conversion from 'int' to 'spi_event_t' [-fpermissive] error IDF 5.1.2 fails to build with a bunch of invalid conversion from 'int' to 'spi_event_t' [-fpermissive] error (IDFGH-11718) Dec 18, 2023
@idea--list
Copy link
Author

Just tried to build the light sleep example bundled to IDF 5.1.2 and builds fine. Even if converted to C++.
Seems the root of the issue is not in ESP-IDF core, but in some other part of my project. Will need to review my code.

@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Opened Issue is new labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

4 participants