The Swift Package Index logo.Swift Package Index

Build Information

Failed to build pyTanks.SwiftPlayer, reference master (ad053c), with Swift 6.1 for Wasm on 27 May 2025 07:16:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/matthewseaman/pytanks.swiftplayer.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/matthewseaman/pytanks.swiftplayer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ad053cd Update README for 2.0
Cloned https://github.com/matthewseaman/pytanks.swiftplayer.git
Revision (git rev-parse @):
ad053cd3ac03c619c6f59ecdf3b5181341a5fbe4
SUCCESS checkout https://github.com/matthewseaman/pytanks.swiftplayer.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/matthewseaman/pytanks.swiftplayer.git
https://github.com/matthewseaman/pytanks.swiftplayer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "starscream",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/daltoniam/Starscream.git"
    }
  ],
  "manifest_display_name" : "pyTanks.SwiftPlayer",
  "name" : "pyTanks.SwiftPlayer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "pyTanks",
      "targets" : [
        "pyTanks"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "PlayerSupport",
      "targets" : [
        "PlayerSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ClientControl",
      "targets" : [
        "ClientControl"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "pyTanks",
      "module_type" : "SwiftTarget",
      "name" : "pyTanks",
      "path" : "Sources/pyTanks",
      "product_memberships" : [
        "pyTanks"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ClientControl",
        "SimplePlayer"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Utils",
      "module_type" : "SwiftTarget",
      "name" : "Utils",
      "path" : "Sources/Utils",
      "product_memberships" : [
        "pyTanks",
        "ClientControl"
      ],
      "sources" : [
        "CommandLineArgumentParser.swift",
        "Operators.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SimplePlayer",
      "module_type" : "SwiftTarget",
      "name" : "SimplePlayer",
      "path" : "Sources/SimplePlayer",
      "product_memberships" : [
        "pyTanks"
      ],
      "sources" : [
        "SimplePlayer.swift"
      ],
      "target_dependencies" : [
        "PlayerSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PlayerSupport",
      "module_type" : "SwiftTarget",
      "name" : "PlayerSupport",
      "path" : "Sources/PlayerSupport",
      "product_memberships" : [
        "pyTanks",
        "PlayerSupport",
        "ClientControl"
      ],
      "sources" : [
        "Command.swift",
        "GameConfiguration.swift",
        "GameState.swift",
        "Log.swift",
        "Player.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ClientControl",
      "module_type" : "SwiftTarget",
      "name" : "ClientControl",
      "path" : "Sources/ClientControl",
      "product_memberships" : [
        "pyTanks",
        "ClientControl"
      ],
      "sources" : [
        "Game.swift"
      ],
      "target_dependencies" : [
        "Client",
        "PlayerSupport"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Client",
      "module_type" : "SwiftTarget",
      "name" : "Client",
      "path" : "Sources/Client",
      "product_dependencies" : [
        "Starscream"
      ],
      "product_memberships" : [
        "pyTanks",
        "ClientControl"
      ],
      "sources" : [
        "ClientConfig+parse.swift",
        "ClientConfiguration.swift",
        "Command+JSON.swift",
        "GameClient.swift",
        "GameLoop.swift",
        "GameState+JSON.swift"
      ],
      "target_dependencies" : [
        "PlayerSupport",
        "Utils"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/daltoniam/Starscream.git
[1/5033] Fetching starscream
Fetched https://github.com/daltoniam/Starscream.git from cache (0.41s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 3.1.2 (1.05s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git from cache (0.25s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (3.04s)
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 3.1.2
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[0/17] Write sources
[7/17] Write swift-version-24593BA9C3E375BF.txt
[9/31] Compiling Utils Operators.swift
[10/31] Compiling PlayerSupport Player.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/31] Emitting module PlayerSupport
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[12/31] Compiling PlayerSupport Log.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[13/31] Compiling PlayerSupport GameState.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[14/31] Compiling PlayerSupport GameConfiguration.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[15/31] Compiling PlayerSupport Command.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[16/31] Compiling Starscream WebSocket.swift
/host/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/Compression.swift:30:8: error: no such module 'zlib'
 28 |
 29 | import Foundation
 30 | import zlib
    |        `- error: no such module 'zlib'
 31 |
 32 | class Decompressor {
[17/31] Compiling Starscream SSLSecurity.swift
/host/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/Compression.swift:30:8: error: no such module 'zlib'
 28 |
 29 | import Foundation
 30 | import zlib
    |        `- error: no such module 'zlib'
 31 |
 32 | class Decompressor {
[18/31] Compiling Starscream SSLClientCertificate.swift
/host/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/Compression.swift:30:8: error: no such module 'zlib'
 28 |
 29 | import Foundation
 30 | import zlib
    |        `- error: no such module 'zlib'
 31 |
 32 | class Decompressor {
[19/31] Emitting module Utils
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/31] Emitting module Starscream
/host/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/Compression.swift:30:8: error: no such module 'zlib'
 28 |
 29 | import Foundation
 30 | import zlib
    |        `- error: no such module 'zlib'
 31 |
 32 | class Decompressor {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
[0/1] Planning build
Building for debugging...
[0/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/24] Emitting module PlayerSupport
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[3/24] Compiling PlayerSupport Player.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[4/24] Compiling PlayerSupport Command.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[5/24] Compiling PlayerSupport Log.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[6/24] Compiling PlayerSupport GameConfiguration.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[7/24] Compiling PlayerSupport GameState.swift
/host/spi-builder-workspace/Sources/PlayerSupport/Log.swift:9:8: error: no such module 'Dispatch'
  7 | //
  8 |
  9 | import Dispatch
    |        `- error: no such module 'Dispatch'
 10 |
 11 |
[8/24] Compiling Utils Operators.swift
[9/24] Emitting module Utils
BUILD FAILURE 6.1 wasm