Repository navigation
rust 1.98 for the slam-rs recipe and every Rust lane (macOS 27 strip fix) - #311
Merged
Merged
Conversation
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>
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.
On macOS 27 (Darwin 27) the slam-rs core built by the pixi-build recipe, and by the
slam-rs-osxlane'sslam-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 requirementrust 1.97.*->rust 1.98.*.pixi.toml: the four workspace pins (gsplat-rust-renderer, slam-rs, robocap-recorder, robocap-cross) and the cross lane'srust-std-aarch64-unknown-linux-gnu->1.98.*.pixi.lockre-locked: 10 environments touched, onlyrust/rust-std-*packages change (1.97.1 -> 1.98.1).pixi lock --checkpasses.Verified on a Darwin 27 Mac (M-series) with a throwaway pixi workspace using a
pathdep on the slam-rs package: with 1.97 the build succeeds andfrom slam_rs._core import Viofails; with 1.98.1 and default strip the build succeeds andimport slam_rs.frontend_log+_coreimport 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 --checkon 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