Skip to content

Conversation

@giladgd
Copy link
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
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