Build Information
Failed to build swift-log-matrix, reference main (660695
), with Swift 6.1 for Wasm on 28 May 2025 13:55:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/swift-log-matrix.git
Reference: main
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/kiliankoe/swift-log-matrix
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 660695f update readme screenshot
Cloned https://github.com/kiliankoe/swift-log-matrix.git
Revision (git rev-parse @):
660695f3632217986ca037457c8f22b1bc9c3c0a
SUCCESS checkout https://github.com/kiliankoe/swift-log-matrix.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/kiliankoe/swift-log-matrix.git
https://github.com/kiliankoe/swift-log-matrix.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "swift-log-matrix",
"name" : "swift-log-matrix",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "tvos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "LoggingMatrix",
"targets" : [
"LoggingMatrix"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingMatrixTests",
"module_type" : "SwiftTarget",
"name" : "LoggingMatrixTests",
"path" : "Tests/LoggingMatrixTests",
"sources" : [
"LoggingMatrixTests.swift"
],
"target_dependencies" : [
"LoggingMatrix"
],
"type" : "test"
},
{
"c99name" : "LoggingMatrix",
"module_type" : "SwiftTarget",
"name" : "LoggingMatrix",
"path" : "Sources/LoggingMatrix",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"LoggingMatrix"
],
"sources" : [
"LoggingMatrixError.swift",
"MatrixLogHandler.swift",
"Message.swift",
"Metadata+merged.swift",
"URLSession+async.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.44s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.01s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging LogHandler.swift
[5/8] Compiling Logging Locks.swift
[6/8] Compiling Logging MetadataProvider.swift
[7/8] Emitting module Logging
[8/8] Compiling Logging Logging.swift
[10/15] Compiling LoggingMatrix Message.swift
[11/15] Compiling LoggingMatrix MatrixLogHandler.swift
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private var dateFormatter: DateFormatter
17 |
18 | public static var defaultDateFormatter: DateFormatter = {
| |- warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultDateFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | let dateFormatter = DateFormatter()
20 | dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
7 |
8 | public class MatrixLogHandler: LogHandler {
9 | private var homeserver: URL
| `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
10 | private var roomID: String
11 | private var accessToken: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:108:53: error: cannot find 'URLRequest' in scope
106 | urlComponents.queryItems = [URLQueryItem(name: "access_token", value: self.accessToken)]
107 |
108 | guard var request = urlComponents.url.map({ URLRequest(url: $0) }) else { throw LoggingMatrixError.invalidURL }
| `- error: cannot find 'URLRequest' in scope
109 | request.httpMethod = "POST"
110 | request.httpBody = payload
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:114:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 | request.addValue("application/json", forHTTPHeaderField: "Accept")
113 |
114 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
115 | do {
116 | _ = try JSONDecoder().decode(EventResponse.self, from: data)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Compiling LoggingMatrix Metadata+merged.swift
[13/15] Compiling LoggingMatrix LoggingMatrixError.swift
[14/15] Emitting module LoggingMatrix
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | private var dateFormatter: DateFormatter
17 |
18 | public static var defaultDateFormatter: DateFormatter = {
| |- warning: static property 'defaultDateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultDateFormatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | let dateFormatter = DateFormatter()
20 | dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
7 |
8 | public class MatrixLogHandler: LogHandler {
9 | private var homeserver: URL
| `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
10 | private var roomID: String
11 | private var accessToken: String
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
9 | try await withCheckedThrowingContinuation { continuation in
[15/15] Compiling LoggingMatrix URLSession+async.swift
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
9 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:8:28: error: cannot find type 'URLRequest' in scope
6 |
7 | extension URLSession {
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | try await withCheckedThrowingContinuation { continuation in
10 | let task = dataTask(with: request) { data, response, error in
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging Locks.swift
[4/6] Compiling Logging LogHandler.swift
[5/6] Emitting module Logging
[6/6] Compiling Logging Logging.swift
[8/13] Compiling LoggingMatrix Metadata+merged.swift
[9/13] Compiling LoggingMatrix URLSession+async.swift
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
9 | try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:8:28: error: cannot find type 'URLRequest' in scope
6 |
7 | extension URLSession {
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
9 | try await withCheckedThrowingContinuation { continuation in
10 | let task = dataTask(with: request) { data, response, error in
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/13] Compiling LoggingMatrix LoggingMatrixError.swift
[11/13] Compiling LoggingMatrix Message.swift
[12/13] Emitting module LoggingMatrix
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
/host/spi-builder-workspace/Sources/LoggingMatrix/URLSession+async.swift:7:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
5 | #endif
6 |
7 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
8 | func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
9 | try await withCheckedThrowingContinuation { continuation in
[13/13] Compiling LoggingMatrix MatrixLogHandler.swift
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
6 | #endif
7 |
8 | public class MatrixLogHandler: LogHandler {
| `- warning: deprecated default implementation is used to satisfy instance method 'log(level:message:metadata:source:file:function:line:)' required by protocol 'LogHandler': You should implement this method instead of using the default implementation
9 | private var homeserver: URL
10 | private var roomID: String
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/LogHandler.swift:209:17: note: 'log(level:message:metadata:source:file:function:line:)' declared here
133 | /// - function: The function the log line was emitted from.
134 | /// - line: The line the log message was emitted from.
135 | func log(
| `- note: requirement 'log(level:message:metadata:source:file:function:line:)' declared here
136 | level: Logger.Level,
137 | message: Logger.Message,
:
207 | extension LogHandler {
208 | @available(*, deprecated, message: "You should implement this method instead of using the default implementation")
209 | public func log(
| `- note: 'log(level:message:metadata:source:file:function:line:)' declared here
210 | level: Logger.Level,
211 | message: Logger.Message,
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:108:53: error: cannot find 'URLRequest' in scope
106 | urlComponents.queryItems = [URLQueryItem(name: "access_token", value: self.accessToken)]
107 |
108 | guard var request = urlComponents.url.map({ URLRequest(url: $0) }) else { throw LoggingMatrixError.invalidURL }
| `- error: cannot find 'URLRequest' in scope
109 | request.httpMethod = "POST"
110 | request.httpBody = payload
/host/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:114:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
112 | request.addValue("application/json", forHTTPHeaderField: "Accept")
113 |
114 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
115 | do {
116 | _ = try JSONDecoder().decode(EventResponse.self, from: data)
BUILD FAILURE 6.1 wasm