Repository navigation
Fix pinned pioarduino 51.x per-MCU toolchains - #1504
Merged
Merged
Conversation
|
Warning Review limit reachedNext included review available in 9 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: FastLED/fbuild/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
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 |
zackees
added a commit
that referenced
this pull request
Oct 2, 2026
…ino 53.x/54.x (#1605) * fix(esp32): resolve unified toolchain by registry version for pioarduino 53.x/54.x pioarduino 53.x/54.x platform.json names the unified toolchain-xtensa-esp-elf by a PlatformIO registry version (platformio/[email protected]+20241119), not a metadata URL. #1504 treated 'no metadata URL' as 'per-MCU package' and looked up toolchain-xtensa-<mcu>, which those releases do not declare, so every ESP32 Xtensa build pinned to 53.x/54.x failed with "package 'toolchain-xtensa-esp32s3' not found in platform.json". Select the per-MCU name only when the platform omits the unified entry. Co-Authored-By: Claude <[email protected]> * fix(esp32): drop -fuse-cxa-atexit for every pre-GCC 14 toolchain pioarduino 53.x pairs GCC 13.2 unified toolchains with an SDK that, like 51.x, does not define __dso_handle. The flag was only dropped for per-MCU Xtensa packages, so once 53.x resolved its toolchain (previous commit) esp32dev and esp32c3 failed to link with undefined __dso_handle. Co-Authored-By: Claude <[email protected]> * fix(esp32): prefer a declared per-MCU toolchain over the unified one Review follow-up: official PlatformIO espressif32 6.x/7.x declares both per-MCU GCC 8.4 toolchains and toolchain-xtensa-esp-elf, and its Arduino builds use the per-MCU package. Preferring the unified entry would have moved those builds to GCC 14 and skipped the legacy_gcc8 recipe. Co-Authored-By: Claude <[email protected]> * refactor(esp32): apply toolchain and SDK fixups as pure config -> config rules Replace the in-place `Esp32McuConfig::adapt_to_toolchain` and `disable_lto` mutators with a `fixups` module of side-effect-free rules. Each rule (drop -fuse-cxa-atexit before GCC 14, drop the atomics switch on per-MCU Xtensa, the GCC 8 linker recipe, language standards, and LTO removal) is a named `Esp32McuConfig -> Esp32McuConfig` function, and the orchestrator applies the composed fixup once per input: let mcu_config = fixups::for_toolchain(mcu_config, &toolchain_info); let mcu_config = fixups::for_sdk_ld_flags(mcu_config, &sdk_ld_flags); Also replace the boolean-flag `selected_toolchain_name(mcu, unified)` with `per_mcu_toolchain_name(mcu) -> Option<String>`, so `toolchain_name_for` reads as "the declared per-MCU package, else the unified one". Behaviour is unchanged. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
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.
Closes #1444. Part of #1491.
Resolve old pioarduino per-MCU Xtensa/RISC-V toolchains through the generic PlatformIO registry resolver, selecting the exact host archive and SHA-256 from the pinned owner/name/version instead of falling back to stable. Adapt GCC 12 flags for the Arduino 3.0 framework. Provision pioarduino’s pinned esptool 4.7.5 source archive in an isolated uv-managed tool environment rather than substituting a nonexistent Tasmota binary; use its v4 elf2image flags. A failed pinned tool install is now fatal, not a PATH fallback.
Validation: offline core registry tests (10), fbuild-library unit tests (257), fbuild-build-esp unit tests (120 before rebase, 123 after), fbuild-toolchain unit tests (153 passed, 1 pre-existing ignored), affected-crate Clippy with -D warnings, and cold local ESP32-S3 pinned build (GCC 12.2.0, firmware.bin produced) without overrides. Existing modern ESP32-S3/GCC 14.2.0 build still passes. Both builds rerun after rebasing onto current main.
fbuild install --checkreports the exact pinned toolchain and esptool packages as present.