Build Information
Failed to build MNISTKit, reference 0.0.7 (15ba9b
), with Swift 6.2 (beta) for Android on 17 Jun 2025 18:53:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/octadero/mnistkit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/Octadero/Unarchiver.git
[1/24] Fetching unarchiver
Fetched https://github.com/Octadero/Unarchiver.git from cache (0.39s)
Computing version for https://github.com/Octadero/Unarchiver.git
Computed https://github.com/Octadero/Unarchiver.git at 0.0.5 (1.14s)
Fetching https://github.com/Octadero/CZlib.git
[1/15] Fetching czlib
Fetched https://github.com/Octadero/CZlib.git from cache (0.35s)
Computing version for https://github.com/Octadero/CZlib.git
Computed https://github.com/Octadero/CZlib.git at 0.0.5 (1.24s)
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
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-8C5A4AE7A8CE2BA.txt
[4/6] Compiling Unarchiver Unarchiver.swift
[5/6] Compiling Unarchiver Data.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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
40 | switch self {
41 | case .label(stride: .train):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[9/11] Compiling MNISTKit MNISTFile.swift
[10/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 [#DeprecatedDeclaration]
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 [#DeprecatedDeclaration]
40 | switch self {
41 | case .label(stride: .train):
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[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.2 android