Document requirement for separate metallib installation with Xcode 26.1.1

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: infrastructure
    • None
    • Environment:

      Tahoe 26.1 with Xcode 26.1.1

    • arm
    • os_x

      Unsure if it's an issue with my local setup, but I can't build JDK with the latest XCode 26.1.1:

      ```
      checking for metal... /nix/store/h031hkjqbrkljqs2n440jla3kk5gjzkn-Xcode26.1.1-MacOSX26/Xcode/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal
      checking for metallib... [not found]
      checking if metallib can be run using xcrun... no
      configure: error: XCode tool 'metallib' neither found in path nor with xcrun
      ```

      I have built a developer kit and compile things with Nix on macOS, but I don't think the issue is related to that. Looking at previous configure builds, I see:

      ```
      checking for metal... /nix/store/vhsix1jn849mpxggwbw2zh1nbxpy0grc-Xcode16.2-MacOSX15/Xcode/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal
      checking for metallib... /nix/store/vhsix1jn849mpxggwbw2zh1nbxpy0grc-Xcode16.2-MacOSX15/Xcode/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metallib
      ```

      I've looked at the base /Applications/Xcode.app from which the devkit is built and `metal` is indeed there but metallib no longer is:

      ```
      % l metal*
      -rwxr-xr-x 1 g staff 105K 7 Nov 10:37 metal
      -rwxr-xr-x 1 g staff 136K 7 Nov 10:37 metal-package-builder
      % pwd
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
      ```

      Also tried finding it via `xcrun` but nothing is found:

      ```
      % xcrun -sdk macosx metallib
      xcrun: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.1.sdk -find metallib 2> /dev/null' failed with exit code 17664: (null) (errno=No such file or directory)
      xcrun: error: unable to find utility "metallib", not a developer tool or in PATH
      ```

            Assignee:
            Galder ZamarreƱo
            Reporter:
            Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: