Skip to content

fix(sys): add /usr/local/lib to macOS linker search path for Rust 1.91+#403

Merged
PierreZ merged 2 commits into
mainfrom
381-ci-macos-build-failure-blocking-all-prs
Dec 18, 2025
Merged

fix(sys): add /usr/local/lib to macOS linker search path for Rust 1.91+#403
PierreZ merged 2 commits into
mainfrom
381-ci-macos-build-failure-blocking-all-prs

Conversation

@PierreZ

@PierreZ PierreZ commented Dec 18, 2025

Copy link
Copy Markdown
Member

Close #381

Summary

  • Migrate CI from deprecated macos-13/macos-14 runners to macos-15 (ARM64) and macos-15-intel (x86_64)
  • Fix macOS linker error: ld: library 'fdb_c' not found

Root Cause

Since Rust 1.91, /usr/local/lib is no longer automatically included in the linker search path on macOS. This breaks builds when libfdb_c.dylib is installed at /usr/local/lib.

References:

Fix

Explicitly add /usr/local/lib to the linker search path in foundationdb-sys/build.rs on macOS.

@PierreZ PierreZ force-pushed the 381-ci-macos-build-failure-blocking-all-prs branch 2 times, most recently from cf5b6da to 1f19802 Compare December 18, 2025 16:09
Replace deprecated macos-13 and macos-14 runners with macos-15 (ARM64)
and macos-15-intel (x86_64).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@PierreZ PierreZ force-pushed the 381-ci-macos-build-failure-blocking-all-prs branch from 1f19802 to ac74b01 Compare December 18, 2025 16:22
Since Rust 1.91, /usr/local/lib is no longer searched automatically
on macOS when linking. This causes build failures when libfdb_c.dylib
is installed at the standard /usr/local/lib location.

Explicitly add /usr/local/lib to the linker search path on macOS.

References:
- rust-lang/rust#131477
- rust-lang/rust#147010

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@PierreZ PierreZ changed the title ci: add debug workflow for macOS build failures fix(sys): add /usr/local/lib to macOS linker search path for Rust 1.91+ Dec 18, 2025
@PierreZ PierreZ marked this pull request as ready for review December 18, 2025 16:49
@PierreZ PierreZ merged commit ac11666 into main Dec 18, 2025
54 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.

ci: macOS build failure blocking all PRs

1 participant