-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Linking completely breaks on 3.0.0(-rc1) #9562
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
Comments
@rhysperry111 - It is not fully clear to me what is the issue. Please depict it further. Arduino Core 3.0.0 has many breaking changes when compared to 2.0.x. https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html Regarding |
The project compiles and links perfectly fine in v2.0.x (apart from the ledcAttach bit, but that's expected), however under v3.0.0 it fails to even link things like |
OK, so the issue happens when using Reading the logs, I think that it would be good to clear all cache, compiled binary folders, etc and start a new fresh build for Core 3.0.0. There are many changes in IDF, library folders and others that may be picking up remainings binaries from 2.0.14 and using it to link the 3.0.0 version. |
I've cleared as many caches as I can find, and also |
maybe @me-no-dev may take a look into the logs and quickly see the issue related to using |
I'd provide the source files if I could, but the files OpenPLC generates tend to be a bit of a mess and scattered over a few locations |
You are overwriting some things that we use: https://github.com/espressif/arduino-esp32/blob/master/platform.txt#L66-L67 Just add those to your custom extra flags and it should be fine |
Holy crap you're a lifesaver <3 Thanks for solving the issue, it's genuinely appreciated Is this worth mentioning in the migration guide since it seems to have changed behavior since the 2.0.x releases? |
Sure thing! @VojtechBartoska please make sure this ends up in the migration guide. cc @P-R-O-C-H-Y @lucasssvaz |
Reopening to remind us that documentation update is needed. |
I had open an issue about it... #9566 |
Lets close both issues with new PR with docs update. |
Board
UM TinyS3
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino CLI
Operating System
Linux (rolling release, up-to-date)
Description
When building a project when using 3.0.0 (in order to make use of the new ledcAttach function) it seems to fail with linking the majority of functions.
I have attached verbose build logs (and the build command) compiling with 2.0.11 vs 3.0.0-rc1.
arduino-cli compile -v --export-binaries --libraries=editor/arduino --build-property compiler.c.extra_flags="-Ieditor/arduino/src/lib" --build-property compiler.cpp.extra_flags="-Ieditor/arduino/src/lib" -b esp32:esp32:esp32s3 editor/arduino/examples/Baremetal/Baremetal.ino
v3.0.0-rc1.buildlog2.txt
v2.0.11.buildlog.txt
Currently blocking: thiagoralves/OpenPLC_Editor#106
Sketch
- Unable to upload, large project, generated by OpenPLC -
Debug Message
v3.0.0-rc1.buildlog2.txt
v2.0.11.buildlog.txt
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: