[GH-ISSUE #9023] macOS compile error ggml-vulkan sub-directory non-existing #52380

Open
opened 2026-04-28 23:07:05 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Luis-Lourenco on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/9023

What is the issue?

While compiling for macOS I got the following error:

CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory):
  add_subdirectory given source "ggml-vulkan" which is not an existing
  directory.
Call Stack (most recent call first):
  ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend)

I check everything and I think the directory is missing, because if I create the directory I got different error:

CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory):
  The source directory

    /Users/luislourenco/Downloads/ollama/ml/backend/ggml/ggml/src/ggml-vulkan

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend)


I'm building from reposirty because I have a macOS and I want to use he GPU.

I happy compile vulkan with no issues, but I'm stuck here and I can't find the files needed to fill the directory "ggml-vulkan"

I'm compiling using cmake -B build -DGGML_METAL=OFF -DGGML_VULKAN=ON

I'm following this two tutorials:
https://github.com/KhronosGroup/MoltenVK
https://github.com/ollama/ollama
https://github.com/ollama/ollama/issues/1016

What should be my next move?

Thank you.

Relevant log output

CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory):
  add_subdirectory given source "ggml-vulkan" which is not an existing
  directory.
Call Stack (most recent call first):
  ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend)


After I create the directory:


CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory):
  The source directory

    /Users/luislourenco/Downloads/ollama/ml/backend/ggml/ggml/src/ggml-vulkan

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend)

OS

macOS

GPU

AMD

CPU

Intel

Ollama version

No response

Originally created by @Luis-Lourenco on GitHub (Feb 11, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/9023 ### What is the issue? While compiling for macOS I got the following error: ``` CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory): add_subdirectory given source "ggml-vulkan" which is not an existing directory. Call Stack (most recent call first): ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend) ``` I check everything and I think the directory is missing, because if I create the directory I got different error: ``` CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory): The source directory /Users/luislourenco/Downloads/ollama/ml/backend/ggml/ggml/src/ggml-vulkan does not contain a CMakeLists.txt file. Call Stack (most recent call first): ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend) ``` I'm building from reposirty because I have a macOS and I want to use he GPU. I happy compile vulkan with no issues, but I'm stuck here and I can't find the files needed to fill the directory "ggml-vulkan" I'm compiling using cmake -B build -DGGML_METAL=OFF -DGGML_VULKAN=ON I'm following this two tutorials: https://github.com/KhronosGroup/MoltenVK https://github.com/ollama/ollama https://github.com/ollama/ollama/issues/1016 What should be my next move? Thank you. ### Relevant log output ```shell CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory): add_subdirectory given source "ggml-vulkan" which is not an existing directory. Call Stack (most recent call first): ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend) After I create the directory: CMake Error at ml/backend/ggml/ggml/src/CMakeLists.txt:257 (add_subdirectory): The source directory /Users/luislourenco/Downloads/ollama/ml/backend/ggml/ggml/src/ggml-vulkan does not contain a CMakeLists.txt file. Call Stack (most recent call first): ml/backend/ggml/ggml/src/CMakeLists.txt:313 (ggml_add_backend) ``` ### OS macOS ### GPU AMD ### CPU Intel ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-28 23:07:05 -05:00
Author
Owner

@AbduEhab commented on GitHub (Feb 20, 2025):

I am having the same issue running on a clean arch installation. AMD CPU and GPU.

<!-- gh-comment-id:2672758554 --> @AbduEhab commented on GitHub (Feb 20, 2025): I am having the same issue running on a clean arch installation. AMD CPU and GPU.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#52380