Skip to content

cmake: fix macOS build with -DGGML_BACKEND_DL=ON#17581

Merged
taronaeo merged 1 commit intoggml-org:masterfrom
giladgd:fixBackendDlOnMacos
Nov 30, 2025
Merged

cmake: fix macOS build with -DGGML_BACKEND_DL=ON#17581
taronaeo merged 1 commit intoggml-org:masterfrom
giladgd:fixBackendDlOnMacos

Conversation

@giladgd
Copy link
Copy Markdown
Contributor

@giladgd giladgd commented Nov 28, 2025

#17091 introduced an issue where when building with -DGGML_BACKEND_DL=ON on macOS you get this error:

c++: error: invalid argument '-current_version 0.9.4' only allowed with '-dynamiclib'
make[2]: *** [bin/libggml-blas.so] Error 1
make[1]: *** [ggml/src/ggml-blas/CMakeFiles/ggml-blas.dir/all] Error 2

It appears that building a module library with a version is not supported on macOS (CMake ticket), so this PR makes the build skip setting a version for backend module libraries on macOS.

@giladgd giladgd changed the title fix: macOS build with -DGGML_BACKEND_DL=ON cmake: fix macOS build with -DGGML_BACKEND_DL=ON Nov 28, 2025
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Nov 28, 2025
@taronaeo taronaeo merged commit fa04659 into ggml-org:master Nov 30, 2025
72 of 74 checks passed
@giladgd giladgd deleted the fixBackendDlOnMacos branch December 1, 2025 16:07
Anico2 added a commit to Anico2/llama.cpp that referenced this pull request Jan 15, 2026
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants