Skip to content

feat(0.4.50): macOS releases run on 14.0+ (static libc++ via mcpp 0.0.50) - #319

Merged
Sunrisepeak merged 7 commits into
mainfrom
feat/macos-min-version
Jun 5, 2026
Merged

Sunrisepeak merged 7 commits into
mainfrom
feat/macos-min-version

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

What

macosx-arm64 xlings releases carried minos=15.0 + dynamic system libc++ — macOS 14 users couldn't even bootstrap (and mcpp, which copies the xlings binary, inherited the wall). With mcpp 0.0.50 as the build tool:

  • mcpp.toml: [build] macos_deployment_target = "14.0" — the project-level floor declaration; mcpp 0.0.50 honors it natively (declared-floor-implies-static: links LLVM's libc++/libc++abi via -Wl,-load_hidden, deps shrink to libSystem)
  • release workflow (macos job): MACOSX_DEPLOYMENT_TARGET=14.0 env as the second line of assurance; macos_release.sh asserts minos + no-system-libc++ when set
  • ci-macos: minos assertion + hard static-libc++ assertion (mcpp 0.0.50 is the index latest)
  • bootstrap pins: BOOTSTRAP_XLINGS_VERSION → v0.4.49, XIM_PKGINDEX_REF → index containing mcpp 0.0.50
  • version 0.4.50

Verification chain

mcpp PR #115 (runs A–B5, macos-14 e2e), #116 (product changes + assertions), #117 (split-brain libc++ forensics → -Wl,-load_hidden fix, shipped in mcpp 0.0.50), #118 (custom libc++ floor-11 feasibility, deferred). mcpp v0.0.50 macosx asset verified: minos=14.0, only libSystem in LC_LOAD_DYLIB.

Design doc: .agents/docs/2026-06-05-macos-min-version-support.md

macosx-arm64 releases carried minos=15.0 (runner SDK default) and
dynamically linked the system libc++, so they only ran on macOS 15.
With mcpp 0.0.50 as the build tool (static LLVM libc++ + lld + explicit
deployment target), setting MACOSX_DEPLOYMENT_TARGET=11.0 in the macos
release job produces a binary that runs on macOS 11.0+ (covers 14).
macos_release.sh now asserts minos + no-system-libc++ when the env is
set. Bump 0.4.50.

Evidence: mcpp-community/mcpp PR #115 (runs A-B5) + PR #116.
Design: .agents/docs/2026-06-05-macos-min-version-support.md
NOTE: requires XIM_PKGINDEX_REF bump to an index containing mcpp 0.0.50
(done in this branch once the index lands).
- mcpp.toml: [build] macos_deployment_target = "11.0" (mcpp 0.0.50+
  honors this natively; the env pin in CI/release remains as the second
  line of assurance and covers older bootstrap mcpp).
- ci-macos: assert the built binary's LC_BUILD_VERSION minos matches the
  pinned target; report static-vs-system libc++ (hard assertion once the
  bootstrap index ships mcpp 0.0.50).
ld64.lld on mcpp CI: 'libc++.a(...o) has version 14.0.0, which is newer
than target minimum of 11.0.0' — the official LLVM-20.1.7-macOS-ARM64
static archives are built for macOS 14, so claiming an 11.0 floor would
be false. 14.0 still fully covers the original macOS 14 goal; 11-13
needs a custom libc++ build (tracked as follow-up).
… workflow pins)

The ci-macos static assertion failed because only release.yml had the
new index ref — ci workflows pin their own XIM_PKGINDEX_REF, and
.xlings.json additionally pins the mcpp workspace version (0.0.36).
All bumped to mcpp 0.0.50 / bootstrap xlings v0.4.49.
…rt newest binary

- tests/unit Extract fixtures: mcpp 0.0.47+ exports the target
  toolchain's runtime dirs into LD_LIBRARY_PATH for test processes;
  host tar/zip/python then load the sandbox glibc and crash. Wrap
  fixture commands with SHELL=/bin/bash
