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 main (944b19), with Swift 6.0 for Linux on 26 Jun 2025 22:14:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 944b197 github.com is upset by comments in JSON code blocks.
Cloned https://github.com/schwa/MetalCompilerPlugin.git
Revision (git rev-parse @):
944b197370ee78d766a4c5364631ae57063bbd31
SUCCESS checkout https://github.com/schwa/MetalCompilerPlugin.git at main
========================================
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-4609320-3":/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