Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLAMA_BUILD_SERVER=1 make command execution error #2096

Closed
stoneLee81 opened this issue Jul 4, 2023 · 3 comments · Fixed by #2098
Closed

LLAMA_BUILD_SERVER=1 make command execution error #2096

stoneLee81 opened this issue Jul 4, 2023 · 3 comments · Fixed by #2098

Comments

@stoneLee81
Copy link

stoneLee81 commented Jul 4, 2023

I execute the LLAMA_BUILD_SERVER=1 make command in the root directory of the llama.cpp project, But compilation fails with below error

I llama.cpp build info:
I UNAME_S: Darwin
I UNAME_P: arm
I UNAME_M: arm64
I CFLAGS: -I. -O3 -std=c11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -pthread -DGGML_USE_K_QUANTS -DGGML_USE_ACCELERATE
I CXXFLAGS: -I. -I./examples -O3 -std=c++11 -fPIC -DNDEBUG -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function -Wno-multichar -pthread -DGGML_USE_K_QUANTS
I LDFLAGS: -framework Accelerate
I CC: Apple clang version 14.0.3 (clang-1403.0.22.14.1)
I CXX: Apple clang version 14.0.3 (clang-1403.0.22.14.1)

make: *** No rule to make target private', needed by server'. Stop.

I don't know what went wrong, causing the failure

os: Ventura 13.4.1 m1max
gcc: Apple clang version 14.0.3 (clang-1403.0.22.14.1)

@Green-Sky
Copy link
Collaborator

try to install gmake via brew, or use the cmake project

@SlyEcho
Copy link
Collaborator

SlyEcho commented Jul 4, 2023

It's caused by Apple using a very old GNU Make version.

@SlyEcho
Copy link
Collaborator

SlyEcho commented Jul 4, 2023

@Green-Sky, I planned to fix this, I will make a quick PR, alright?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants