The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 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.4
Building package at path:  $PWD
https://github.com/hjuraev/nats-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-crypto.git
[1/8165] Fetching swift-log
[1879/24230] Fetching swift-log, swift-nio-ssl
[8156/42779] Fetching swift-log, swift-nio-ssl, swift-crypto
[17647/128879] Fetching swift-log, swift-nio-ssl, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-log.git (2.18s)
[86274/120714] Fetching swift-nio-ssl, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git (2.21s)
[71070/104649] Fetching swift-crypto, swift-nio
Fetched https://github.com/apple/swift-crypto.git (2.55s)
[58548/86100] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git (5.56s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (6.02s)
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.41s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.59s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[19/1881] Fetching swift-atomics
[1882/29604] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git (0.77s)
[278/27723] Fetching swift-collections
Fetching https://github.com/apple/swift-system.git
[27724/34675] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git (0.73s)
Fetched https://github.com/apple/swift-collections.git (2.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (2.87s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.0 (0.54s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.37s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (1.92s)
Fetching https://github.com/apple/swift-asn1.git
[1/1983] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.52s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (2.29s)
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
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.0
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-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-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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 959]
[Planning 557 / 959]
[Planning deferred tasks]
[Constructing 289 / 2735]
[Constructing 2439 / 2735]
[28 / 1047] SpanPreview
[134 / 1049]
[145 / 1057] CNIOWindows
[152 / 1075] CNIOOpenBSD
[157 / 1075] _NIOBase64
[158 / 1075] CNIOLinux
[160 / 1075] _NIOBase64
[170 / 1075] Logging
[176 / 1075] Logging
[177 / 1075] _NIOBase64
[180 / 1076] InternalCollectionsUtilities
[184 / 1076] Logging-product
[190 / 1076] InternalCollectionsUtilities
[192 / 1076] InternalCollectionsUtilities
[193 / 1076] InternalCollectionsUtilities
[195 / 1077] SpanPreview
[200 / 1077] CNIOPosix
[203 / 1083] NIOConcurrencyHelpers
[206 / 1090] SpanPreview
[211 / 1090] CNIOFreeBSD
[213 / 1090] SpanPreview
[215 / 1091] NIOConcurrencyHelpers
[217 / 1092] SpanPreview
[219 / 1092] SpanPreview
[222 / 1092] NIOConcurrencyHelpers
[223 / 1092] Logging
[225 / 1093] Logging
[227 / 1095] CryptoBoringWrapper
[231 / 1111] DequeModule
[234 / 1111] DequeModule
[235 / 1112] InternalCollectionsUtilities
[243 / 1112] InternalCollectionsUtilities
[244 / 1112] NIOConcurrencyHelpers-product
[245 / 1113] NIOConcurrencyHelpers-product
[247 / 1113] DequeModule
[248 / 1113] NIOConcurrencyHelpers
[250 / 1113] DequeModule
[251 / 1113] CryptoBoringWrapper
[252 / 1113] CryptoBoringWrapper
[252 / 1113] DequeModule
[254 / 1113] CryptoBoringWrapper
[255 / 1113] CryptoBoringWrapper
[257 / 1113] CryptoBoringWrapper
[263 / 1113] CNIOBoringSSL
[264 / 1113] CNIOBoringSSL
[265 / 1113] CNIOBoringSSL
[266 / 1113] CNIOBoringSSL
[267 / 1113] CryptoBoringWrapper
[269 / 1113] CNIOBoringSSL
[270 / 1114] CNIOBoringSSL
[272 / 1114] CNIOBoringSSL
[273 / 1114] CNIOBoringSSL
[275 / 1114] CNIOBoringSSL
[276 / 1114] CNIOBoringSSL
[277 / 1114] CNIOBoringSSL
[279 / 1114] CNIOBoringSSL
[281 / 1114] CNIOBoringSSL
[282 / 1114] CNIOBoringSSL
[283 / 1114] CNIOBoringSSL
[285 / 1115] CNIOBoringSSL
[287 / 1115] CNIOBoringSSL
[288 / 1115] CNIOBoringSSL
[291 / 1115] DequeModule
[296 / 1115] CNIOBoringSSL
[299 / 1115] CNIOBoringSSL
[301 / 1115] CNIOBoringSSL
[303 / 1115] CNIOBoringSSL
[305 / 1115] CNIOBoringSSL
[306 / 1115] CNIOBoringSSL
[307 / 1115] CNIOBoringSSL
[308 / 1115] CNIOBoringSSL
[311 / 1115] CNIOBoringSSL
[316 / 1115] CNIOBoringSSL
[318 / 1115] CNIOBoringSSL
[320 / 1115] CNIOBoringSSL
[322 / 1115] CNIOBoringSSL
[323 / 1115] CNIOBoringSSL
[324 / 1115] CNIOBoringSSL
[327 / 1115] CNIOBoringSSL
[328 / 1115] CNIOBoringSSL
[329 / 1115] CNIOBoringSSL
[330 / 1115] CNIOBoringSSL
[332 / 1115] CNIOBoringSSL
[334 / 1115] CNIOBoringSSL
[335 / 1115] CNIOBoringSSL
[336 / 1115] CNIOBoringSSL
[338 / 1115] CNIOBoringSSL
[340 / 1115] CNIOBoringSSL
[342 / 1115] CNIOBoringSSL
[344 / 1115] CNIOBoringSSL
[346 / 1115] CNIOBoringSSL
[348 / 1115] CNIOBoringSSL
[350 / 1115] CNIOBoringSSL
[351 / 1115] CNIOBoringSSL
[354 / 1115] CNIOBoringSSL
[355 / 1115] CNIOBoringSSL
[357 / 1115] CNIOBoringSSL
[358 / 1115] CNIOBoringSSL
[359 / 1115] CNIOBoringSSL
[361 / 1115] CNIOBoringSSL
[363 / 1115] CNIOBoringSSL
[366 / 1115] CNIOBoringSSL
[367 / 1115] CNIOBoringSSL
[368 / 1115] CNIOBoringSSL
[369 / 1115] CNIOBoringSSL
[371 / 1115] CNIOBoringSSL
[372 / 1115] CNIOBoringSSL
[374 / 1115] CNIOBoringSSL
[376 / 1115] CNIOBoringSSL
[377 / 1115] CNIOBoringSSL
[379 / 1115] CNIOBoringSSL
[380 / 1115] CNIOBoringSSL
[383 / 1115] CNIOBoringSSL
[384 / 1115] CNIOBoringSSL
[386 / 1115] CNIOBoringSSL
[387 / 1115] CNIOBoringSSL
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc:30:10: fatal error: 'netdb.h' file not found
   30 | #include <netdb.h>
      |          ^~~~~~~~~
1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.o /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc normal wasm32 c++ com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line:     cd /host

    Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp

    /usr/bin/clang -x c++ -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/11b881b950eb02e21769317df93e9b41d1d7f0348e4e0901ae810dce93ca1a57-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.dia -c /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/bio/socket_helper.cc -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-nio-ssl.build/Debug-webassembly-wasm32/CNIOBoringSSL-t.build/Objects-normal/wasm32/socket_helper.o
error: Build failed
BUILD FAILURE 6.4 wasm