Skip to content

fix(sam): canonicalize ClearCore GCC9 C++ system headers - #1702

Merged
zackees merged 2 commits into
mainfrom
fix/clearcore-windows-headers
Oct 22, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/clearcore-windows-headers

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #1701. The real Windows regression proves the GCC9 header exists and is readable, while GCC searches long builtin paths containing repeated parent-directory components and cannot open it.

  • Query the selected GCC's C++ include list with effective target/multilib settings, preserving order and canonicalizing each actual directory.
  • Supply that complete list explicitly for ClearCore C++ compilation. Keep C compilation and CPATH user-header classification intact; no hardcoded SDK layout or ABI selection.
  • Use the same compiler settings for library dependencies and core/sketch sources, and invalidate older no-op fingerprints for the new header policy. Probe only after the no-op fast path.
  • Preserve all Windows validation steps, ordering the SAMD/ClearCore firmware regression before broad checks to expose firmware failures earlier. Remove temporary verbose diagnostics.

Evidence

  • RED: Windows runs 39746745165 and 39811121068 pass both Feather firmware builds, then fail ClearCore on bits/os_defines.h. The latter confirms the installed file is readable and captures GCC's long raw search paths.
  • GREEN locally: real Feather M0, Feather M4 with LTO, and ClearCore firmware builds pass with canonical system headers and unchanged sketches.
  • Three include-discovery tests and six SAM compiler tests pass, including real filesystem canonicalization, multilib/search order, target-option filtering, CPATH classification and keeping C++ includes out of C compilation.
  • Workspace Clippy, formatting, platform-boundary inventory, USB catalogue guard, workflow generation, 31 focused CI tests and diff checks pass.
  • Windows run 39816007352 on f629c50 passed all three SAMD/ClearCore firmware builds, workspace Clippy/tests, UNO R4 and Pico. The overall run failed later, before the ESP32-S3 linker test, because the pinned esptool version probe exceeded its 10-second deadline. This is not a successful full run.
  • Rebased onto main db66f23; range-diff confirms the production fix is unchanged, while the Windows workflow preserves the merged large-archive test. All hosted checks passed for final head b0fdf92. Full Windows run 39820514191 passed on that exact head: all firmware builds, workspace Clippy/tests, real large-archive regression, ESP32-S3 overflow, pinned ESP32/ESP32-C6 source-tool reuse, and Windows long-path repair/fallback smoke. The prior esptool startup timeout did not repeat; that failed run remains recorded above.

Bosn is skipped per the maintainer. No new workflows, repository copies/worktrees, compiler-warning demotions, or removed firmware tests.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
📥 Commits

Reviewing files that changed from the base of the PR and between db66f23 and b0fdf92.

📒 Files selected for processing: 6
  • .github/workflows/check-windows.yml
  • crates/fbuild-build-arm/src/sam/orchestrator.rs
  • crates/fbuild-build-arm/src/sam/sam_compiler.rs
  • crates/fbuild-toolchain/src/toolchain/README.md
  • crates/fbuild-toolchain/src/toolchain/gcc.rs
  • crates/fbuild-toolchain/src/toolchain/mod.rs
  • Autofix · 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 force-pushed the fix/clearcore-windows-headers branch from f629c50 to b0fdf92 Compare October 22, 2026 16:49
@zackees
zackees merged commit cd1c09a into main Oct 22, 2026
35 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Oct 23, 2026
@zackees
zackees deleted the fix/clearcore-windows-headers branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

fix(toolchain): resolve ClearCore ARM GCC9 standard headers on Windows

1 participant