COREPACK_ENABLE_AUTO_PIN=0
SESSION_MANAGER=local/speak-pc:@/tmp/.ICE-unix/5162,unix/speak-pc:/tmp/.ICE-unix/5162
QT_ACCESSIBILITY=1
NVM_RC_VERSION=
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
no_proxy=localhost,127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,172.29.0.0/16,::1
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
rvm_prefix=/home/speak
AI_AGENT=claude-code_2-1-162_agent
GNOME_KEYRING_CONTROL=/run/user/1000/keyring
LANGUAGE=en_US:en
CLAUDE_CODE_SESSION_ID=1d9260d3-95e0-4bf3-9f41-e98b2468cf60
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
LC_ADDRESS=en_US.UTF-8
GNOME_SHELL_SESSION_MODE=ubuntu
LC_NAME=en_US.UTF-8
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
CLAUDE_EFFORT=high
MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA=
MY_RUBY_HOME=/home/speak/.rvm/rubies/ruby-3.1.0
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
LC_MONETARY=en_US.UTF-8
GTK_MODULES=gail:atk-bridge
RUBY_VERSION=ruby-3.1.0
PWD=/home/speak/workspace/github/openxlings/xlings
NIX_PROFILES=/nix/var/nix/profiles/default /home/speak/.nix-profile
XDG_SESSION_DESKTOP=ubuntu
LOGNAME=speak
XDG_SESSION_TYPE=x11
rvm_version=1.29.12 (latest)
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
SYSTEMD_EXEC_PID=5316
TMPPREFIX=/tmp/claude-1000/zsh
XAUTHORITY=/run/user/1000/gdm/Xauthority
NoDefaultCurrentDirectoryInExePath=1
CLAUDECODE=1
WINDOWPATH=2
HOME=/home/speak
USERNAME=speak
IM_CONFIG_PHASE=1
LC_PAPER=en_US.UTF-8
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=ubuntu:GNOME
MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/[email protected]/session.slice/org.gnome.SettingsDaemon.MediaKeys.service/memory.pressure
VTE_VERSION=7600
NIX_SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
XLINGS_BIN=/home/speak/.xlings/subos/current/bin
TMPDIR=/tmp/claude-1000
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/fac158cf_071d_4626_9471_cfebb42239b0
XLINGS_HOME=/home/speak/.xlings
https_proxy=http://127.0.0.1:7897/
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/home/speak/.cache/dotnet_bundle_extract
NVM_DIR=/home/speak/.nvm
rvm_bin_path=/home/speak/.rvm/bin
GEM_PATH=/home/speak/.rvm/gems/ruby-3.1.0:/home/speak/.rvm/gems/ruby-3.1.0@global
GEM_HOME=/home/speak/.rvm/gems/ruby-3.1.0
XDG_SESSION_CLASS=user
TERM=xterm-256color
LC_IDENTIFICATION=en_US.UTF-8
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
USER=speak
NO_PROXY=localhost,127.0.0.1,192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,172.29.0.0/16,::1
GNOME_TERMINAL_SERVICE=:1.111
CLAUDE_CODE_TMPDIR=/tmp/claude-1000
DISPLAY=:1
SHLVL=1
NVM_CD_FLAGS=
GSM_SKIP_SSH_AGENT_WORKAROUND=true
GIT_EDITOR=true
LC_TELEPHONE=en_US.UTF-8
HTTPS_PROXY=http://127.0.0.1:7897/
HTTP_PROXY=http://127.0.0.1:7897/
QT_IM_MODULE=ibus
LC_MEASUREMENT=en_US.UTF-8
PAPERSIZE=letter
http_proxy=http://127.0.0.1:7897/
XDG_RUNTIME_DIR=/run/user/1000
CLAUDE_CODE_ENTRYPOINT=cli
ALL_PROXY=socks://127.0.0.1:7897/
DEBUGINFOD_URLS=https://debuginfod.ubuntu.com
LC_TIME=en_US.UTF-8
LC_ALL=en_US.UTF-8
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
CLAUDE_CODE_EXECPATH=/home/speak/.local/share/claude/versions/2.1.162
all_proxy=socks://127.0.0.1:7897/
PATH=/home/speak/.xlings/subos/current/bin:/home/speak/.xlings/bin:/nix/var/nix/profiles/default/bin:/home/speak/.opencode/bin:/home/speak/.moon/bin:/home/speak/.rvm/gems/ruby-3.1.0/bin:/home/speak/.rvm/gems/ruby-3.1.0@global/bin:/home/speak/.rvm/rubies/ruby-3.1.0/bin:/home/speak/.local/bin:/home/speak/workspace/github/d2learn/xlings/build/xlings/data/xim/runtimedir/node-v22.12.0-linux-x64/bin:/home/speak/.cargo/bin:/home/speak/.nix-profile/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/speak/.dotnet/tools:/home/speak/.rvm/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/claude-md-management/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/superpowers/5.1.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/code-review/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/skill-creator/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/rust-analyzer-lsp/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/frontend-design/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/feature-dev/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/github/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/code-simplifier/1.0.0/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/context7/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/commit-commands/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/agent-sdk-dev/unknown/bin:/home/speak/.claude/plugins/cache/claude-plugins-official/chrome-devtools-mcp/1.1.1/bin
GDMSESSION=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
IRBRC=/home/speak/.rvm/rubies/ruby-3.1.0/.irbrc
rvm_path=/home/speak/.rvm
LC_NUMERIC=en_US.UTF-8
OLDPWD=/home/speak/workspace/github/mcpp-community/mcpp
_=/usr/bin/env (POSIX only).
- ci-macos assertion: pick the newest xlings binary across fingerprint
  dirs (+ print all candidates for diagnosis).
The assertion itself passed in R3 (single candidate, minos 14.0, only
libSystem in deps — static libc++ confirmed); the step failed on a
shell EOF from quote typos in the diagnostic echos.
@Sunrisepeak
Sunrisepeak merged commit bb27e43 into main Jun 5, 2026
3 checks passed
@Sunrisepeak
Sunrisepeak deleted the feat/macos-min-version branch June 5, 2026 09:28
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.

1 participant