Build Information
Failed to build WebSocket, reference main (9f616c), with Swift 6.3 for Wasm on 22 Apr 2026 12:15:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path: $PWD
https://github.com/tesseract-one/WebSocket.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-nio.git
[1/83206] Fetching swift-nio
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/apple/swift-nio.git from cache (6.74s)
[1/15432] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.73s)
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.82s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.48s)
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 CNIOWindows WSAStartup.c
[12/456] Compiling CNIOWindows shim.c
[14/456] Compiling CNIOLinux shim.c
[15/456] Compiling CNIOLinux liburing_shims.c
[16/456] Compiling CNIODarwin shim.c
[17/456] Compiling CNIOSHA1 c_nio_sha1.c
[18/456] Write swift-version-24593BA9C3E375BF.txt
[19/456] Compiling CNIOHTTPParser c_nio_http_parser.c
[20/459] Compiling CNIOBoringSSLShims shims.c
[21/459] Compiling tls_record.cc
[22/459] Compiling tls_method.cc
[23/459] Compiling tls13_client.cc
[24/459] Compiling tls13_enc.cc
[25/459] Compiling tls13_both.cc
[26/459] Compiling tls13_server.cc
[27/459] Compiling t1_enc.cc
[28/459] Compiling ssl_versions.cc
[29/459] Compiling ssl_transcript.cc
[30/459] Compiling ssl_stat.cc
[31/459] Compiling ssl_x509.cc
[32/459] Compiling ssl_session.cc
[33/459] Compiling ssl_privkey.cc
[34/459] Compiling ssl_key_share.cc
[35/459] Compiling ssl_lib.cc
[36/459] Compiling ssl_file.cc
[37/459] Compiling ssl_cipher.cc
[38/459] Compiling ssl_buffer.cc
[39/459] Compiling ssl_cert.cc
[40/459] Compiling ssl_asn1.cc
[41/459] Compiling s3_lib.cc
[42/459] Compiling s3_pkt.cc
[43/459] Compiling ssl_aead_ctx.cc
[44/459] Compiling s3_both.cc
[45/459] Compiling handshake_client.cc
[46/459] Compiling handshake_server.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[48/459] Emitting module _NIODataStructures
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:197:28: error: cannot find 'log2' in scope
195 |
196 | func height(index: Int) -> Int {
197 | return Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
198 | }
199 | let myHeight = height(index: index)
[49/459] Compiling _NIODataStructures Heap.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:197:28: error: cannot find 'log2' in scope
195 |
196 | func height(index: Int) -> Int {
197 | return Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
198 | }
199 | let myHeight = height(index: index)
[49/459] Compiling handshake.cc
[51/459] Compiling _NIODataStructures PriorityQueue.swift
[51/459] Compiling handoff.cc
[51/459] Compiling dtls_method.cc
[51/459] Compiling extensions.cc
[51/459] Compiling d1_srtp.cc
[51/459] Compiling dtls_record.cc
[51/459] Compiling d1_pkt.cc
[51/459] Compiling encrypted_client_hello.cc
BUILD FAILURE 6.3 wasm