Build Information
Failed to build WebSocket, reference main (9f616c
), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 05:58:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path: $PWD
https://github.com/tesseract-one/WebSocket.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
[1/14890] Fetching swift-nio-ssl
[1937/91217] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (7.47s)
Fetched https://github.com/apple/swift-nio.git from cache (8.71s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.19.0 (15.04s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.40.0 (0.76s)
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 p256-nistz.c
[17/456] Compiling oct.c
[18/456] Compiling simple_mul.c
[19/456] Compiling p224-64.c
[20/456] Compiling CNIOLinux liburing_shims.c
[21/456] Compiling CNIODarwin shim.c
[22/456] Compiling CNIOHTTPParser c_nio_http_parser.c
[23/456] Write swift-version-24593BA9C3E375BF.txt
[24/456] Compiling CNIOBoringSSLShims shims.c
[25/459] Compiling p256.c
[26/459] Compiling tls_method.cc
[27/459] Compiling tls_record.cc
[28/459] Compiling tls13_server.cc
[29/459] Compiling tls13_enc.cc
[30/459] Compiling tls13_both.cc
[31/459] Compiling tls13_client.cc
[32/459] Compiling t1_enc.cc
[33/459] Compiling ssl_versions.cc
[34/459] Compiling ssl_privkey.cc
[35/459] Compiling ssl_stat.cc
[36/459] Compiling ssl_x509.cc
[37/459] Compiling ssl_transcript.cc
[38/459] Compiling ssl_session.cc
[39/459] Compiling ssl_file.cc
[40/459] Compiling ssl_key_share.cc
[41/459] Compiling ssl_cert.cc
[42/459] Compiling s3_pkt.cc
[43/459] Compiling ssl_cipher.cc
[44/459] Compiling ssl_buffer.cc
[45/459] Compiling ssl_asn1.cc
[46/459] Compiling ssl_lib.cc
[47/459] Compiling ssl_aead_ctx.cc
[48/459] Compiling s3_lib.cc
error: emit-module command failed with exit code 1 (use -v to see invocation)
[50/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)
[51/459] Compiling _NIODataStructures PriorityQueue.swift
[52/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)
[52/459] Compiling handshake_server.cc
[52/459] Compiling encrypted_client_hello.cc
[52/459] Compiling handoff.cc
[52/459] Compiling handshake_client.cc
[52/459] Compiling s3_both.cc
[52/459] Compiling extensions.cc
[52/459] Compiling handshake.cc
BUILD FAILURE 6.2 wasm