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 SgRouter, reference master (1554b8), with Swift 6.1 for Wasm on 27 May 2025 11:05:06 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/gavrilaf/sgrouter.git
Reference: master
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/gavrilaf/sgrouter
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1554b8c renamed PerfTest -> RouterPerfTest
Cloned https://github.com/gavrilaf/sgrouter.git
Revision (git rev-parse @):
1554b8c99ebbb7b26b2480f7e3b84f76a757a81a
SUCCESS checkout https://github.com/gavrilaf/sgrouter.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/gavrilaf/sgrouter.git
https://github.com/gavrilaf/sgrouter.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swiftperftool",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/gavrilaf/SwiftPerfTool.git"
    }
  ],
  "manifest_display_name" : "SgRouter",
  "name" : "SgRouter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SgRouter",
      "targets" : [
        "SgRouter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RouterPerfTest",
      "targets" : [
        "RouterPerfTest"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SgRouterTests",
      "module_type" : "SwiftTarget",
      "name" : "SgRouterTests",
      "path" : "Tests/SgRouterTests",
      "sources" : [
        "Helpers/Asserts.swift",
        "Helpers/Node+TestHelpers.swift",
        "Helpers/Router+TestHelpers.swift",
        "Helpers/UriParser+TestHelpers.swift",
        "NodeTests.swift",
        "RouterTests.swift",
        "UriParserTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "SgRouter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SgRouter",
      "module_type" : "SwiftTarget",
      "name" : "SgRouter",
      "path" : "Sources/SgRouter",
      "product_memberships" : [
        "SgRouter",
        "RouterPerfTest"
      ],
      "sources" : [
        "Node.swift",
        "Router.swift",
        "RouterError.swift",
        "UriParser.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RouterPerfTest",
      "module_type" : "SwiftTarget",
      "name" : "RouterPerfTest",
      "path" : "Sources/Examples/RouterPerfTest",
      "product_dependencies" : [
        "SwiftPerfTool"
      ],
      "product_memberships" : [
        "RouterPerfTest"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "SgRouter"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/gavrilaf/SwiftPerfTool.git
[1/72] Fetching swiftperftool
Fetched https://github.com/gavrilaf/SwiftPerfTool.git from cache (0.41s)
Computing version for https://github.com/gavrilaf/SwiftPerfTool.git
Computed https://github.com/gavrilaf/SwiftPerfTool.git at 0.1.1 (1.25s)
Creating working copy for https://github.com/gavrilaf/SwiftPerfTool.git
Working copy of https://github.com/gavrilaf/SwiftPerfTool.git resolved at 0.1.1
Building for debugging...
[0/9] Write sources
[3/9] Write swift-version-24593BA9C3E375BF.txt
[5/20] Compiling SwiftPerfTool Memory.swift
[6/20] Compiling SwiftPerfTool Scores.swift
[7/20] Compiling SwiftPerfTool SwiftPerfTool.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPerfTool/Sources/SwiftPerfTool/SwiftPerfTool.swift:23:25: error: cannot find 'DispatchTime' in scope
21 |     for iteration in 0..<config.iterations {
22 |         for (trialIndx, block) in config.trials.enumerated() {
23 |             let start = DispatchTime.now()
   |                         `- error: cannot find 'DispatchTime' in scope
24 |             block()
25 |             let end = DispatchTime.now()
/host/spi-builder-workspace/.build/checkouts/SwiftPerfTool/Sources/SwiftPerfTool/SwiftPerfTool.swift:25:23: error: cannot find 'DispatchTime' in scope
23 |             let start = DispatchTime.now()
24 |             block()
25 |             let end = DispatchTime.now()
   |                       `- error: cannot find 'DispatchTime' in scope
26 |             latencies[iteration + trialIndx] = end.uptimeNanoseconds - start.uptimeNanoseconds
27 |         }
[8/20] Compiling SwiftPerfTool ApproximateEquatable.swift
[9/20] Compiling SwiftPerfTool Errors.swift
[10/20] Emitting module SwiftPerfTool
[11/20] Compiling SgRouter RouterError.swift
[12/20] Compiling SgRouter Router.swift
[13/20] Compiling SgRouter UriParser.swift
[14/20] Emitting module SgRouter
[15/20] Compiling SgRouter Node.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
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/6] Write swift-version-24593BA9C3E375BF.txt
[2/17] Emitting module SgRouter
[3/17] Compiling SwiftPerfTool SwiftPerfTool.swift
/host/spi-builder-workspace/.build/checkouts/SwiftPerfTool/Sources/SwiftPerfTool/SwiftPerfTool.swift:23:25: error: cannot find 'DispatchTime' in scope
21 |     for iteration in 0..<config.iterations {
22 |         for (trialIndx, block) in config.trials.enumerated() {
23 |             let start = DispatchTime.now()
   |                         `- error: cannot find 'DispatchTime' in scope
24 |             block()
25 |             let end = DispatchTime.now()
/host/spi-builder-workspace/.build/checkouts/SwiftPerfTool/Sources/SwiftPerfTool/SwiftPerfTool.swift:25:23: error: cannot find 'DispatchTime' in scope
23 |             let start = DispatchTime.now()
24 |             block()
25 |             let end = DispatchTime.now()
   |                       `- error: cannot find 'DispatchTime' in scope
26 |             latencies[iteration + trialIndx] = end.uptimeNanoseconds - start.uptimeNanoseconds
27 |         }
[4/17] Compiling SwiftPerfTool ApproximateEquatable.swift
[5/17] Compiling SwiftPerfTool Errors.swift
[6/17] Emitting module SwiftPerfTool
[7/17] Compiling SgRouter Node.swift
[8/17] Compiling SgRouter Router.swift
[9/17] Compiling SgRouter UriParser.swift
[10/17] Compiling SgRouter RouterError.swift
[12/18] Compiling SwiftPerfTool Memory.swift
[13/18] Compiling SwiftPerfTool Scores.swift
[13/18] Wrapping AST for SgRouter for debugging
BUILD FAILURE 6.1 wasm