Repository navigation
fix(build): tombstone fl.system.sd+.cpp so in-place upgrades link (#4704) - #4714
Merged
Merged
Conversation
) 3.10.6 renamed the SD unity unit fl.system.sd+.cpp to fl.fs.sd+.cpp. Unpacking 3.10.6 over 3.10.5 kept the stale unit, and Arduino compiles every .cpp under src/, so fl::FileSystem::beginSd(int) was defined twice. Ship an empty file under the old name to overwrite it, exempt tombstones from the unity-build lint, and add a release-time check that every compiled source from the previous release still ships. Co-Authored-By: Claude <[email protected]>
3 tasks done
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (7)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #4704
Reproduction
The clean 3.10.6 tree has only one SD unit, so
bash compile uno_r4_wifi --examples Blinkpasses. The failure comes from installing 3.10.6 over 3.10.5. I extractedgit archive 3.10.5 srcinto a directory, extractedgit archive 3.10.6 srcon top, and compiled both SD unity units with host g++. Then I rang++ -ron the two objects:This is the same link error the user reported.
Root cause
3.10.4 and 3.10.5 shipped
src/fl/build/fl.system.sd+.cpp, which includesfl/system/sd/_build.cpp.hpp. #4010 renamed it tofl.fs.sd+.cppfor 3.10.6. Unpacking 3.10.6 over 3.10.5 ("Add .ZIP Library" or a manual copy) leaves the old unit and itsfl/system/sd/*.hppbehind. Arduino compiles every.cppundersrc/, so both units definebeginSd.Fix
src/fl/build/fl.system.sd+.cpp. An overlay install now overwrites the stale unit, and the stale.hppfiles are no longer compiled. With the file in the overlay, the reproduction gives one definition and links cleanly.ci/lint_cpp_rs) now skips the files listed inUNITY_TOMBSTONE_BUILD_FILES.ci/check_released_sources.py(with unit tests) fails if a.c,.cppor.Sfile undersrc/from the previous release tag is missing. It runs inrelease.ymlbefore tagging. Run against 3.10.6, it reportsfl.system.sd+.cpp(andasmpoly_gcc.S, which only builds on non-Thumb ARM and so is harmless).Validation
uno_r4_wifi,unoandteensy41, andesp32devbuilds both Blink and Fx/FxSdCard.bash test --cpppasses: 317 of 317 unit tests and 95 of 95 examples.bash lintis clean.CI gap
Every CI build compiles a clean checkout, so CI never sees files left over from an older install. That explains the miss more than the fact that uno_r4_wifi is outside routine CI. The gap and the new guard are documented in
docs/CI_MODES.md.