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 6.0 for Linux on 26 Jun 2025 22:14:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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:             6.0
Building package at path:  $PWD
https://github.com/schwa/MetalCompilerPlugin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:f0ebbd71bee66c692411a61ab9a7ee6edc82316b7a7b4c6173cc06c00f20ed39
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-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: 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'\''
  1 | import Foundation
  2 | import os
    |        `- error: no such module '\''os'\''
  3 | @preconcurrency import PackagePlugin
  4 |
'
)>
BUILD FAILURE 6.0 linux