Repository navigation
feat(arm): pin ARM GCC 14.2.rel1 for Intel macOS (#2029) - #2129
Merged
Merged
Conversation
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
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This was referenced Nov 21, 2026
Open
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.
Leftover 1 of #2029 (meta #2035): Intel macOS ARM GCC.
Options considered
find_bin_rootandvalidatework unchanged.developer.arm.comroute 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.-Wno-error=return-mismatchand the renesasgnu++14workaround.renesas_compileronly special-cases GCC 7 (1.702*).toolchain-gccarmnoneeabifor darwin_x86_64. Rejected.1.140201.0, is the same GCC 14.2.1, so it gains nothing.Change
crates/fbuild-toolchain/src/toolchain/arm.rs:macos-x86_64entry, pinned at2d9e717dd4f7751d18936ae1365d25916534105ebcb7583039eff1092b824505. That is ARM's.sha256asc, and I checked it by downloading the 145,118,692-byte tarball and hashing it locally. The tarball holdsarm-gnu-toolchain-14.2.rel1-darwin-x86_64-arm-none-eabi/bin/arm-none-eabi-{gcc,g++,ar,objcopy,size}.version. It feeds the download URL, and thePackageBaseversion that keys the cache directory. The 14.2 install therefore never shares a directory with 15.2, andget_info().versionreports14.2.Rel1.Tests (TDD)
The tests were changed first. They failed to compile against the old API, then passed:
test_intel_macos_pins_14_2_rel1checks the URL, SHA-256 and version.test_platform_package_selects_host_buildnow expectsdarwin-x86_64for macOS x86_64, andNonefor other macOS architectures.test_unsupported_host_fails_fastnow uses a macOSOtherarch.test_all_platform_urls_are_validchecks 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
403for this object today. The four 15.2.rel1 objects answer200. Until the upload, Intel macOS downloads straight from developer.arm.com:Leftover 2, the audit of other vendor hosts, is filed as #2128.
Refs #2029, #2035