The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FuturaLog with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/kaqu/futuralog.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/kaqu/futuralog
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 088587a Update README.md
Cloned https://github.com/kaqu/futuralog.git
Revision (git rev-parse @):
088587a555814bd6449253d5d18ddd181c2e6f29
SUCCESS checkout https://github.com/kaqu/futuralog.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/kaqu/futuralog.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] Compiling FuturaLog LogFileStorage.swift
[4/17] Compiling FuturaLog LogMemoryStorage.swift
[5/18] Compiling FuturaLog LogPrinter.swift
[6/18] Compiling FuturaLog LogStorage.swift
[7/18] Compiling FuturaLog Logger.swift
[8/18] Compiling FuturaLog FlatLog.swift
[9/18] Compiling FuturaLog LogEnvironment.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[10/18] Compiling FuturaLog LogPackage.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
[11/18] Compiling FuturaLog LogServer.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                                                         ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:59:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: serverURL.appendingPathComponent("uploadLogs"))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:63:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        logServerSession.dataTask(with: request).resume()
        ~~~~~~~~~~~~~~~~ ^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/18] Compiling FuturaLog Log.swift
[13/18] Compiling FuturaLog LogFormatter.swift
[14/18] Compiling FuturaLog LogReceiver.swift
[15/18] Compiling FuturaLog LogFilePrinter.swift
[16/18] Emitting module FuturaLog
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                                                         ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
[17/18] Compiling FuturaLog CrashCatcher.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionLogHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionVoidHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[18/18] Compiling FuturaLog FlushableTextOutputStream.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionLogHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionVoidHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling FuturaLog FlushableTextOutputStream.swift
[3/5] Compiling FuturaLog LogServer.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                                                         ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:59:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url: serverURL.appendingPathComponent("uploadLogs"))
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:63:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        logServerSession.dataTask(with: request).resume()
        ~~~~~~~~~~~~~~~~ ^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module FuturaLog
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogEnvironment.swift:22:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead
    public var hashValue: Int {
               ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                               ^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:16:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
    private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
                                                                         ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
[5/8] Compiling FuturaLog CrashCatcher.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
                                                  ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
                                                   ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionLogHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashHandling/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
            NSSetUncaughtExceptionHandler(exceptionVoidHandler);
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6/8] Compiling FuturaLog LogPrinter.swift
[7/8] Compiling FuturaLog LogFilePrinter.swift
[8/8] Compiling FuturaLog LogFileStorage.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1