Skip to content

Fix macOS wheel build: set MACOSX_DEPLOYMENT_TARGET=10.14 - #16

Merged
OVVO-Financial merged 1 commit into
mainfrom
claude/intelligent-johnson-6ctwxv
Jun 14, 2026
Merged

Fix macOS wheel build: set MACOSX_DEPLOYMENT_TARGET=10.14#16
OVVO-Financial merged 1 commit into
mainfrom
claude/intelligent-johnson-6ctwxv

Conversation

@OVVO-Financial

Copy link
Copy Markdown
Owner

Problem

The first TestPyPI dry run of the Release workflow failed on every macOS wheel job (Wheels on macos-14) during the nanobind compile:

nb_type.cpp:252:13: error: aligned deallocation function of type
'void (void *, std::align_val_t) noexcept' is only available on macOS 10.13 or newer
  ... -mmacosx-version-min=10.9 ...

cibuildwheel defaults the x86_64 macOS deployment target to 10.9, but nanobind's C++17 runtime uses aligned new/delete, which requires macOS 10.13+. Linux and Windows builds are unaffected.

Fix

Pin the macOS deployment target for the wheel builds:

[tool.cibuildwheel.macos]
environment = { MACOSX_DEPLOYMENT_TARGET = "10.14" }

This is a build-config-only change; no package code is touched. It unblocks the macOS leg of the wheel matrix so the TestPyPI dry run (and, later, the real PyPI release) can complete.

https://claude.ai/code/session_012bjk4Y5eT1Sva8tNJjqUSw


Generated by Claude Code

cibuildwheel defaults the x86_64 macOS deployment target to 10.9, but
nanobind's C++17 runtime uses aligned new/delete which requires macOS
10.13+. Every macOS wheel job failed to compile nanobind (nb_type.cpp:
'aligned deallocation function ... only available on macOS 10.13 or
newer'). Pin the deployment target to 10.14 for the macOS builds.
@OVVO-Financial
OVVO-Financial merged commit 1ff733a into main Jun 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants