Skip to content

fix(build): tombstone fl.system.sd+.cpp so in-place upgrades link (#4704) - #4714

Merged
zackees merged 1 commit into
masterfrom
fix/4704-uno-r4-beginsd
Oct 6, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/4704-uno-r4-beginsd

Conversation

@zackees

@zackees zackees commented Oct 6, 2026

Copy link
Copy Markdown
Member

Fixes #4704

Reproduction

The clean 3.10.6 tree has only one SD unit, so bash compile uno_r4_wifi --examples Blink passes. The failure comes from installing 3.10.6 over 3.10.5. I extracted git archive 3.10.5 src into a directory, extracted git archive 3.10.6 src on top, and compiled both SD unity units with host g++. Then I ran g++ -r on the two objects:

fl.fs.sd.o:     T fl::FileSystem::beginSd(int)
fl.system.sd.o: T fl::FileSystem::beginSd(int)
fl.system.sd+.cpp:(.text+0x30): multiple definition of `fl::FileSystem::beginSd(int)'; fl.fs.sd.o:fl.fs.sd+.cpp: first defined here

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 includes fl/system/sd/_build.cpp.hpp. #4010 renamed it to fl.fs.sd+.cpp for 3.10.6. Unpacking 3.10.6 over 3.10.5 ("Add .ZIP Library" or a manual copy) leaves the old unit and its fl/system/sd/*.hpp behind. Arduino compiles every .cpp under src/, so both units define beginSd.

Fix

  • Add an empty file named src/fl/build/fl.system.sd+.cpp. An overlay install now overwrites the stale unit, and the stale .hpp files are no longer compiled. With the file in the overlay, the reproduction gives one definition and links cleanly.
  • The unity-build lint (ci/lint_cpp_rs) now skips the files listed in UNITY_TOMBSTONE_BUILD_FILES.
  • Regression guard: ci/check_released_sources.py (with unit tests) fails if a .c, .cpp or .S file under src/ from the previous release tag is missing. It runs in release.yml before tagging. Run against 3.10.6, it reports fl.system.sd+.cpp (and asmpoly_gcc.S, which only builds on non-Thumb ARM and so is harmless).

Validation

  • Blink builds for uno_r4_wifi, uno and teensy41, and esp32dev builds both Blink and Fx/FxSdCard.
  • bash test --cpp passes: 317 of 317 unit tests and 95 of 95 examples.
  • bash lint is 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.

)

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]>
@zackees
zackees merged commit 869f213 into master Oct 6, 2026
86 checks passed
@coderabbitai

coderabbitai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: FastLED/FastLED/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3d4e5ede-fa9b-4d6a-a043-b265ade432ef
📥 Commits

Reviewing files that changed from the base of the PR and between a43c67f and 55ae84b.

📒 Files selected for processing (7)
  • .github/workflows/release.yml
  • ci/check_released_sources.py
  • ci/lint_cpp_rs/src/checkers/unity_build.rs
  • ci/lint_cpp_rs/src/checkers/unity_build_files.rs
  • ci/tests/test_check_released_sources.py
  • docs/CI_MODES.md
  • src/fl/build/fl.system.sd+.cpp
 __________________________________
< Pulling the bugs out of the hat. >
 ----------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees deleted the fix/4704-uno-r4-beginsd branch November 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3.10.6 fails to compile on Arduino UNO R4 WiFI

1 participant