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 WebSocket, reference 0.2.0 (9f616c), with Swift 6.1 for Wasm on 28 May 2025 16:03:30 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/tesseract-one/WebSocket.swift.git
Reference: 0.2.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/tesseract-one/WebSocket.swift
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 9f616c3 updated readme
Cloned https://github.com/tesseract-one/WebSocket.swift.git
Revision (git rev-parse @):
9f616c35127c83651d3112f8bdb41284d3c5c213
SUCCESS checkout https://github.com/tesseract-one/WebSocket.swift.git at 0.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tesseract-one/WebSocket.swift.git
https://github.com/tesseract-one/WebSocket.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.40.0",
            "upper_bound" : "2.41.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.19.0",
            "upper_bound" : "2.20.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    }
  ],
  "manifest_display_name" : "WebSocket",
  "name" : "WebSocket",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "WebSocket",
      "targets" : [
        "WebSocket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WebSocketTests",
      "module_type" : "SwiftTarget",
      "name" : "WebSocketTests",
      "path" : "Tests/WebSocketTests",
      "sources" : [
        "WebSocketTests.swift"
      ],
      "target_dependencies" : [
        "WebSocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WebSocket",
      "module_type" : "SwiftTarget",
      "name" : "WebSocket",
      "path" : "Sources/WebSocket",
      "product_dependencies" : [
        "NIO",
        "NIOHTTP1",
        "NIOWebSocket",
        "NIOConcurrencyHelpers",
        "NIOFoundationCompat",
        "NIOSSL"
      ],
      "product_memberships" : [
        "WebSocket"
      ],
      "sources" : [
        "Data.swift",
        "Error.swift",
        "EventLoopGroup.swift",
        "FrameBuffer.swift",
        "Handler.swift",
        "InitialRequestHandler.swift",
        "ReExport.swift",
        "State.swift",
        "WebSocket.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/14843] Fetching swift-nio-ssl
[1783/90936] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (5.20s)
Fetched https://github.com/apple/swift-nio.git from cache (5.29s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.19.0 (6.11s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.54s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.40.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.19.0
Building for debugging...
[0/456] Write sources
[12/456] Compiling CNIOSHA1 c_nio_sha1.c
[13/456] Compiling CNIOWindows shim.c
[14/456] Compiling CNIOWindows WSAStartup.c
[15/456] Compiling CNIOLinux shim.c
[16/456] Compiling CNIOLinux liburing_shims.c
[17/456] Compiling CNIODarwin shim.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/x509v3/v3_conf.c:71:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/x509v3/../internal.h:147:10: fatal error: 'pthread.h' file not found
  147 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[18/456] Compiling v3_conf.c
[18/456] Compiling handshake_server.cc
[18/456] Compiling CNIOBoringSSLShims shims.c
[18/456] Compiling v3_bitst.c
[18/456] Compiling CNIOHTTPParser c_nio_http_parser.c
[18/456] Compiling tls_record.cc
[18/456] Compiling s3_both.cc
[18/456] Write swift-version-24593BA9C3E375BF.txt
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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
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/438] Write swift-version-24593BA9C3E375BF.txt
[1/441] Compiling CNIOBoringSSLShims shims.c
[2/441] Compiling CNIOHTTPParser c_nio_http_parser.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:30:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:147:10: fatal error: 'pthread.h' file not found
  147 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[3/441] Compiling tls13_enc.cc
[3/441] Compiling tls13_client.cc
[3/441] Compiling tls_method.cc
[3/441] Compiling t1_enc.cc
[3/441] Compiling tls13_both.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:31:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:147:10: fatal error: 'pthread.h' file not found
  147 | #include <pthread.h>
      |          ^~~~~~~~~~~
[3/441] Compiling tls13_server.cc
[3/441] Compiling tls_record.cc
BUILD FAILURE 6.1 wasm