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

Building on macOS (Metal): "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" #2031

Closed
ChristianWeyer opened this issue Apr 14, 2024 · 1 comment
Labels
bug Something isn't working unconfirmed

Comments

@ChristianWeyer
Copy link

ChristianWeyer commented Apr 14, 2024

LocalAI version:

Commit b739cbb

Environment, CPU architecture, OS, and Version:

macOS 14.4.1
MBP Mx Max

Darwin MacBook-Pro 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:37 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6031 arm64

Describe the bug

Compiling (with all documented pre-reqs from https://localai.io/basics/build/)

Running into this error:
xcrun: error: unable to find utility "metal", not a developer tool or in PATH

To Reproduce

Check out commit b739cbb

make clean

make build

Expected behavior

Successful compilation

Logs

[  1%] Compiling Metal kernels
xcrun: error: unable to find utility "metal", not a developer tool or in PATH
make[4]: *** [bin/default.metallib] Error 72
make[3]: *** [CMakeFiles/ggml-metal.dir/all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [grpc-server] Error 2
make: *** [backend/cpp/llama/grpc-server] Error 2

My previous checkout built successfully, BTW 🙂 (not sure which commit).
Now I do not have a working version... 🙈

@ChristianWeyer ChristianWeyer added bug Something isn't working unconfirmed labels Apr 14, 2024
@ChristianWeyer ChristianWeyer changed the title "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" Building on macOS (Metal): "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" Apr 14, 2024
@ChristianWeyer
Copy link
Author

Turns out that maybe some recent XCode update changed things...

This fix helped me:
gfx-rs/gfx#2309 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant