The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build swift-mdk with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/wang-bin/swift-mdk.git
Reference: v0.28.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/wang-bin/swift-mdk
 * tag               v0.28.0    -> FETCH_HEAD
HEAD is now at ac7f142 v0.28.0
Cloned https://github.com/wang-bin/swift-mdk.git
Revision (git rev-parse @):
ac7f14278e8932d7f1999ae801332a5f5348eec2
SUCCESS checkout https://github.com/wang-bin/swift-mdk.git at v0.28.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/wang-bin/swift-mdk.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
[1397/66414716] Downloading https://github.com/wang-bin/mdk-sdk/releases/download/v0.28.0/mdk-sdk-apple.zip
Downloading binary artifact https://github.com/wang-bin/mdk-sdk/releases/download/v0.28.0/mdk-sdk-apple.zip
Downloaded https://github.com/wang-bin/mdk-sdk/releases/download/v0.28.0/mdk-sdk-apple.zip (6.46s)
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling swift_mdk swift_mdk.swift
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
[4/8] Compiling swift_mdk global.swift
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
[5/8] Compiling swift_mdk VideoFrame.swift
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module swift_mdk
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
[7/8] Compiling swift_mdk MediaInfo.swift
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
[8/8] Compiling swift_mdk Player.swift
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:173:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, unavailable)
     ^
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:196:6: warning: unknown platform 'visionOS' for attribute 'available'
    @available(visionOS, unavailable)
     ^
/host/spi-builder-workspace/Sources/swift-mdk/Player.swift:10:8: error: no such module 'MetalKit'
import MetalKit
       ^
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2