[GH-ISSUE #1539] CMake Error at CMakeLists.txt:491 (get_flags): get_flags Function invoked with incorrect arguments for function named: get_flags #840

Closed
opened 2026-04-12 10:30:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @0xdevalias on GitHub (Dec 15, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1539

It seems that there is an issue when trying to build on linux, at least in our runner environment:

-- Could not find nvcc, please set CUDAToolkit_ROOT.
  CMake Warning at CMakeLists.txt:318 (message):
    cuBLAS not found
  
  
  -- CUDA host compiler is GNU 
  CMake Error at CMakeLists.txt:491 (get_flags):
    get_flags Function invoked with incorrect arguments for function named:
    get_flags
  
  
  -- CMAKE_SYSTEM_PROCESSOR: x86_64
  -- x86 detected
  -- Configuring incomplete, errors occurred!
  llm/llama.cpp/generate_linux.go:24: running "cmake": exit status 1

See the following issue for more details:

If this is an issue in our environment, that's fair enough. I mostly wanted to make sure there was an issue captured here for the error message to assist others in future.

Originally created by @0xdevalias on GitHub (Dec 15, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1539 It seems that there is an issue when trying to build on linux, at least in our runner environment: ``` -- Could not find nvcc, please set CUDAToolkit_ROOT. CMake Warning at CMakeLists.txt:318 (message): cuBLAS not found -- CUDA host compiler is GNU CMake Error at CMakeLists.txt:491 (get_flags): get_flags Function invoked with incorrect arguments for function named: get_flags -- CMAKE_SYSTEM_PROCESSOR: x86_64 -- x86 detected -- Configuring incomplete, errors occurred! llm/llama.cpp/generate_linux.go:24: running "cmake": exit status 1 ``` See the following issue for more details: - https://github.com/Homebrew/homebrew-core/pull/157426 If this is an issue in our environment, that's fair enough. I mostly wanted to make sure there was an issue captured here for the error message to assist others in future.
Author
Owner

@mamccorm commented on GitHub (Dec 19, 2023):

+1 also encountering this

<!-- gh-comment-id:1862800379 --> @mamccorm commented on GitHub (Dec 19, 2023): +1 also encountering this
Author
Owner

@jrgleason commented on GitHub (Dec 21, 2023):

Encountering this when using WSL2

<!-- gh-comment-id:1865437537 --> @jrgleason commented on GitHub (Dec 21, 2023): Encountering this when using WSL2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#840