Open
Description
Building from project root or example.
> cargo build # Fail
> cd examples/simple
> cargo build # Fail
leads to the following error:
cargo build
Compiling llama-cpp-sys-2 v0.1.83 (/llama-cpp-rs/llama-cpp-sys-2)
error: failed to run custom build command for `llama-cpp-sys-2 v0.1.83 (/llama-cpp-rs/llama-cpp-sys-2)`
Caused by:
process didn't exit successfully: `/llama-cpp-rs/target/debug/build/llama-cpp-sys-2-905f5f3cc6aa6cb5/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=TARGET
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_aarch64-apple-darwin
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS_aarch64_apple_darwin
cargo:rerun-if-env-changed=BINDGEN_EXTRA_CLANG_ARGS
cargo:rerun-if-changed=wrapper.h
--- stderr
./llama.cpp/include/llama.h:4:10: fatal error: 'ggml.h' file not found
thread 'main' panicked at llama-cpp-sys-2/build.rs:197:10:
Failed to generate bindings: ClangDiagnostic("./llama.cpp/include/llama.h:4:10: fatal error: 'ggml.h' file not found\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
However, building individually llama-cpp-2
& llama-cpp-sys-2
works successfully.
> cd llama-cpp-2
> cargo build # Pass
> cd llama-cpp-sys-2
> cargo build # Pass
What need to be done to have the project built on Mac?
I've tried to explicitly declare --features metal
and it doesn't fix the problem.
I've followed steps described in the Hacking
section of the readme https://github.com/utilityai/llama-cpp-rs/tree/main?tab=readme-ov-file#hacking
Metadata
Metadata
Assignees
Labels
No labels