The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MathSolver, reference main (27ff08), with Swift 6.2 for Wasm on 5 Oct 2026 04:52:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 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.2
Building package at path:  $PWD
https://github.com/aiPublicProject/mathsolver-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-2":/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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ff44196b45f83e5a0a99a627b185f548850d9bc1242e3dee2178fb1570812fe8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] 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 [#NominalTypes]
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
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)
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/4] 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 [#NominalTypes]
468 | }
469 |
470 | private extension URLSession {
    |         `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
471 |     func synchronous(_ request: URLRequest) throws -> (Data, URLResponse) {
472 |         var result: Result<(Data, URLResponse), Error> = .failure(MathSolver.SolverError("HTTP_ERROR", "no response"))
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 wasm