Build Information
Failed to build WebSocket, reference main (9f616c
), with Swift 6.1 for Wasm on 28 May 2025 16:04:04 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/tesseract-one/WebSocket.swift.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/tesseract-one/WebSocket.swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
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-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: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/76093] Fetching swift-nio
[762/90936] Fetching swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (5.47s)
Fetched https://github.com/apple/swift-nio.git from cache (8.19s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.19.0 (8.94s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.81s)
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
[10/456] Compiling CNIOSHA1 c_nio_sha1.c
[11/456] Write sources
[13/456] Compiling CNIOWindows shim.c
[14/456] Compiling CNIOWindows WSAStartup.c
[15/456] Compiling CNIOLinux shim.c
[16/456] Compiling a_d2i_fp.c
[17/456] Compiling CNIOLinux liburing_shims.c
[18/456] Compiling a_dup.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.c:65:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/../internal.h:147:10: fatal error: 'pthread.h' file not found
147 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[19/456] Compiling a_bitstr.c
[19/456] Compiling CNIOBoringSSLShims shims.c
[19/456] Compiling c-nioatomics.c
[19/456] Compiling CNIODarwin shim.c
[19/456] Compiling CNIOHTTPParser c_nio_http_parser.c
[19/456] Compiling tls_record.cc
[19/456] Compiling c-atomics.c
[19/456] Write swift-version-24593BA9C3E375BF.txt
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: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/437] Compiling CNIODarwin shim.c
[1/437] Compiling CNIOBoringSSLShims shims.c
[2/437] Compiling CNIOHTTPParser c_nio_http_parser.c
[3/437] Write swift-version-24593BA9C3E375BF.txt
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.
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.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.
[4/437] Compiling tls13_client.cc
[4/437] Compiling tls13_enc.cc
[4/437] 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>
| ^~~~~~~~~~~
[4/437] Compiling tls13_server.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:64:
/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.
[4/437] Compiling tls_method.cc
[4/437] Compiling ssl_x509.cc
[4/437] Compiling t1_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:118:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/internal.h:166:
/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>
| ^~~~~~~~~~~
[4/437] Compiling tls_record.cc
BUILD FAILURE 6.1 wasm