-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add notes on possible additional xcode setup for mac users #48
base: main
Are you sure you want to change the base?
Conversation
When trying to install Orca on mac this message appeared: "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" The instructions as explained here solve the issue: gfx-rs/gfx#2309 (comment)
I was a little confused at first by what the switch command does (the last sentence can sound like the command makes sure Xcode.app is installed). I would maybe reword it in a more verbose/explicit way, eg:
Is that correct? If so I can make that change myself when I'm back at my work computer, or you can do it and I'll merge it. |
I'm confused by this because I'm pretty sure I have not installed full Xcode on my Mac, and yet have had no trouble running these utilities. Can we confirm what version of Mac you (the OP) are using and which Xcode-related utilities are installed when you don't download the full app? |
As for system info, I have an M2 macbook air running MacOS 14.1.1 (23B81)
I do not believe I had run xcode-select or installed xcode since updating to 14, but I am fairly sure I had at least run xcode-select on prior versions of MacOS. I started with just trying to run ~/.pyenv/versions/3.10.7/bin/python orca dev build-runtime
Building Orca platform layer...
xcrun: error: unable to find utility "metal", not a developer tool or in PATH
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal
Task failed with 1 error:
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal My search for that error led to the fix I linked in the PR description. I have tried uninstalling both xcode and the xcode cli tools from and tried just reinstalling via (*main) λ /Users/michael/.pyenv/versions/3.12.0/bin/python orca dev build-runtime
Building Orca platform layer...
xcrun: error: unable to find utility "metal", not a developer tool or in PATH
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal
Task failed with 1 error:
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal
(*main) λ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
(*main) λ /Users/michael/.pyenv/versions/3.12.0/bin/python orca dev build-runtime
Building Orca platform layer...
Building wasm3...
Building Orca runtime...
Task completed successfully.
sudo xcode-select --switch /Library/Developer/CommandLineTools
Password:
(*main) λ /Users/michael/.pyenv/versions/3.12.0/bin/python orca dev build-runtime
Building Orca platform layer...
xcrun: error: unable to find utility "metal", not a developer tool or in PATH
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal
Task failed with 1 error:
ERROR: The following command failed with code 72:
xcrun -sdk macosx metal -fno-fast-math -c -o build/mtl_renderer.air src/graphics/mtl_renderer.metal Using the Install the Orca dev tools. If on Windows, the tool can automatically add If on MacOS the above command fails with the error:
And |
When trying to install Orca on mac this message appeared: "xcrun: error: unable to find utility "metal", not a developer tool or in PATH" The instructions as explained here solve the issue: gfx-rs/gfx#2309 (comment)