Build Information
Failed to build MNISTKit, reference 0.0.7 (15ba9b
), with Swift 6.1 for Linux on 25 Apr 2025 09:47:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/octadero/mnistkit.git
Reference: 0.0.7
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/octadero/mnistkit
* tag 0.0.7 -> FETCH_HEAD
HEAD is now at 15ba9ba Update DataSetProvider.swift
Cloned https://github.com/octadero/mnistkit.git
Revision (git rev-parse @):
15ba9ba1a7e216ba427fbc994e842bed2137142c
SUCCESS checkout https://github.com/octadero/mnistkit.git at 0.0.7
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/octadero/mnistkit.git
https://github.com/octadero/mnistkit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "unarchiver",
"requirement" : {
"range" : [
{
"lower_bound" : "0.0.5",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Octadero/Unarchiver.git"
}
],
"manifest_display_name" : "MNISTKit",
"name" : "MNISTKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MNISTKit",
"targets" : [
"MNISTKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "MNISTKitTests",
"module_type" : "SwiftTarget",
"name" : "MNISTKitTests",
"path" : "Tests/MNISTKitTests",
"sources" : [
"MNISTKitTests.swift"
],
"target_dependencies" : [
"MNISTKit"
],
"type" : "test"
},
{
"c99name" : "MNISTKit",
"module_type" : "SwiftTarget",
"name" : "MNISTKit",
"path" : "Sources/MNISTKit",
"product_dependencies" : [
"Unarchiver"
],
"product_memberships" : [
"MNISTKit"
],
"sources" : [
"DataSetProvider.swift",
"MNISTFile.swift",
"MNISTKit.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.42s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (1.28s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.28s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (1.19s)
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.git resolved at 0.0.5
Creating working copy for https://github.com/Octadero/Unarchiver.git
Working copy of https://github.com/Octadero/Unarchiver.git resolved at 0.0.5
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/6] Compiling Unarchiver Unarchiver.swift
[5/6] Emitting module Unarchiver
[6/6] Compiling Unarchiver Data.swift
[8/11] Compiling MNISTKit DataSetProvider.swift
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 |
52 | let urlSession = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | let task = urlSession.downloadTask(with: url, completionHandler: { (localFileURL, response, error) in
54 | if let error = error {
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
50 | }
51 |
52 | let urlSession = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
53 | let task = urlSession.downloadTask(with: url, completionHandler: { (localFileURL, response, error) in
54 | if let error = error {
[9/11] Emitting module MNISTKit
/host/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
37 |
38 | /// Simple, but fast work.
39 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
40 | switch self {
41 | case .label(stride: .train):
[10/11] Compiling MNISTKit MNISTKit.swift
/host/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
37 |
38 | /// Simple, but fast work.
39 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
40 | switch self {
41 | case .label(stride: .train):
/host/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:90:21: warning: capture of 'self' with non-sendable type 'MNISTDataset' in a '@Sendable' closure; this is an error in the Swift 6 language mode
74 |
75 | /// Represents list of MNIST files in dataset.
76 | public class MNISTDataset {
| `- note: class 'MNISTDataset' does not conform to the 'Sendable' protocol
77 | public private(set) var files = [MNISTFile]()
78 |
:
88 | DispatchQueue.global().async {
89 | do {
90 | try self.prepare()
| `- warning: capture of 'self' with non-sendable type 'MNISTDataset' in a '@Sendable' closure; this is an error in the Swift 6 language mode
91 | } catch {
92 | self.loadCallback(error)
[11/11] Compiling MNISTKit MNISTFile.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
warning: 'czlib': ignoring declared target(s) 'CZlib' in the system package
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
warning: you may be able to install libz using your system-packager:
apt-get install libz-dev
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling Unarchiver Unarchiver.swift
[3/4] Emitting module Unarchiver
[4/4] Compiling Unarchiver Data.swift
[6/9] Compiling MNISTKit MNISTKit.swift
/host/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
37 |
38 | /// Simple, but fast work.
39 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
40 | switch self {
41 | case .label(stride: .train):
[7/9] Emitting module MNISTKit
/host/spi-builder-workspace/Sources/MNISTKit/MNISTKit.swift:39:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
37 |
38 | /// Simple, but fast work.
39 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'MNISTFileKind' to 'Hashable' by implementing 'hash(into:)' instead
40 | switch self {
41 | case .label(stride: .train):
[8/9] Compiling MNISTKit MNISTFile.swift
[9/9] Compiling MNISTKit DataSetProvider.swift
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:30: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
50 | }
51 |
52 | let urlSession = URLSession(configuration: URLSessionConfiguration.default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
53 | let task = urlSession.downloadTask(with: url, completionHandler: { (localFileURL, response, error) in
54 | if let error = error {
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
50 | }
51 |
52 | let urlSession = URLSession(configuration: URLSessionConfiguration.default)
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
53 | let task = urlSession.downloadTask(with: url, completionHandler: { (localFileURL, response, error) in
54 | if let error = error {
BUILD FAILURE 6.1 linux