Skip to content

[Parity] error: unable to spawn process 'metal' (No such file or directory) #9202

@kcieplak

Description

@kcieplak

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.

Description

https://github.com/susandoggie/doggie.git
Linux Ubuntu 20.04

The following package does not build using the 'swifbuild' backend but does with 'native'

swift build `--buildsystem=swiftbuild` fails to build package
info: Compile SVGLightingKernel.metal
    cd /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie
    metal -c -target air64-unknown-linux-gnu -I/workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Products/Debug-linux/include -F/workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Products/Debug-linux -isysroot / -fmetal-math-mode\=fast -fmetal-math-fp32-functions\=fast -serialize-diagnostics /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGLightingKernel.dia -o /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGLightingKernel.air -MMD -MT dependencies -MF /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGLightingKernel.dat /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/Sources/DoggieGPU/CoreImage/Shaders/SVGLightingKernel.metal
info: Compile SVGDisplacementMapKernel.metal
    cd /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie
    metal -c -target air64-unknown-linux-gnu -I/workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Products/Debug-linux/include -F/workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Products/Debug-linux -isysroot / -fmetal-math-mode\=fast -fmetal-math-fp32-functions\=fast -serialize-diagnostics /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGDisplacementMapKernel.dia -o /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGDisplacementMapKernel.air -MMD -MT dependencies -MF /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/.build-swiftbuild/x86_64-unknown-linux-gnu/Intermediates.noindex/Doggie.build/Debug-linux/Doggie_DoggieGPU.build/Metal/SVGDisplacementMapKernel.dat /workspace/spi-workdir/8F4396F5-D96C-499C-A8D8-2CFD020C9435/doggie/Sources/DoggieGPU/CoreImage/Shaders/SVGDisplacementMapKernel.metal
error: unable to spawn process 'metal' (No such file or directory)
error: unable to spawn process 'metal' (No such file or directory)
error: unable to spawn process 'metal' (No such file or directory)
error: unable to spawn process 'metal' (No such file or directory)
error: unable to spawn process 'metal' (No such file or directory)
error: unable to spawn process 'metal' (No such file or directory)
info: clang version 17.0.0 (https://github.com/swiftlang/llvm-project.git 03f1c7896cf606db175b33214fd4ea1357623f2d)
  

Expected behavior

Builds

Actual behavior

Fails to build

Steps to reproduce

git clone https://github.com/susandoggie/doggie.git
swift build --build-system=swiftbuild

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions