Build Information
Failed to build Flash, reference 0.3.0 (d6379f
), with Swift 6.1 for Wasm on 25 Jun 2025 15:02:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nixzhu/Flash.git
Reference: 0.3.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/nixzhu/Flash
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at d6379f8 update version
Cloned https://github.com/nixzhu/Flash.git
Revision (git rev-parse @):
d6379f88b4748812df24cc3e56237ad96db6fa8e
SUCCESS checkout https://github.com/nixzhu/Flash.git at 0.3.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/nixzhu/Flash.git
https://github.com/nixzhu/Flash.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "Flash",
"name" : "Flash",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "maccatalyst",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "Flash",
"targets" : [
"Flash"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FlashTests",
"module_type" : "SwiftTarget",
"name" : "FlashTests",
"path" : "Tests/FlashTests",
"sources" : [
"FlashTests.swift"
],
"target_dependencies" : [
"Flash"
],
"type" : "test"
},
{
"c99name" : "Flash",
"module_type" : "SwiftTarget",
"name" : "Flash",
"path" : "Sources/Flash",
"product_memberships" : [
"Flash"
],
"sources" : [
"FlashClient.swift",
"FlashHeaderField.swift",
"FlashMiddleware.swift",
"FlashRequest.swift",
"FlashResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling Flash FlashHeaderField.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module Flash
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | private let middlewares: [FlashMiddleware]
7 |
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/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | middlewares: [FlashMiddleware] = []
15 | ) {
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/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | middlewares: [FlashMiddleware] = []
15 | ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
6 | private let middlewares: [FlashMiddleware]
7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 | var urlRequest: URLRequest {
522 | get throws {
| `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 | let url: URL = try {
524 | var urlComponents = URLComponents()
[5/8] Compiling Flash FlashClient.swift
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | private let middlewares: [FlashMiddleware]
7 |
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/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | middlewares: [FlashMiddleware] = []
15 | ) {
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/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | middlewares: [FlashMiddleware] = []
15 | ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
6 | private let middlewares: [FlashMiddleware]
7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:34:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | do {
33 | let urlRequest = try request.urlRequest
34 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:48:36: error: 'nil' requires a contextual type
46 | else {
47 | assertionFailure("Invalid header field!")
48 | return nil
| `- error: 'nil' requires a contextual type
49 | }
50 |
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:33:30: warning: no calls to throwing functions occur within 'try' expression
31 |
32 | do {
33 | let urlRequest = try request.urlRequest
| `- warning: no calls to throwing functions occur within 'try' expression
34 | let (data, urlResponse) = try await session.data(for: urlRequest)
35 |
[6/8] Compiling Flash FlashMiddleware.swift
[7/8] Compiling Flash FlashResponse.swift
[8/8] Compiling Flash FlashRequest.swift
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 | var urlRequest: URLRequest {
522 | get throws {
| `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 | let url: URL = try {
524 | var urlComponents = URLComponents()
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:546:29: error: cannot find type 'URLRequest' in scope
544 | }()
545 |
546 | var urlRequest: URLRequest = .init(url: url, timeoutInterval: timeoutInterval)
| `- error: cannot find type 'URLRequest' in scope
547 | urlRequest.httpMethod = method.rawValue
548 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/7] Emitting module Flash
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | private let middlewares: [FlashMiddleware]
7 |
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/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | middlewares: [FlashMiddleware] = []
15 | ) {
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/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | middlewares: [FlashMiddleware] = []
15 | ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
6 | private let middlewares: [FlashMiddleware]
7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 | var urlRequest: URLRequest {
522 | get throws {
| `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 | let url: URL = try {
524 | var urlComponents = URLComponents()
[3/7] Compiling Flash FlashClient.swift
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | private let middlewares: [FlashMiddleware]
7 |
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/Flash/FlashClient.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | middlewares: [FlashMiddleware] = []
15 | ) {
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/Flash/FlashClient.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 | /// - middlewares: A list of middlewares to intercept requests or responses (default: `[]`).
12 | public init(
13 | session: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 | middlewares: [FlashMiddleware] = []
15 | ) {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:5:17: error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
3 | /// A Flash client.
4 | public struct FlashClient: Sendable {
5 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming struct 'FlashClient' has non-sendable type 'URLSession' (aka 'AnyObject')
6 | private let middlewares: [FlashMiddleware]
7 |
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:34:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
32 | do {
33 | let urlRequest = try request.urlRequest
34 | let (data, urlResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
35 |
36 | guard let httpURLResponse = urlResponse as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:48:36: error: 'nil' requires a contextual type
46 | else {
47 | assertionFailure("Invalid header field!")
48 | return nil
| `- error: 'nil' requires a contextual type
49 | }
50 |
/host/spi-builder-workspace/Sources/Flash/FlashClient.swift:33:30: warning: no calls to throwing functions occur within 'try' expression
31 |
32 | do {
33 | let urlRequest = try request.urlRequest
| `- warning: no calls to throwing functions occur within 'try' expression
34 | let (data, urlResponse) = try await session.data(for: urlRequest)
35 |
[4/7] Compiling Flash FlashResponse.swift
[5/7] Compiling Flash FlashHeaderField.swift
[6/7] Compiling Flash FlashMiddleware.swift
[7/7] Compiling Flash FlashRequest.swift
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:521:21: error: cannot find type 'URLRequest' in scope
519 | }
520 |
521 | var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
522 | get throws {
523 | let url: URL = try {
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:522:9: error: getter of noncopyable type cannot be 'async' or 'throws'
520 |
521 | var urlRequest: URLRequest {
522 | get throws {
| `- error: getter of noncopyable type cannot be 'async' or 'throws'
523 | let url: URL = try {
524 | var urlComponents = URLComponents()
/host/spi-builder-workspace/Sources/Flash/FlashRequest.swift:546:29: error: cannot find type 'URLRequest' in scope
544 | }()
545 |
546 | var urlRequest: URLRequest = .init(url: url, timeoutInterval: timeoutInterval)
| `- error: cannot find type 'URLRequest' in scope
547 | urlRequest.httpMethod = method.rawValue
548 |
BUILD FAILURE 6.1 wasm