-
Notifications
You must be signed in to change notification settings - Fork 117
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
Linking fails with symbol atexit
undefined for target xtensa-esp32s2-espidf
#214
Comments
Thanks for reporting and the minimal reproducible example! When testing did you try to build against other esp-idf versions that are not 5.0.2 e.g 4.4 or 5.1 ? Also probably not related but you only tested it with xtensa1.70 not 1.69 or a other version? |
Hey, sorry for the late response. I tried with a few other esp-idf versions:
|
Hi, for me it also fail with v4.4.6. Do you have any suggestions? What could be the reason for this? |
A: Is your error the "exact" same error
B: If not post your "exact" error with enough information in a separate issue |
Also having the same issue whenever I use anything from
Also tried with Crate generated from template with
|
I get the same
Stack backtrace:
An empty main() links fine, I located the part that would cause the error when included:
More precisely, it's the nvs init, I put together the minimal code and ran it on Actions: https://github.com/wzhd/link-no-atexit/actions/runs/6726578699/job/18283082241 |
please run the same .config.toml as our esp-idf-template e.g add |
I see, It works almost perfectly without |
Minimal reproducible example: https://github.com/Shemnei/esp32s2-nvs-linker-failure
Linking fails when calling the function
esp_idf_sys::nvs_flash_init_partition
on targetxtensa-esp32s2-espidf
with the following error:Versions used:
esp-idf
:v5.0.2
embuild
:0.31.2
esp-idf-sys
:0.33.1
toolchain
:1.70
(installed byespup
)The exact same setup compiles fine for the following targets:
xtensa-esp32-espidf
xtensa-esp32s3-espidf
If anyone can point into the right direction, i would be happy to help with fixing this.
The text was updated successfully, but these errors were encountered: