Skip to content

Fix #28491 linking bug when compiling with BUILD_SHARED_LIBS=OFF - #28492

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
EAddario:ggml-rpc
Sep 12, 2026
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
EAddario:ggml-rpc

Conversation

@EAddario

@EAddario EAddario commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Overview

When building in MacOS with BUILD_SHARED_LIBS=OFF post commit 2bf0415, ggml-rpc is a static archive and never links so librdma symbols stay undefined and compilation aborts with a linker error (#28491).

Additional information

Fix is simple, make target link option public. In ggml/src/ggml-rpc/CMakeLists.txt change target_link_options(ggml-rpc PRIVATE "LINKER:-weak_library,${RDMA_LIB}") with target_link_options(ggml-rpc PUBLIC "LINKER:-weak_library,${RDMA_LIB}")

Requirements

@rgerganov
rgerganov requested a review from ggerganov September 6, 2026 13:13
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Sep 6, 2026
@ggml-gh-bot

This comment has been minimized.

@EAddario
EAddario marked this pull request as ready for review September 6, 2026 13:44
@EAddario
EAddario requested a review from a team as a code owner September 6, 2026 13:44
@taronaeo

Copy link
Copy Markdown
Member

@ryan5rdx If this PR is correct, let us know so that we can fast-merge it :)

@ryan5rdx

ryan5rdx commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

@ryan5rdx If this PR is correct, let us know so that we can fast-merge it :)

yup this LGTM! I don't have an older macOS machine to verify this, but it still builds fine on tahoe

@taronaeo taronaeo added the merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge. label Sep 12, 2026
@ggerganov
ggerganov merged commit f3a33df into ggml-org:master Sep 12, 2026
33 of 35 checks passed
@BrewTestBot BrewTestBot mentioned this pull request Sep 14, 2026
1 task done
pl752 pushed a commit to pl752/llama.cpp that referenced this pull request Sep 15, 2026
quimmedes pushed a commit to quimmedes/cafe-llama.cpp that referenced this pull request Sep 16, 2026
zsogitbe pushed a commit to zsogitbe/llama.cpp that referenced this pull request Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning merge ready A maintainer can use this label to indicate that they consider the changes final and ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants