Build Information
Failed to build FuturaLog with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-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: 0.6.0
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
* tag 0.6.0 -> FETCH_HEAD
HEAD is now at 349c53d adding flat log and LogPackage optimization
Cloned https://github.com/kaqu/futuralog.git
Revision (git rev-parse @):
349c53dc57234a8f9bf2d26a895571fc0f010fa5
SUCCESS checkout https://github.com/kaqu/futuralog.git at 0.6.0
========================================
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-4609320-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 LogEmitter.swift
[4/17] Compiling FuturaLog LogFilePrinter.swift
[5/17] 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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[6/17] 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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[7/18] Compiling FuturaLog LogFileStorage.swift
[8/18] Compiling FuturaLog LogFormatter.swift
[9/18] Compiling FuturaLog LogMemoryStorage.swift
[10/18] Compiling FuturaLog LogPrinter.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/18] Compiling FuturaLog LogReceiver.swift
[12/18] Compiling FuturaLog LogStorage.swift
[13/18] 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)
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
[14/18] 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()
~~~~~~~~~~~~~~~~ ^~~~~~~~
[15/18] Compiling FuturaLog Logger.swift
[16/18] Compiling FuturaLog FlatLog.swift
[17/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 {
^
[18/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 {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] 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()
~~~~~~~~~~~~~~~~ ^~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling FuturaLog Log.swift
[4/5] 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);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/5] 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)
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
[6/14] Compiling FuturaLog Logger.swift
[7/14] Compiling FuturaLog LogPackage.swift
[8/14] Compiling FuturaLog FlatLog.swift
[9/14] Compiling FuturaLog LogPrinter.swift
[10/14] Compiling FuturaLog LogReceiver.swift
[11/14] Compiling FuturaLog LogFormatter.swift
[12/14] Compiling FuturaLog LogMemoryStorage.swift
[13/14] Compiling FuturaLog LogFilePrinter.swift
[14/14] Compiling FuturaLog LogFileStorage.swift
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2