-
Notifications
You must be signed in to change notification settings - Fork 175
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 failure for some pthread stuff #289
Comments
Hmm. I changed |
I'm running into the same issue as well, but I'm trying to use Steps to reproduce:
(using `master` gives different error)Changing to
|
please don't use esp-idf master branch as it is absolutely only for active development, its api is unstable and we don't make any efforts here in esp-idf-sys to have it reliable build against it. |
(ping @ivmarkov, would you be able to reopen this one please? 🙏) |
@Vollbrecht to clarify, the error and steps to reproduce happens on 5.1.1, I only included the part about edit: I've updated my comment to hide the |
the latest current stable release is v5.1.2 can you test against it? |
I'm not reopening until it is confirmed that the issue is in
Rather than doing back-and-forth here, please publish a mini project that reproduces the error somewhere. |
BTW the CI of this does pass (MCU=esp32c3), and it does use what you are trying to use. ESP IDF |
Good points, I've uploaded a repo now: https://github.com/LinusU/esp32-pthread-issue
I used the one from the
I'm building for the I'm also building on macOS 14.2.1, using edit: getting the same issue with |
No, that's good enough. I'll try to build tmr. |
Remove It used to be necessary in the past (helped the linker find some intrinsics), with earlier ESP IDF SDKs, but with newer ESP IDF toolchains seems to be creating problems rather than solving ones. Not really sure why that happens, but my guess would be that the newer cross toolchains of newer ESP IDFs contain a fake/alternative implementation of |
Thank you 🙏 🙏 removing |
Minimal reproduction case:
sync
feature to tokiomultiple definition of
pthread stuffI'm not sure why
<PROJECT_DIR>/.embuild/espressif/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/lib/rv32imc_zicsr_zifencei/ilp32/no-rtti/libnosys.a
is linking withesp-idf/pthread/libpthread.a
...Plus some pthread functions are implemented in ESP-IDF but they also showed up as not implemented and will always fail.I'm not sure if
mold
andsccache
mattered here...The text was updated successfully, but these errors were encountered: