The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MathSolver, reference main (27ff08), with Swift 6.1 for Wasm on 5 Oct 2026 04:54:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aiPublicProject/mathsolver-swift.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/aiPublicProject/mathsolver-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 27ff084 ci: test.yml moves to ubuntu-24.04 to match the direct swift.org toolchain (glibc 2.38)
Cloned https://github.com/aiPublicProject/mathsolver-swift.git
Revision (git rev-parse @):
27ff084aa535a60cf0e974134c55b3c49c405e13
SUCCESS checkout https://github.com/aiPublicProject/mathsolver-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/aiPublicProject/mathsolver-swift.git
https://github.com/aiPublicProject/mathsolver-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module MathSolver
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:436:23: warning: static property 'realHTTPPost' is not concurrency-safe because non-'Sendable' type 'MathSolver.HttpPost' (aka '(String, Dictionary<String, String>, String) throws -> (Int, String)') may have shared mutable state; this is an error in the Swift 6 language mode
434 |
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
    |                       |- warning: static property 'realHTTPPost' is not concurrency-safe because non-'Sendable' type 'MathSolver.HttpPost' (aka '(String, Dictionary<String, String>, String) throws -> (Int, String)') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'realHTTPPost' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
437 |         var request = URLRequest(url: URL(string: url)!)
438 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:437:23: error: cannot find 'URLRequest' in scope
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
437 |         var request = URLRequest(url: URL(string: url)!)
    |                       `- error: cannot find 'URLRequest' in scope
438 |         request.httpMethod = "POST"
439 |         request.httpBody = body.data(using: .utf8)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:460:23: warning: static property 'defaultTransport' is not concurrency-safe because non-'Sendable' type 'MathSolver.Transport' (aka '(String, String, String) throws -> String') may have shared mutable state; this is an error in the Swift 6 language mode
458 |     }
459 |
460 |     public static let defaultTransport: Transport = { url, body, apiKey in
    |                       |- warning: static property 'defaultTransport' is not concurrency-safe because non-'Sendable' type 'MathSolver.Transport' (aka '(String, String, String) throws -> String') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'defaultTransport' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
461 |         let (status, raw) = try MathSolver.realHTTPPost(
462 |             url,
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:470:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
[4/4] Compiling MathSolver MathSolver.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:436:23: warning: static property 'realHTTPPost' is not concurrency-safe because non-'Sendable' type 'MathSolver.HttpPost' (aka '(String, Dictionary<String, String>, String) throws -> (Int, String)') may have shared mutable state; this is an error in the Swift 6 language mode
434 |
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
    |                       |- warning: static property 'realHTTPPost' is not concurrency-safe because non-'Sendable' type 'MathSolver.HttpPost' (aka '(String, Dictionary<String, String>, String) throws -> (Int, String)') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'realHTTPPost' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
437 |         var request = URLRequest(url: URL(string: url)!)
438 |         request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:437:23: error: cannot find 'URLRequest' in scope
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
437 |         var request = URLRequest(url: URL(string: url)!)
    |                       `- error: cannot find 'URLRequest' in scope
438 |         request.httpMethod = "POST"
439 |         request.httpBody = body.data(using: .utf8)
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:460:23: warning: static property 'defaultTransport' is not concurrency-safe because non-'Sendable' type 'MathSolver.Transport' (aka '(String, String, String) throws -> String') may have shared mutable state; this is an error in the Swift 6 language mode
458 |     }
459 |
460 |     public static let defaultTransport: Transport = { url, body, apiKey in
    |                       |- warning: static property 'defaultTransport' is not concurrency-safe because non-'Sendable' type 'MathSolver.Transport' (aka '(String, String, String) throws -> String') may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'defaultTransport' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
461 |         let (status, raw) = try MathSolver.realHTTPPost(
462 |             url,
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:470:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:471:33: error: cannot find type 'URLRequest' in scope
469 |
470 | private extension URLSession {
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
473 |         let sem = DispatchSemaphore(value: 0)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/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/3] Emitting module MathSolver
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:437:23: error: cannot find 'URLRequest' in scope
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
437 |         var request = URLRequest(url: URL(string: url)!)
    |                       `- error: cannot find 'URLRequest' in scope
438 |         request.httpMethod = "POST"
439 |         request.httpBody = body.data(using: .utf8)
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:470:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
[3/3] Compiling MathSolver MathSolver.swift
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:437:23: error: cannot find 'URLRequest' in scope
435 |     /// Real HTTP POST via URLSession. Returns (status, raw body).
436 |     public static let realHTTPPost: HttpPost = { url, headers, body in
437 |         var request = URLRequest(url: URL(string: url)!)
    |                       `- error: cannot find 'URLRequest' in scope
438 |         request.httpMethod = "POST"
439 |         request.httpBody = body.data(using: .utf8)
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:470:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
/host/spi-builder-workspace/Sources/MathSolver/MathSolver.swift:471:33: error: cannot find type 'URLRequest' in scope
469 |
470 | private extension URLSession {
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
    |                                 `- error: cannot find type 'URLRequest' in scope
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
473 |         let sem = DispatchSemaphore(value: 0)
BUILD FAILURE 6.1 wasm