The Swift Package Index logo.Swift Package Index

Build Information

Failed to build nats-swift, reference v0.4.0 (436ca4), with Swift 6.2 for Wasm on 22 Jun 2025 10:08:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/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.2
Building package at path:  $PWD
https://github.com/nats-io/nats.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/Jarema/swift-nuid.git
Fetching https://github.com/nats-io/nkeys.swift.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-ssl.git
[1/123] Fetching swift-nuid
[124/283] Fetching swift-nuid, nkeys.swift
[196/4119] Fetching swift-nuid, nkeys.swift, swift-log
[4120/19009] Fetching swift-nuid, nkeys.swift, swift-log, swift-nio-ssl
[5461/95348] Fetching swift-nuid, nkeys.swift, swift-log, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (0.96s)
[5273/91512] Fetching swift-nuid, nkeys.swift, swift-nio-ssl, swift-nio
Fetched https://github.com/nats-io/nkeys.swift.git from cache (3.81s)
[69978/91352] Fetching swift-nuid, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.88s)
[55851/76462] Fetching swift-nuid, swift-nio
Fetched https://github.com/Jarema/swift-nuid.git from cache (9.21s)
Fetched https://github.com/apple/swift-nio.git from cache (9.34s)
Computing version for https://github.com/Jarema/swift-nuid.git
Computed https://github.com/Jarema/swift-nuid.git at 0.2.0 (10.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.33s)
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 (7.33s)
Fetched https://github.com/jedisct1/swift-sodium.git from cache (7.42s)
Computing version for https://github.com/Jarema/Base32
Computed https://github.com/Jarema/Base32 at 0.10.2 (11.10s)
Computing version for https://github.com/jedisct1/swift-sodium.git
Computed https://github.com/jedisct1/swift-sodium.git at 0.9.1 (0.90s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.46s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (1.09s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.68s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
[595/6233] Fetching swift-atomics, swift-system
[6234/22873] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.04s)
Fetched https://github.com/apple/swift-system.git from cache (1.05s)
[2829/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.82s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.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.42s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.87s)
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.0
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/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/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
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/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
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...
[0/478] Compiling a_i2d_fp.cc
[1/478] Write swift-version-24593BA9C3E375BF.txt
[1/478] Write sources
[5/478] Compiling _AtomicsShims.c
[6/478] Compiling a_bitstr.cc
[7/478] Compiling pool.cc
[7/478] Write sources
[28/478] Compiling CNIOWindows shim.c
[29/484] Compiling a_d2i_fp.cc
[30/506] Compiling md5.cc
[31/506] Compiling a_bool.cc
[33/525] Emitting module Logging
[34/525] Emitting module _NIODataStructures
[34/525] Compiling c-nioatomics.c
[35/525] Compiling CNIOWindows WSAStartup.c
[36/525] Compiling CNIOWASI CNIOWASI.c
[37/525] Compiling CNIOSHA1 c_nio_sha1.c
[38/525] Compiling CNIOLinux shim.c
[39/525] Compiling CNIOLinux liburing_shims.c
[40/525] Compiling c-atomics.c
[41/525] Compiling CNIOLLHTTP c_nio_http.c
[42/531] Compiling CNIOLLHTTP c_nio_llhttp.c
[43/531] Compiling CNIOLLHTTP c_nio_api.c
[44/531] Compiling CNIODarwin shim.c
[45/531] Compiling CNIOBoringSSLShims shims.c
[46/531] Compiling fiat_p256_adx_sqr.S
[47/531] Compiling fiat_p256_adx_mul.S
[48/531] Compiling fiat_curve25519_adx_square.S
[49/531] Compiling fiat_curve25519_adx_mul.S
[51/531] Emitting module InternalCollectionsUtilities
[52/532] Compiling _NIODataStructures _TinyArray.swift
[53/532] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[54/532] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[55/532] Compiling InternalCollectionsUtilities _SortedCollection.swift
[56/532] Emitting module _NIOBase64
[57/532] Compiling _NIOBase64 Base64.swift
[58/533] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[59/533] Compiling InternalCollectionsUtilities Debugging.swift
[60/533] Compiling InternalCollectionsUtilities Descriptions.swift
[61/533] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[62/533] Compiling InternalCollectionsUtilities UInt+reversed.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[63/533] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[64/533] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/swift-sodium/Sodium/Aead.swift:1:8: error: no such module 'Foundation'
  1 | import Foundation
    |        `- error: no such module 'Foundation'
  2 | import Clibsodium
  3 |
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[71/535] Emitting module Nuid
/host/spi-builder-workspace/.build/checkouts/swift-nuid/Sources/Nuid/Nuid.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | let DIGITS = Array("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".utf8)
[72/535] Compiling Nuid Nuid.swift
/host/spi-builder-workspace/.build/checkouts/swift-nuid/Sources/Nuid/Nuid.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | let DIGITS = Array("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".utf8)
[73/535] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[74/535] Compiling InternalCollectionsUtilities Integer rank.swift
[75/535] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[76/535] Wrapping AST for _NIOBase64 for debugging
[76/535] Compiling tls_record.cc
[77/535] Compiling Logging LogHandler.swift
[78/535] Compiling Logging Locks.swift
BUILD FAILURE 6.2 wasm