Skip to content

feat(arm): pin ARM GCC 14.2.rel1 for Intel macOS (#2029) - #2129

Merged
zackees merged 2 commits into
mainfrom
agent/arm-darwin-x86-and-mirror-audit
Nov 21, 2026
Merged

zackees merged 2 commits into
mainfrom
agent/arm-darwin-x86-and-mirror-audit

Conversation

@zackees

@zackees zackees commented Nov 21, 2026

Copy link
Copy Markdown
Member

Leftover 1 of #2029 (meta #2035): Intel macOS ARM GCC.

Options considered

  1. Pin ARM 14.2.rel1 darwin-x86_64 from developer.arm.com, with SHA-256. Chosen.
    • Same vendor, same archive layout. find_bin_root and validate work unchanged.
    • The download already goes through the mirror. The URL is on the developer.arm.com route that fix(mirror): route developer.arm.com downloads through the fbuild bucket (#2029) #2032 added: bucket first, vendor as fallback, and the pinned SHA-256 checks whichever copy serves it. No mirror code changes.
    • Small version gap. GCC 14.2 vs 15.2. Every flag fbuild depends on exists in GCC 14, including -Wno-error=return-mismatch and the renesas gnu++14 workaround. renesas_compiler only special-cases GCC 7 (1.702*).
  2. Fall back to PlatformIO's toolchain-gccarmnoneeabi for darwin_x86_64. Rejected.
    • Its newest build, 1.140201.0, is the same GCC 14.2.1, so it gains nothing.
    • It costs a second resolution path: a registry metadata lookup, a different package layout, and a different cache key, all on one host.
  3. Keep the clear error. Rejected. Intel macOS users would still be unable to build any ARM board when a working, checksummed vendor build exists.

Change

crates/fbuild-toolchain/src/toolchain/arm.rs:

  • New macos-x86_64 entry, pinned at
    2d9e717dd4f7751d18936ae1365d25916534105ebcb7583039eff1092b824505. That is ARM's .sha256asc, and I checked it by downloading the 145,118,692-byte tarball and hashing it locally. The tarball holds arm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi/bin/arm-none-eabi-{gcc,g++,ar,objcopy,size}.
  • Each entry carries its own version. It feeds the download URL, and the PackageBase version that keys the cache directory. The 14.2 install therefore never shares a directory with 15.2, and get_info().version reports 14.2.Rel1.
  • The unsupported-host error remains for macOS architectures that are neither arm64 nor x86_64. Its list of pinned hosts is now derived from the table, not hard-coded.

Tests (TDD)

The tests were changed first. They failed to compile against the old API, then passed:

  • New test_intel_macos_pins_14_2_rel1 checks the URL, SHA-256 and version.
  • test_platform_package_selects_host_build now expects darwin-x86_64 for macOS x86_64, and None for other macOS architectures.
  • test_unsupported_host_fails_fast now uses a macOS Other arch.
  • test_all_platform_urls_are_valid checks each filename against its own version.

soldr cargo test -p fbuild-toolchain --lib arm::: 19 passed. soldr cargo clippy -p fbuild-toolchain --all-targets -- -D warnings: clean.

Pending maintainer approval (no upload done)

The bucket answers 403 for this object today. The four 15.2.rel1 objects answer 200. Until the upload, Intel macOS downloads straight from developer.arm.com:

s3://fbuild/vendor/developer.arm.com/-/media/Files/downloads/gnu/14.2.rel1/binrel/arm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi.tar.xz
(endpoint https://sfo3.digitaloceanspaces.com, --acl public-read)

Leftover 2, the audit of other vendor hosts, is filed as #2128.

Refs #2029, #2035

ARM ships no darwin-x86_64 build of 15.2.rel1; its last Intel macOS
release is 14.2.rel1. Pin it with the SHA-256 ARM publishes in
.sha256asc (2d9e717d..., re-verified by downloading the 145118692-byte
tarball and hashing it) instead of failing with an unsupported-host
error. Each platform entry now carries its own version, which keys the
cache directory, so the 14.2 install never shares a directory with 15.2.

The URL rides the existing developer.arm.com vendor-host mirror route:
bucket first, vendor fallback, pinned SHA-256 verifies whichever copy
serves it. The bucket object is not uploaded yet (403 today), so Intel
macOS downloads from developer.arm.com until it is.

Refs #2029, #2035
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 1

Validation error: Unrecognized key: "enabled" at "reviews.pre_merge_checks"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
  • 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

@zackees
zackees added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit cee2112 Nov 21, 2026
33 checks passed
@zackees
zackees deleted the agent/arm-darwin-x86-and-mirror-audit branch November 21, 2026 07:39
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 22, 2026
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.

1 participant