The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Edge, reference 0.4.0 (82d0b4), with Swift 6.1 for Wasm on 27 May 2025 10:40:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/skylab-inc/lightning.git
Reference: 0.4.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/skylab-inc/lightning
 * tag               0.4.0      -> FETCH_HEAD
HEAD is now at 82d0b41 Middleware tests seem to be passing now on Linux.
Cloned https://github.com/skylab-inc/lightning.git
Revision (git rev-parse @):
82d0b416e11c422ea7ee072f89a794c5d8a60cf3
SUCCESS checkout https://github.com/skylab-inc/lightning.git at 0.4.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/skylab-inc/lightning.git
https://github.com/skylab-inc/lightning.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "streamkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/skylab-inc/StreamKit.git"
    }
  ],
  "manifest_display_name" : "Edge",
  "name" : "Edge",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
  ],
  "targets" : [
    {
      "c99name" : "TCPTests",
      "module_type" : "SwiftTarget",
      "name" : "TCPTests",
      "path" : "Tests/TCPTests",
      "sources" : [
        "ConnectionTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TCP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TCP",
      "module_type" : "SwiftTarget",
      "name" : "TCP",
      "path" : "Sources/TCP",
      "sources" : [
        "Server.swift",
        "Socket.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "IOStream"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RunLoop",
      "module_type" : "SwiftTarget",
      "name" : "RunLoop",
      "path" : "Sources/RunLoop",
      "sources" : [
        "RunLoop.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RoutingTests",
      "module_type" : "SwiftTarget",
      "name" : "RoutingTests",
      "path" : "Tests/RoutingTests",
      "sources" : [
        "RouterTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Routing"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Routing",
      "module_type" : "SwiftTarget",
      "name" : "Routing",
      "path" : "Sources/Routing",
      "sources" : [
        "Routing.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "HTTP"
      ],
      "type" : "library"
    },
    {
      "c99name" : "POSIX",
      "module_type" : "SwiftTarget",
      "name" : "POSIX",
      "path" : "Sources/POSIX",
      "sources" : [
        "FileDescriptor.swift",
        "Socket.swift",
        "SystemError.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IOStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "IOStreamTests",
      "path" : "Tests/IOStreamTests",
      "sources" : [
        "PipeTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "IOStream"
      ],
      "type" : "test"
    },
    {
      "c99name" : "IOStream",
      "module_type" : "SwiftTarget",
      "name" : "IOStream",
      "path" : "Sources/IOStream",
      "product_dependencies" : [
        "StreamKit"
      ],
      "sources" : [
        "IOStream.swift",
        "Pipe.swift"
      ],
      "target_dependencies" : [
        "POSIX"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HTTPTests",
      "module_type" : "SwiftTarget",
      "name" : "HTTPTests",
      "path" : "Tests/HTTPTests",
      "sources" : [
        "HTTPMessageTests.swift",
        "RequestParserTests.swift",
        "RequestSerializationTests.swift",
        "ResponseParserTests.swift",
        "ResponseSerializationTests.swift",
        "ServerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HTTP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HTTP",
      "module_type" : "SwiftTarget",
      "name" : "HTTP",
      "path" : "Sources/HTTP",
      "sources" : [
        "ClientConnection.swift",
        "Error.swift",
        "Message.swift",
        "Method.swift",
        "Parser.swift",
        "Request.swift",
        "Response.swift",
        "Serializable.swift",
        "Server.swift",
        "Status.swift",
        "Version.swift"
      ],
      "target_dependencies" : [
        "POSIX",
        "IOStream",
        "TCP",
        "CHTTPParser"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Edge",
      "module_type" : "SwiftTarget",
      "name" : "Edge",
      "path" : "Sources/Edge",
      "sources" : [
        "Edge.swift"
      ],
      "target_dependencies" : [
        "TCP",
        "IOStream",
        "RunLoop",
        "HTTP",
        "Routing"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CHTTPParser",
      "module_type" : "ClangTarget",
      "name" : "CHTTPParser",
      "path" : "Sources/CHTTPParser",
      "sources" : [
        "http_parser.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.27s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (1.01s)
Creating working copy for https://github.com/skylab-inc/StreamKit.git
Working copy of https://github.com/skylab-inc/StreamKit.git resolved at 0.7.0
Building for debugging...
[0/10] Write sources
[8/10] Compiling CHTTPParser http_parser.c
[8/10] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/17] Emitting module POSIX
/host/spi-builder-workspace/Sources/POSIX/FileDescriptor.swift:4:12: error: no such module 'Darwin'
 2 |     import Glibc
 3 | #else
 4 |     import Darwin
   |            `- error: no such module 'Darwin'
 5 | #endif
 6 |
[12/24] Emitting module StreamKit
[13/24] Compiling POSIX SystemError.swift
/host/spi-builder-workspace/Sources/POSIX/FileDescriptor.swift:4:12: error: no such module 'Darwin'
 2 |     import Glibc
 3 | #else
 4 |     import Darwin
   |            `- error: no such module 'Darwin'
 5 | #endif
 6 |
[14/24] Compiling POSIX Socket.swift
/host/spi-builder-workspace/Sources/POSIX/FileDescriptor.swift:4:12: error: no such module 'Darwin'
 2 |     import Glibc
 3 | #else
 4 |     import Darwin
   |            `- error: no such module 'Darwin'
 5 | #endif
 6 |
[15/24] Compiling POSIX FileDescriptor.swift
/host/spi-builder-workspace/Sources/POSIX/FileDescriptor.swift:4:12: error: no such module 'Darwin'
 2 |     import Glibc
 3 | #else
 4 |     import Darwin
   |            `- error: no such module 'Darwin'
 5 | #endif
 6 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/24] Emitting module RunLoop
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:9:8: error: no such module 'Dispatch'
 7 | //
 8 |
 9 | import Dispatch
   |        `- error: no such module 'Dispatch'
10 | // swiftlint:disable variable_name
11 | #if os(Linux)
[17/24] Compiling RunLoop RunLoop.swift
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:9:8: error: no such module 'Dispatch'
 7 | //
 8 |
 9 | import Dispatch
   |        `- error: no such module 'Dispatch'
10 | // swiftlint:disable variable_name
11 | #if os(Linux)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/15] Emitting module RunLoop
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:9:8: error: no such module 'Dispatch'
 7 | //
 8 |
 9 | import Dispatch
   |        `- error: no such module 'Dispatch'
10 | // swiftlint:disable variable_name
11 | #if os(Linux)
[3/15] Compiling RunLoop RunLoop.swift
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:9:8: error: no such module 'Dispatch'
 7 | //
 8 |
 9 | import Dispatch
   |        `- error: no such module 'Dispatch'
10 | // swiftlint:disable variable_name
11 | #if os(Linux)
[4/15] Emitting module StreamKit
BUILD FAILURE 6.1 wasm