The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MNISTKit with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/octadero/mnistkit.git
Reference: 0.0.7
Cloned https://github.com/octadero/mnistkit.git into spi-builder-workspace
SUCCESS checkout https://github.com/octadero/mnistkit.git at 0.0.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/Octadero/Unarchiver.git
Fetched https://github.com/Octadero/Unarchiver.git (0.19s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (0.29s)
Fetching https://github.com/Octadero/CZlib.git
Fetched https://github.com/Octadero/CZlib.git (0.21s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (0.28s)
Creating working copy for https://github.com/Octadero/Unarchiver.git
Working copy of https://github.com/Octadero/Unarchiver.git resolved at 0.0.5
Creating working copy for https://github.com/Octadero/CZlib.git
Working copy of https://github.com/Octadero/CZlib.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...
[1/3] Compiling Unarchiver Unarchiver.swift
[2/3] Emitting module Unarchiver
[3/3] 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
    public var hashValue: Int {
               ^
[7/9] Compiling MNISTKit MNISTFile.swift
[8/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
    public var hashValue: Int {
               ^
[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
            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.9 linux

Build Machine: Linux 2