Build Information
Failed to build FuturaLog with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-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/kaqu/futuralog.git
Reference: 0.6.0
Cloned https://github.com/kaqu/futuralog.git into spi-builder-workspace
SUCCESS checkout https://github.com/kaqu/futuralog.git at 0.6.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/15] Compiling FuturaLog Logger.swift
[2/15] Compiling FuturaLog FlatLog.swift
[3/16] Compiling FuturaLog LogServer.swift
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7: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:7: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:7: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:50:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: serverURL.appendingPathComponent("uploadLogs"))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:54:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
logServerSession.dataTask(with: request).resume()
~~~~~~~~~~~~~~~~ ^~~~~~~~
[4/16] Compiling FuturaLog LogMemoryStorage.swift
[5/16] Compiling FuturaLog LogPrinter.swift
[6/16] Compiling FuturaLog LogReceiver.swift
[7/16] Compiling FuturaLog LogStorage.swift
[8/16] 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 {
^
[9/16] 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 {
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Compiling FuturaLog LogEmitter.swift
[11/16] Compiling FuturaLog LogFilePrinter.swift
[12/16] Compiling FuturaLog LogFileStorage.swift
[13/16] Compiling FuturaLog LogFormatter.swift
[14/16] Emitting module FuturaLog
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/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:7: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:7: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:7:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
[15/16] Compiling FuturaLog CrashCatcher.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/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/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
NSSetUncaughtExceptionHandler(exceptionLogHandler);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
NSSetUncaughtExceptionHandler(exceptionVoidHandler);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[16/16] Compiling FuturaLog Log.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
^~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/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/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
NSSetUncaughtExceptionHandler(exceptionLogHandler);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
NSSetUncaughtExceptionHandler(exceptionVoidHandler);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1