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 LCLWebSocket, reference 1.1.1 (844bba), with Swift 6.1 for Wasm on 30 May 2025 10:24:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/Local-Connectivity-Lab/lcl-websocket.git
Reference: 1.1.1
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/Local-Connectivity-Lab/lcl-websocket
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 844bba7 fix build issue with swift 5.10 (#6)
Cloned https://github.com/Local-Connectivity-Lab/lcl-websocket.git
Revision (git rev-parse @):
844bba7d76147f0cc901271edae57764bdc4ac3b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Local-Connectivity-Lab/lcl-websocket.git at 1.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Local-Connectivity-Lab/lcl-websocket.git
https://github.com/Local-Connectivity-Lab/lcl-websocket.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.81.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-transport-services",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.23.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-transport-services.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.28.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    }
  ],
  "manifest_display_name" : "LCLWebSocket",
  "name" : "LCLWebSocket",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "LCLWebSocket",
      "targets" : [
        "LCLWebSocket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Server",
      "targets" : [
        "Server"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Client",
      "targets" : [
        "Client"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "AutobahnServer",
      "targets" : [
        "AutobahnServer"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "AutobahnClient",
      "targets" : [
        "AutobahnClient"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Server",
      "module_type" : "SwiftTarget",
      "name" : "Server",
      "path" : "Sources/Server",
      "product_memberships" : [
        "Server"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "LCLWebSocketTests",
      "module_type" : "SwiftTarget",
      "name" : "LCLWebSocketTests",
      "path" : "Tests/LCLWebSocketTests",
      "sources" : [
        "LCLWebSocketTests.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LCLWebSocket",
      "module_type" : "SwiftTarget",
      "name" : "LCLWebSocket",
      "path" : "Sources/LCLWebSocket",
      "product_dependencies" : [
        "NIO",
        "NIOConcurrencyHelpers",
        "NIOWebSocket",
        "NIOHTTP1",
        "NIOFoundationCompat",
        "NIOSSL",
        "NIOTransportServices",
        "Logging",
        "Atomics"
      ],
      "product_memberships" : [
        "LCLWebSocket",
        "Server",
        "Client",
        "AutobahnServer",
        "AutobahnClient"
      ],
      "sources" : [
        "Client/WebSocketClient.swift",
        "LCLWebSocket+ChannelInitializer.swift",
        "LCLWebSocket+Error.swift",
        "LCLWebSocket+EventloopGroup.swift",
        "LCLWebSocket.swift",
        "LCLWebSocketListenable.swift",
        "Server/WebSocketServer.swift",
        "Server/WebSocketServerUpgradeConfiguration.swift",
        "Utils/LCLWebSocket+ChannelOption.swift",
        "Utils/LCLWebSocket+Logging.swift",
        "Utils/LCLWebSocket+SocketOption.swift",
        "Utils/TimeAmount+Extension.swift",
        "WebSocket.swift",
        "WebSocketConfiguration.swift",
        "WebSocketExtensions/PerMessageDeflateExtension.swift",
        "WebSocketExtensions/WebSocketExtension.swift",
        "WebSocketExtensions/WebSocketExtensionNegotiationHandler.swift",
        "WebSocketHandler.swift",
        "WebSocketScheme.swift"
      ],
      "target_dependencies" : [
        "CLCLWebSocketZlib"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "IntegrationTests",
      "path" : "Tests/IntegrationTests",
      "sources" : [
        "AutobahnClientTest.swift",
        "AutobahnServerTest.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Client",
      "module_type" : "SwiftTarget",
      "name" : "Client",
      "path" : "Sources/Client",
      "product_memberships" : [
        "Client"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CLCLWebSocketZlib",
      "module_type" : "ClangTarget",
      "name" : "CLCLWebSocketZlib",
      "path" : "Sources/CLCLWebSocketZlib",
      "product_memberships" : [
        "LCLWebSocket",
        "Server",
        "Client",
        "AutobahnServer",
        "AutobahnClient"
      ],
      "sources" : [
        "empty.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AutobahnServer",
      "module_type" : "SwiftTarget",
      "name" : "AutobahnServer",
      "path" : "Sources/AutobahnServer",
      "product_memberships" : [
        "AutobahnServer"
      ],
      "sources" : [
        "AutohahnServer.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AutobahnClient",
      "module_type" : "SwiftTarget",
      "name" : "AutobahnClient",
      "path" : "Sources/AutobahnClient",
      "product_memberships" : [
        "AutobahnClient"
      ],
      "sources" : [
        "AutobahnClient.swift"
      ],
      "target_dependencies" : [
        "LCLWebSocket"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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-log.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-atomics.git
[1/3836] Fetching swift-log
[884/6503] Fetching swift-log, swift-nio-transport-services
[2857/8213] Fetching swift-log, swift-nio-transport-services, swift-atomics
[8214/23056] Fetching swift-log, swift-nio-transport-services, swift-atomics, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.43s)
[6734/20389] Fetching swift-log, swift-atomics, swift-nio-ssl
Fetched https://github.com/apple/swift-atomics.git from cache (0.43s)
[5172/18679] Fetching swift-log, swift-nio-ssl
[5619/94787] Fetching swift-log, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (4.50s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.53s)
Fetched https://github.com/apple/swift-nio.git from cache (4.60s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (7.01s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.49s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (0.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (3.17s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4391] Fetching swift-system
[4392/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.40s)
Fetched https://github.com/apple/swift-collections.git from cache (1.43s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (2.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.97s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (1.35s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
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.31.0
Building for debugging...
[0/465] Write swift-version-24593BA9C3E375BF.txt
[1/465] Write sources
[3/469] Compiling a_i2d_fp.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/pool/pool.cc:26:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/pool/../internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[4/469] Compiling pool.cc
[4/469] Compiling a_bool.cc
[4/469] Compiling c-nioatomics.c
[4/469] Compiling c-atomics.c
[4/469] Compiling hexdump.cc
[4/469] Compiling a_bitstr.cc
[5/471] Emitting module _NIOBase64
[6/471] Compiling _NIOBase64 Base64.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/461] Write sources
[16/462] Compiling _AtomicsShims.c
[17/462] Compiling CNIOWASI CNIOWASI.c
[18/462] Compiling CNIOWindows shim.c
[19/462] Compiling CNIOLinux liburing_shims.c
[19/462] Compiling CNIOLinux shim.c
[21/462] Compiling CNIODarwin shim.c
[22/462] Compiling CNIOLLHTTP c_nio_http.c
[23/462] Compiling CNIOLLHTTP c_nio_api.c
[24/462] Compiling CNIOSHA1 c_nio_sha1.c
[25/462] Compiling fiat_p256_adx_sqr.S
[26/462] Compiling fiat_p256_adx_mul.S
[27/462] Compiling fiat_curve25519_adx_mul.S
[28/462] Compiling fiat_curve25519_adx_square.S
[29/462] Compiling CNIOWindows WSAStartup.c
[30/462] Write swift-version-24593BA9C3E375BF.txt
[31/462] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[32/466] Compiling tls13_enc.cc
[32/466] Compiling tls_record.cc
[32/466] Compiling tls13_client.cc
[32/466] Compiling tls_method.cc
[32/466] Compiling tls13_server.cc
[32/466] Compiling tls13_both.cc
[32/466] Compiling CNIOLLHTTP c_nio_llhttp.c
BUILD FAILURE 6.1 wasm