The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build MetalCompilerPlugin, reference 0.1.0 (1db3b5), with Swift 5.10 for Linux on 26 Jun 2025 22:13:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/schwa/MetalCompilerPlugin.git
Reference: 0.1.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/schwa/MetalCompilerPlugin
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 1db3b5d Still can't get unit tests working on CLI.
Cloned https://github.com/schwa/MetalCompilerPlugin.git
Revision (git rev-parse @):
1db3b5dcabd648e0316f3a472646e72af24a5bde
SUCCESS checkout https://github.com/schwa/MetalCompilerPlugin.git at 0.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/schwa/MetalCompilerPlugin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:c30bb8beee7254e839cc0142f4ae78578b8fc8e8159324cc3637097cc1b395b6
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
error: plugin compilation failed: <PluginCompilationResult(
    succeeded: false,
    commandLine: /usr/bin/swiftc -L /usr/lib/swift/pm/PluginAPI -lPackagePlugin -Xlinker -rpath -Xlinker /usr/lib/swift/pm/PluginAPI -g -swift-version 5 -package-description-version 5.7.0 -I /usr/lib/swift/pm/PluginAPI -parse-as-library -Xfrontend -serialize-diagnostics-path -Xfrontend /host/spi-builder-workspace/.build/plugins/cache/MetalCompilerPlugin.dia /host/spi-builder-workspace/Plugins/MetalCompilerPlugin/MetalPlugin.swift -o /host/spi-builder-workspace/.build/plugins/cache/MetalCompilerPlugin,
    executable: ./.build/plugins/cache/MetalCompilerPlugin
    diagnostics: ./.build/plugins/cache/MetalCompilerPlugin.dia
    compilerOutput: 'error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Plugins/MetalCompilerPlugin/MetalPlugin.swift:2:8: error: no such module '\''os'\''
import os
       ^
'
)>
BUILD FAILURE 5.10 linux