mirror of
https://github.com/bitcoin/bitcoin
synced 2026-12-04 12:17:38 +00:00
build: Bump macOS SDK version to 15.0 #36592
No reviewers
Labels
No labels
Android
Backport
Block storage
Brainstorming
Bug
Build system
CI failed
Consensus
Data corruption
Descriptors
Docs
DrahtBot Guix build requested
Feature
Fuzzing
GUI
Good First Review
IPC
Insufficient Review
Kernel
Linux/Unix
Mempool
Mining
Needs Backport (31.x)
Needs Backport (32.x)
Needs Benchmark
Needs Conceptual Review
Needs backport (30.x)
Needs rebase
Needs release note
Net
P2P
PSBT
Privacy
Private Broadcast
Questions and Help
RPC/REST/ZMQ
Refactoring
Resource usage
Review club
Scripts and tools
Settings
TX fees and policy
Tests
Tracking Issue
UTXO Db and Indexes
Up for grabs
Upstream
Utils/log/libs
Validation
Waiting for author
Wallet
Windows
good first issue
interfaces
macOS
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin/bitcoin!36592
Loading…
Reference in a new issue
No description provided.
Delete branch "261021-macos-sdk"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Qt 6.12, which supports deployment targets up to macOS 26, requires the macOS 15 SDK or higher.
See https://doc.qt.io/qt-6.12/macos.html.
This is a prerequisite for the upcoming update of Qt in depends from 6.8 LTS to 6.12 LTS.
My partial Guix build:
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
External sites
Reviews
See the guideline and AI policy for information on the review process.
If your review is incorrectly listed, please copy-paste
<!--meta-tag:bot-skip-->into the comment that the bot should ignore.Base:
23288073d4e7723bf7559a904bbf322a52d8af55Head:
eaa8d1f5a5fcfeefcb3ff432aeb969e8f8f14a7dFindings
Suggestions
Mach-O metadata reports SDK 15.0 for the pinned macOS 26.1 SDK (depends/hosts/darwin.mk:2, head)
The standard pinned sysroot comes from Xcode 26.1.1/17B100; Xcode 26.1.1 includes the macOS 26.1 SDK. (developer.apple.com) This value is also passed to the linker as the
-platform_versionSDK argument, and the Guix symbol checker requires the resulting Mach-O metadata to report 15.0. Consequently, builds using that sysroot report SDK 15.0 even though they used the macOS 26.1 SDK. Could the linker metadata and checker use the actual SDK version, while keepingOSX_MIN_VERSION=14.0? If Qt needs a separate SDK floor, keep that separate rather than using one value for both.Previously reported; verified as still present in this revision. Status: still_present. Author position: none. Originally reported at
eaa8d1f5a5fcfeefcb3ff432aeb969e8f8f14a7d. The mechanism is real at head. The sysroot is Xcode-26.1.1-17B100, but -platform_version is given OSX_SDK_VERSION=15.0, and symbol-check.py requires SDK [15,0,0]. So the stamped SDK version does not match the headers the build uses. The same mismatch existed at base: the same Xcode 26.1.1 sysroot was stamped 14.0 and the checker required [14,0,0]. Commita89e1618updated XCODE_VERSION/XCODE_BUILD_ID on purpose and left OSX_SDK_VERSION=14.0. This PR keeps the same split and only moves the stamped value from 14.0 to 15.0, which narrows the gap. It does not create or worsen the mismatch. The author's replies say the lower stamp is deliberate: it limits Apple's SDK-gated behaviour changes so the test matrix stays bounded. That shows intent, but it does not prove the finding's mechanism wrong, so the status stays still_present rather than invalid. The author has not taken a position on the specific 26.1-vs-15.0 mismatch, and since this is a pre-existing deliberate design choice, there is no regression here to flag. Author reply 2026-10-27T16:02:22Z Author reply 2026-10-27T16:35:02ZReview coverage was incomplete.
Review limitations
Review tier: standard
Full review report
What is the actual requirement for the
15.xSDK?This page also claims that a deployment target of 14.4 or later is required, but you're not changing that here. Will our release binaries just crash on the older versions?
It's hard to say from the commit message. But the configuration fails with the current
OSX_SDK_VERSION=14.0.Yes, both changes are prerequisites for updating Qt to 6.12. However, I thought it would be better to consider them separately, as we might skip no longer supported 14.4 altogether and bump the minimum version straight to 15.0.
I don't see the other change in #36593?
Can you explain what this value means for non-Apple people? According to https://developer.apple.com/documentation/xcode-release-notes/xcode-26_1-release-notes?changes=l_4,l_4,l_4,l_4&utm_source=openai#Overview, Xcode 26.1.1 includes [...] SDKs for [...] 26.1, so this value should be 26.1 and neither 14 nor 15?
I think this is also what Ralph LLM asks:
The pinned sysroot comes from Xcode 26.1.1/17B100 and contains the macOS 26.1 SDK, but the linker receives 15.0 as the SDK version and the Guix symbol checker requires that value. Builds using this sysroot therefore report SDK 15.0 in their Mach-O metadata despite using the macOS 26.1 SDK. Could the linker metadata and checker use the actual SDK version while keeping OSX_MIN_VERSION=14.0? If Qt needs a separate SDK floor, keep that separate rather than using one value for both. (developer.apple.com)
Basically, I wonder why is this not 26.1 now. Going further, this line could also be removed on the next archive bump and the actual version could simply be extracted from
SDKSettings.json's version field?The linker stamps the SDK version into the binary. At runtime, Apple’s frameworks read it to decide which generation of behaviour the binary opts into, independently of the headers actually used and of the minimum supported macOS version.
Choosing 26.1 means the binary opts into every behaviour change Apple has gated up to macOS 26.1, so on any OS that has them, the latest ones are used.
Choosing 15.0 means the binary opts into changes gated up to macOS 15.0 and keeps the legacy behaviour for anything gated later.
This choice affects the look-and-feel of the GUI. Consider the following side-by-side comparison of
OSX_SDK_VERSION=14.0andOSX_SDK_VERSION=26.1on macOS 27.2:Thanks for clarifying!
Though, I still wonder why this is not 26.1 now (i.e. the latest SDK), so that any OS can use the latest features, if it has them. Is there some requirement that GUI looks the same for any macOS version? Or is this some hack in the assumption that gating the features will avoid having an exploding test matrix?
Personally, I think it is fine to let the GUI look different (possibly "modern" on later macOS versions). Also I think it is fine to use other SDK features on later macOS versions. If there was a bug in any of them, we'd have to fix them anyway for self-compilation and if there is a macOS bug a feature gate is no guarantee that the bug won't happen?
Just curious. Any value here seems fine, given your reply.
That would require us to test the release binaries on every supported macOS version, with each one running a different generation of framework behaviour.
No, there is not, as far as I'm aware.
Yes, that is my thinking.
To use the latest SDK, it's needed to build with Homebrew’s packages.
lgtm ACK
eaa8d1f5a5Guix build
Looks good to me, but don't have a mac to test.
What do you mean here?
@hebasto you might have missed this comment?
Not a blocker, but one thing I'm not quite following (in this GUI context), is when the decision is being made to "bump" things, vs patching around requirements. In this PR, the version requirement isn't really known, other than configure fails, which I assume could be patched around; but instead we are bumping. Whereas in #36593, we are patching dependencies to avoid bumping, https://github.com/bitcoin/bitcoin/pull/36593#discussion_r4340833697, without knowing if it will actually work?