The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build FuturaLog, reference 0.6.0 (349c53), with Swift 6.2 (beta) for Linux on 18 Jun 2025 03:27:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.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:             6.2
Building package at path:  $PWD
https://github.com/kaqu/futuralog.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/17] 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 [#DeprecatedDeclaration]
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[4/17] 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 [#DeprecatedDeclaration]
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[5/17] Compiling FuturaLog Logger.swift
[6/17] Compiling FuturaLog FlatLog.swift
[7/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.
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:50:23: error: cannot find 'URLRequest' in scope
48 |
49 |     private func uploadLogs() {
50 |         var request = URLRequest(url: serverURL.appendingPathComponent("uploadLogs"))
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpBody = try? Logger.jsonEncoder.encode(LogPackage(applicationID: applicationID, environment: environment, sessionID: Logger.sessionID, logs: logsBuffer))
52 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:54:26: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
52 |         request.httpMethod = "POST"
53 |         request.allHTTPHeaderFields = ["Authorization":"Bearer \(accessToken)"]
54 |         logServerSession.dataTask(with: request).resume()
   |                          `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
55 |         logsBuffer = []
56 |         // TODO: think about logging failure and retry
[8/18] Compiling FuturaLog LogMemoryStorage.swift
[9/18] Compiling FuturaLog LogPrinter.swift
[10/18] Compiling FuturaLog CrashCatcher.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 6 |         switch mode {
 7 |         case .logging:
 8 |             NSSetUncaughtExceptionHandler(exceptionLogHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 9 |             signal(SIGABRT, signalLogHandler);
10 |             signal(SIGILL, signalLogHandler);
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
14 |             signal(SIGPIPE, signalLogHandler);
15 |         case .hiding:
16 |             NSSetUncaughtExceptionHandler(exceptionVoidHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
17 |             signal(SIGABRT, signalVoidHandler);
18 |             signal(SIGILL, signalVoidHandler);
[11/18] Compiling FuturaLog Log.swift
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:8:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 6 |         switch mode {
 7 |         case .logging:
 8 |             NSSetUncaughtExceptionHandler(exceptionLogHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
 9 |             signal(SIGABRT, signalLogHandler);
10 |             signal(SIGILL, signalLogHandler);
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:16:13: error: cannot find 'NSSetUncaughtExceptionHandler' in scope
14 |             signal(SIGPIPE, signalLogHandler);
15 |         case .hiding:
16 |             NSSetUncaughtExceptionHandler(exceptionVoidHandler);
   |             `- error: cannot find 'NSSetUncaughtExceptionHandler' in scope
17 |             signal(SIGABRT, signalVoidHandler);
18 |             signal(SIGILL, signalVoidHandler);
[12/18] Compiling FuturaLog LogEmitter.swift
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
45 |
46 |         if !FileManager.default.fileExists(atPath: filePath) {
47 |             FileManager.default.createFile(atPath: filePath, contents: Data(), attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
48 |         } else { /* nothing */ }
49 |
[13/18] Compiling FuturaLog LogFilePrinter.swift
/host/spi-builder-workspace/Sources/FuturaLog/LogFilePrinter.swift:47:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
45 |
46 |         if !FileManager.default.fileExists(atPath: filePath) {
47 |             FileManager.default.createFile(atPath: filePath, contents: Data(), attributes: nil)
   |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
48 |         } else { /* nothing */ }
49 |
[14/18] Compiling FuturaLog LogFileStorage.swift
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:50:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 48 |
 49 |         if !FileManager.default.fileExists(atPath: filePath) {
 50 |             FileManager.default.createFile(atPath: filePath, contents: Data(), attributes: nil)
    |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 51 |         } else { /* nothing */ }
 52 |
[15/18] Compiling FuturaLog LogFormatter.swift
/host/spi-builder-workspace/Sources/FuturaLog/LogFileStorage.swift:50:33: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 48 |
 49 |         if !FileManager.default.fileExists(atPath: filePath) {
 50 |             FileManager.default.createFile(atPath: filePath, contents: Data(), attributes: nil)
    |                                 `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
 51 |         } else { /* nothing */ }
 52 |
[16/18] Compiling FuturaLog LogReceiver.swift
[17/18] Compiling FuturaLog LogStorage.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/18] Emitting module FuturaLog
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:32:51: error: cannot find type 'NSException' in scope
30 | }
31 |
32 | fileprivate func exceptionLogHandler(_ exception: NSException)-> Swift.Void {
   |                                                   `- error: cannot find type 'NSException' in scope
33 |     Logger.send(Log(.crash, message: "Exception: \(exception)\n\n\(Thread.callStackSymbols.joined(separator: "\n"))\n"))
34 |     Logger.flush()
/host/spi-builder-workspace/Sources/FuturaLog/CrashCatcher.swift:43:52: error: cannot find type 'NSException' in scope
41 | }
42 |
43 | fileprivate func exceptionVoidHandler(_ exception: NSException)-> Swift.Void { /* void */ }
   |                                                    `- error: cannot find type 'NSException' in scope
44 |
45 | fileprivate func signalVoidHandler(_ signal: Int32)-> Swift.Void { exit(signal) }
/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 [#DeprecatedDeclaration]
20 | extension LogEnvironment : Hashable {
21 |
22 |     public var hashValue: Int {
   |                `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'LogEnvironment' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
23 |         return "\(self.name)\(self.appVersion)\(self.platform ?? "N/A")\(self.osInfo ?? "N/A")\(self.info ?? "N/A")".hashValue
24 |     }
/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.
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:48: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
/host/spi-builder-workspace/Sources/FuturaLog/Server/LogServer.swift:7:98: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 5 |     public let allowedCategories: [LogCategory] = LogCategory.all
 6 |
 7 |     private let logServerSession: URLSession = URLSession(configuration: URLSessionConfiguration.ephemeral)
   |                                                                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
 8 |
 9 |     private let synchronizationQueue = DispatchQueue(label: "futura.log.server.syncQueue")
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
BUILD FAILURE 6.2 linux