Fix workflow for latest ESP-IDF for espressif examples #9141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The Espressif examples began failing today in GitHub workflow with the "docker latest" image. (un-released ESP-IDF v6.0, latest stable is v5.5)
The core compiler problem was some diagnostic memory tools. As a brute-force solution to get workflow working again, I've simply disabled the features for ESP-IDF v6.0 in the
esp_sdk_mem_lib.cfile.Unexpected, and not reproduced locally - was a massive number of linker errors:
... as seen in one of the prior workflows. This was resolved with conditional CMake criteria for only the Xtensa devices and only on the ESP-IDF v6.0 using a
-mlongcallscompiler options: once for the main application, and then again for all components.Post-Merge Update Notes
I've confirmed my local
idf.py builddoes add the-mlongcallsin numerous places in the build directory. I've not yet determined why GitHub actions needed to have it added manually in this PRCMakeLists.txtproject files only for IDF v6.0.Fixes zd# n/a
Testing
See my https://github.com/gojimmypi/wolfssl/actions/workflows/docker-Espressif.yml
Checklist