The Swift Package Index logo.Swift Package Index

Build Information

Failed to build LCLWebSocket, reference main (844bba), with Swift 6.1 for Wasm on 30 May 2025 10:24:28 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/Local-Connectivity-Lab/lcl-websocket.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-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-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
Fetching https://github.com/apple/swift-log.git
[1/2667] Fetching swift-nio-transport-services
[615/6503] Fetching swift-nio-transport-services, swift-log
[5277/8213] Fetching swift-nio-transport-services, swift-log, swift-atomics
[8214/23056] Fetching swift-nio-transport-services, swift-log, swift-atomics, swift-nio-ssl
[9699/99164] Fetching swift-nio-transport-services, swift-log, swift-atomics, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.52s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.52s)
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
[2395/90951] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.20s)
[57081/76108] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (5.76s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (6.27s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.55s)
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.62s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (2.45s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
[2021/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.53s)
[4314/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.26s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.85s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.62s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (0.60s)
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-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-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-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-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-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.31.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
Building for debugging...
[0/465] Compiling CLCLWebSocketZlib empty.c
[1/465] Write sources
[3/465] Compiling _AtomicsShims.c
[3/465] Write sources
[20/465] Compiling CNIOWindows shim.c
[21/465] Compiling CNIOWindows WSAStartup.c
[22/465] Compiling CNIOWASI CNIOWASI.c
[23/465] Compiling CNIOSHA1 c_nio_sha1.c
[24/465] Compiling CNIOLinux shim.c
[25/465] Compiling CNIOLinux liburing_shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.cc:18:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/../internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[26/465] Compiling a_bitstr.cc
[26/465] Compiling a_dup.cc
[26/465] Compiling c-nioatomics.c
[26/465] Write swift-version-24593BA9C3E375BF.txt
[26/465] Compiling a_gentm.cc
[26/465] Compiling c-atomics.c
[26/465] Compiling a_bool.cc
[26/465] Compiling CNIOLLHTTP c_nio_llhttp.c
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/439] Compiling CNIODarwin shim.c
[1/439] Compiling fiat_p256_adx_sqr.S
[2/439] Compiling fiat_curve25519_adx_square.S
[3/439] Compiling fiat_p256_adx_mul.S
[4/439] Compiling fiat_curve25519_adx_mul.S
[4/439] Compiling CNIOLLHTTP c_nio_api.c
[6/439] Compiling CNIOLLHTTP c_nio_http.c
[7/439] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/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.
[8/439] Compiling tls_method.cc
[8/439] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/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>
      |          ^~~~~~~~~~~
[8/439] Compiling tls_record.cc
[8/439] Compiling tls13_client.cc
[8/439] Compiling CNIOLLHTTP c_nio_llhttp.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/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>
      |          ^~~~~~~~~~~
[8/439] Compiling tls13_server.cc
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>
      |          ^~~~~~~~~~~
[8/439] Compiling tls13_enc.cc
[8/439] Compiling tls13_both.cc
BUILD FAILURE 6.1 wasm