Skip to content

rust 1.98 for the slam-rs recipe and every Rust lane (macOS 27 strip fix) - #311

Merged
pablo-rerun merged 2 commits into
mainfrom
slam-rs/rust-1.98-macos27
Sep 24, 2026
Merged

pablo-rerun merged 2 commits into
mainfrom
slam-rs/rust-1.98-macos27

Conversation

@pablo-rerun

@pablo-rerun pablo-rerun commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

On macOS 27 (Darwin 27) the slam-rs core built by the pixi-build recipe, and by the slam-rs-osx lane's slam-rs-build, does not load: dlopen ... (mis-aligned LINKEDIT string pool). rustc <= 1.98.0 strips Apple release cdylibs with rust-objcopy and leaves the string pool 4-byte aligned; macOS 27's dyld rejects that. Rust 1.98.1 fixes it upstream (see e.g. DitchOoM/socket#645). conda-forge has 1.98.1 for osx-arm64, linux-64 and linux-aarch64.

Changes:

  • packages/slam-rs/recipe.yaml: build requirement rust 1.97.* -> rust 1.98.*.
  • pixi.toml: the four workspace pins (gsplat-rust-renderer, slam-rs, robocap-recorder, robocap-cross) and the cross lane's rust-std-aarch64-unknown-linux-gnu -> 1.98.*.
  • pixi.lock re-locked: 10 environments touched, only rust / rust-std-* packages change (1.97.1 -> 1.98.1). pixi lock --check passes.

Verified on a Darwin 27 Mac (M-series) with a throwaway pixi workspace using a path dep on the slam-rs package: with 1.97 the build succeeds and from slam_rs._core import Vio fails; with 1.98.1 and default strip the build succeeds and import slam_rs.frontend_log + _core import on rerun-sdk 0.38.1. Disabling strip (CARGO_PROFILE_RELEASE_STRIP=none) also fixes it and was rejected in favour of the toolchain fix. The workspace lanes were not rebuilt after the bump (same toolchain as the verified recipe build).

Gate: slam-rs pixi-build consumer import test + pixi lock --check on pablovela's Darwin 27 Mac @ 6ee2068 (toolchain pin + lock only; no Python or Rust source touched, so lint/typecheck/tests were not run)

🤖 Generated with Claude Code

pablo-rerun and others added 2 commits September 24, 2026 13:41
rustc <= 1.98.0 strips Apple release cdylibs with rust-objcopy, which leaves
LC_SYMTAB.stroff at 4 mod 8; macOS 27's dyld refuses such files with
"mis-aligned LINKEDIT string pool". Rust 1.98.1 pads the pool. Verified on a
Darwin 27 Mac: the 1.97 build succeeds but `import slam_rs._core` fails; with
1.98.1 (default strip) the git/path consumer builds and imports.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Same reason as the recipe change: rustc <= 1.98.0 leaves the LINKEDIT
string pool mis-aligned when stripping Apple release cdylibs and macOS 27
refuses to load them. Bumps the gsplat-rust-renderer, slam-rs,
robocap-recorder and robocap-cross pins (and the matching rust-std for the
cross lane) to 1.98.*; the lock only swaps rust/rust-std packages.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pablo-rerun pablo-rerun changed the title slam-rs recipe: rust 1.98 so the macOS core loads on macOS 27 rust 1.98 for the slam-rs recipe and every Rust lane (macOS 27 strip fix) Sep 24, 2026
@pablo-rerun
pablo-rerun merged commit 19c6ad9 into main Sep 24, 2026
3 of 4 checks passed
@pablo-rerun
pablo-rerun deleted the slam-rs/rust-1.98-macos27 branch September 24, 2026 20:47
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