Build Information
Failed to build nats-swift, reference v0.4.0 (436ca4), with Swift 6.1 for Wasm on 29 May 2025 21:46:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nats-io/nats.swift.git
Reference: v0.4.0
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/nats-io/nats.swift
* tag v0.4.0 -> FETCH_HEAD
HEAD is now at 436ca4a Add fetching messages from JetStream
Cloned https://github.com/nats-io/nats.swift.git
Revision (git rev-parse @):
436ca4a8cbbaeaeb5d21c14e23647d194774e6da
SUCCESS checkout https://github.com/nats-io/nats.swift.git at v0.4.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/nats-io/nats.swift.git
https://github.com/nats-io/nats.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "nkeys.swift",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.2",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/nats-io/nkeys.swift.git"
},
{
"identity" : "swift-nio-ssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio-ssl.git"
},
{
"identity" : "swift-nuid",
"requirement" : {
"range" : [
{
"lower_bound" : "0.2.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Jarema/swift-nuid.git"
}
],
"manifest_display_name" : "nats-swift",
"name" : "nats-swift",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Nats",
"targets" : [
"Nats"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JetStream",
"targets" : [
"JetStream"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NatsServer",
"targets" : [
"NatsServer"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "bench",
"targets" : [
"bench"
],
"type" : {
"executable" : null
}
},
{
"name" : "Example",
"targets" : [
"Example"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkSub",
"targets" : [
"BenchmarkSub"
],
"type" : {
"executable" : null
}
},
{
"name" : "BenchmarkPubSub",
"targets" : [
"BenchmarkPubSub"
],
"type" : {
"executable" : null
}
},
{
"name" : "Benchmark",
"targets" : [
"Benchmark"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "bench",
"module_type" : "SwiftTarget",
"name" : "bench",
"path" : "Sources/bench",
"product_memberships" : [
"bench"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "executable"
},
{
"c99name" : "NatsTests",
"module_type" : "SwiftTarget",
"name" : "NatsTests",
"path" : "Tests/NatsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/TestUser.creds",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/client-all.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/client-cert-invalid.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/client-cert.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/client-key-invalid.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/client-key.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/ip-ca.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/ip-cert.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/ip-key.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/rootCA-key.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/rootCA.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/server-cert.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/certs/server-key.pem",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/creds.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/jwt.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/nkey",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/nkey.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/permissions.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/tls.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/tls_first.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/tls_first_auto.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/token.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/ws.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/NatsTests/Integration/Resources/wss.conf",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Integration/ConnectionTests.swift",
"Integration/EventsTests.swift",
"Integration/MessageWithHeadersTests.swift",
"Unit/ErrorsTests.swift",
"Unit/HeadersTests.swift",
"Unit/JwtTests.swift",
"Unit/ParserTests.swift"
],
"target_dependencies" : [
"Nats",
"NatsServer"
],
"type" : "test"
},
{
"c99name" : "NatsServer",
"module_type" : "SwiftTarget",
"name" : "NatsServer",
"path" : "Sources/NatsServer",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"NatsServer"
],
"sources" : [
"NatsServer.swift"
],
"type" : "library"
},
{
"c99name" : "Nats",
"module_type" : "SwiftTarget",
"name" : "Nats",
"path" : "Sources/Nats",
"product_dependencies" : [
"NIO",
"NIOSSL",
"Logging",
"NIOFoundationCompat",
"NIOHTTP1",
"NIOWebSocket",
"NKeys",
"Nuid"
],
"product_memberships" : [
"Nats",
"JetStream",
"bench",
"Example",
"BenchmarkSub",
"BenchmarkPubSub",
"Benchmark"
],
"sources" : [
"BatchBuffer.swift",
"ConcurrentQueue.swift",
"Extensions/ByteBuffer+Writer.swift",
"Extensions/Data+Base64.swift",
"Extensions/Data+Parser.swift",
"Extensions/Data+String.swift",
"Extensions/String+Utilities.swift",
"HTTPUpgradeRequestHandler.swift",
"NatsClient/NatsClient+Events.swift",
"NatsClient/NatsClient.swift",
"NatsClient/NatsClientOptions.swift",
"NatsConnection.swift",
"NatsError.swift",
"NatsHeaders.swift",
"NatsJwtUtils.swift",
"NatsMessage.swift",
"NatsProto.swift",
"NatsSubscription.swift",
"RttCommand.swift"
],
"type" : "library"
},
{
"c99name" : "JetStreamTests",
"module_type" : "SwiftTarget",
"name" : "JetStreamTests",
"path" : "Tests/JetStreamTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/JetStreamTests/Integration/Resources/domain.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/JetStreamTests/Integration/Resources/jetstream.conf",
"rule" : {
"process" : {
}
}
},
{
"path" : "/host/spi-builder-workspace/Tests/JetStreamTests/Integration/Resources/prefix.conf",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"Integration/ConsumerTests.swift",
"Integration/JetStreamTests.swift",
"Integration/RequestTests.swift",
"Unit/MessageTests.swift"
],
"target_dependencies" : [
"Nats",
"JetStream",
"NatsServer"
],
"type" : "test"
},
{
"c99name" : "JetStream",
"module_type" : "SwiftTarget",
"name" : "JetStream",
"path" : "Sources/JetStream",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"JetStream"
],
"sources" : [
"Consumer+Pull.swift",
"Consumer.swift",
"JetStreamContext+Consumer.swift",
"JetStreamContext+Stream.swift",
"JetStreamContext.swift",
"JetStreamError.swift",
"JetStreamMessage.swift",
"NanoTimeInterval.swift",
"Stream+Consumer.swift",
"Stream.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "library"
},
{
"c99name" : "Example",
"module_type" : "SwiftTarget",
"name" : "Example",
"path" : "Sources/Example",
"product_memberships" : [
"Example"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkSub",
"module_type" : "SwiftTarget",
"name" : "BenchmarkSub",
"path" : "Sources/BenchmarkSub",
"product_memberships" : [
"BenchmarkSub"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "executable"
},
{
"c99name" : "BenchmarkPubSub",
"module_type" : "SwiftTarget",
"name" : "BenchmarkPubSub",
"path" : "Sources/BenchmarkPubSub",
"product_memberships" : [
"BenchmarkPubSub"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "executable"
},
{
"c99name" : "Benchmark",
"module_type" : "SwiftTarget",
"name" : "Benchmark",
"path" : "Sources/Benchmark",
"product_memberships" : [
"Benchmark"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Nats"
],
"type" : "executable"
}
],
"tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/Jarema/swift-nuid.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/nats-io/nkeys.swift.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
[1/123] Fetching swift-nuid
[85/3959] Fetching swift-nuid, swift-log
[853/4119] Fetching swift-nuid, swift-log, nkeys.swift
[4120/18962] Fetching swift-nuid, swift-log, nkeys.swift, swift-nio-ssl
[6199/95070] Fetching swift-nuid, swift-log, nkeys.swift, swift-nio-ssl, swift-nio
Fetched https://github.com/Jarema/swift-nuid.git from cache (2.12s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.15s)
[55750/80104] Fetching swift-log, nkeys.swift, swift-nio
Fetched https://github.com/nats-io/nkeys.swift.git from cache (6.60s)
Fetched https://github.com/apple/swift-log.git from cache (6.60s)
Fetched https://github.com/apple/swift-nio.git from cache (6.70s)
Computing version for https://github.com/Jarema/swift-nuid.git
Computed https://github.com/Jarema/swift-nuid.git at 0.2.0 (8.22s)
Computing version for https://github.com/nats-io/nkeys.swift.git
Computed https://github.com/nats-io/nkeys.swift.git at 0.1.2 (1.18s)
Fetching https://github.com/Jarema/Base32
Fetching https://github.com/jedisct1/swift-sodium.git
[1/1112] Fetching base32
[1113/5599] Fetching base32, swift-sodium
Fetched https://github.com/Jarema/Base32 from cache (6.39s)
Fetched https://github.com/jedisct1/swift-sodium.git from cache (6.54s)
Computing version for https://github.com/Jarema/Base32
Computed https://github.com/Jarema/Base32 at 0.10.2 (10.45s)
Computing version for https://github.com/jedisct1/swift-sodium.git
Computed https://github.com/jedisct1/swift-sodium.git at 0.9.1 (1.05s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (3.16s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (1.13s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.59s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1710] Fetching swift-atomics
[480/6101] Fetching swift-atomics, swift-system
[3116/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.67s)
Fetched https://github.com/apple/swift-system.git from cache (1.67s)
Fetched https://github.com/apple/swift-collections.git from cache (1.70s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.30s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.75s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.75s)
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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/jedisct1/swift-sodium.git
Working copy of https://github.com/jedisct1/swift-sodium.git resolved at 0.9.1
Creating working copy for https://github.com/Jarema/swift-nuid.git
Working copy of https://github.com/Jarema/swift-nuid.git resolved at 0.2.0
Creating working copy for https://github.com/Jarema/Base32
Working copy of https://github.com/Jarema/Base32 resolved at 0.10.2
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/nats-io/nkeys.swift.git
Working copy of https://github.com/nats-io/nkeys.swift.git resolved at 0.1.2
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-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.31.0
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/cpu_aarch64_sysreg.cc:15:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
32 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[0/478] Compiling cpu_aarch64_sysreg.cc
[0/478] Compiling c-nioatomics.c
[0/478] Compiling a_bitstr.cc
[0/478] Compiling a_d2i_fp.cc
[0/478] Compiling cpu_arm_freebsd.cc
[0/478] Compiling c-atomics.c
[0/478] Compiling a_dup.cc
[0/478] Compiling cpu_aarch64_win.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
warning: you may be able to install libsodium using your system-packager:
apt-get install libsodium-dev
[0/1] Planning build
Building for debugging...
[0/478] Write sources
[25/478] Compiling CNIOWindows WSAStartup.c
[25/478] Compiling _AtomicsShims.c
[27/478] Compiling CNIOWASI CNIOWASI.c
[28/478] Compiling CNIOSHA1 c_nio_sha1.c
[29/478] Compiling CNIOLinux shim.c
[29/478] Compiling CNIOWindows shim.c
[31/478] Compiling CNIOLinux liburing_shims.c
[32/478] Compiling CNIODarwin shim.c
[33/478] Compiling CNIOLLHTTP c_nio_http.c
[34/478] Compiling fiat_p256_adx_mul.S
[35/478] Compiling fiat_p256_adx_sqr.S
[36/478] Compiling CNIOLLHTTP c_nio_api.c
[37/478] Compiling fiat_curve25519_adx_mul.S
[38/478] Compiling fiat_curve25519_adx_square.S
[39/478] Write swift-version-24593BA9C3E375BF.txt
[40/478] 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.
[41/482] Compiling tls_method.cc
[41/482] Compiling tls13_both.cc
[41/482] 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>
| ^~~~~~~~~~~
[41/482] Compiling tls13_server.cc
[41/482] 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>
| ^~~~~~~~~~~
[41/482] Compiling tls13_client.cc
[41/482] Compiling tls13_enc.cc
BUILD FAILURE 6.1 wasm