The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MNISTKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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:             5.10
Building package at path:  $workDir
https://github.com/octadero/mnistkit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.20s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (0.38s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.21s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.37s)
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 Data.swift
[5/6] Compiling Unarchiver Unarchiver.swift
[6/6] Emitting module Unarchiver
[8/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
    public var hashValue: Int {
               ^
[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
    public var hashValue: Int {
               ^
[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
            let urlSession = URLSession(configuration: URLSessionConfiguration.default)
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let urlSession = URLSession(configuration: URLSessionConfiguration.default)
                                                       ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] 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
    public var hashValue: Int {
               ^
[3/3] 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
            let urlSession = URLSession(configuration: URLSessionConfiguration.default)
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/MNISTKit/DataSetProvider.swift:52:80: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let urlSession = URLSession(configuration: URLSessionConfiguration.default)
                                                       ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1