Build Information
Failed to build MNISTKit, reference master (15ba9b
), with Swift 6.0 for Linux on 26 Nov 2024 16:57:12 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.0-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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/octadero/mnistkit.git
Reference: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/octadero/mnistkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.29s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (0.48s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.68s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.46s)
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
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] 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):
[9/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)
[10/11] Compiling MNISTKit MNISTFile.swift
[11/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 {
BUILD FAILURE 6.0 linux