The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-nats, reference main (205589), with Swift 6.1 for Wasm on 25 Sep 2026 09:49:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hjuraev/nats-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/hjuraev/nats-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 2055899 Merge branch 'fix/connect-confirmation' into 'main'
Cloned https://github.com/hjuraev/nats-swift.git
Revision (git rev-parse @):
2055899d7b687ed7252aacb432500cb30e5bef6c
SUCCESS checkout https://github.com/hjuraev/nats-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/hjuraev/nats-swift.git
https://github.com/hjuraev/nats-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/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 saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-log.git
[1/16065] Fetching swift-nio-ssl
[2411/24230] Fetching swift-nio-ssl, swift-log
[2894/42779] Fetching swift-nio-ssl, swift-log, swift-crypto
Fetched https://github.com/apple/swift-log.git from cache (0.99s)
[15511/34614] Fetching swift-nio-ssl, swift-crypto
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.66s)
[8348/18549] Fetching swift-crypto
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/apple/swift-crypto.git from cache (2.27s)
[1/86100] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.11s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (6.83s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.49s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.71s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[38/1881] Fetching swift-atomics
[1882/8833] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.69s)
[487/6952] Fetching swift-system
[697/34675] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.55s)
Fetched https://github.com/apple/swift-collections.git from cache (1.57s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.95s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.57s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.47s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (2.38s)
Fetching https://github.com/apple/swift-asn1.git
[20/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.76s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (2.26s)
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.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.6.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.37.5
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Building for debugging...
[0/818] Write sources
[17/818] Compiling _AtomicsShims.c
[18/818] Compiling CNIOWindows WSAStartup.c
[19/818] Compiling CNIOWindows shim.c
[20/818] Compiling x86-mont-linux.S
[21/818] Compiling vpaes-x86-linux.S
[22/818] Compiling x86-mont-apple.S
[23/818] Compiling CNIOWASI CNIOWASI.c
[24/818] Compiling vpaes-x86_64-linux.S
[25/818] Compiling vpaes-x86_64-apple.S
[26/818] Compiling CNIOLinux shim.c
[27/818] Compiling CNIOOpenBSD shim.c
[28/818] Compiling CNIOFreeBSD shim.c
[29/818] Compiling CNIOLinux liburing_shims.c
[30/818] Compiling CNIODarwin shim.c
[30/818] Compiling CNIOPosix event_loop_id.c
[32/818] Compiling fiat_p256_adx_mul.S
[33/818] Compiling fiat_p256_adx_sqr.S
[34/818] Compiling fiat_curve25519_adx_square.S
[34/818] Compiling fiat_curve25519_adx_mul.S
[36/818] Write swift-version-24593BA9C3E375BF.txt
[37/818] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_both.cc:29:
/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.
[38/822] Compiling tls13_both.cc
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.
[38/822] Compiling tls_method.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>
      |          ^~~~~~~~~~~
1 error generated.
[38/822] Compiling tls13_enc.cc
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>
      |          ^~~~~~~~~~~
[38/822] Compiling tls_record.cc
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:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[38/822] Compiling tls13_client.cc
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>
      |          ^~~~~~~~~~~
[38/822] Compiling tls13_server.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/t1_enc.cc:28:
/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.
[38/822] Compiling t1_enc.cc
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
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.
[0/781] Compiling tls13_enc.cc
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>
      |          ^~~~~~~~~~~
[0/781] Compiling tls_method.cc
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:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
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>
      |          ^~~~~~~~~~~
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/ssl_x509.cc:23:
/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>
      |          ^~~~~~~~~~~
[0/781] Compiling tls13_server.cc
[0/781] Compiling ssl_x509.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/t1_enc.cc:28:
/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>
      |          ^~~~~~~~~~~
[0/781] Compiling t1_enc.cc
[0/781] Compiling tls13_client.cc
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>
      |          ^~~~~~~~~~~
[0/781] Compiling tls_record.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_both.cc:29:
/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>
      |          ^~~~~~~~~~~
[0/781] Compiling tls13_both.cc
BUILD FAILURE 6.1 wasm