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 Linux on 22 Jun 2025 10:07:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 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:         linux
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-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/Jarema/swift-nuid.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/nats-io/nkeys.swift.git
[1/123] Fetching swift-nuid
[124/3959] Fetching swift-nuid, swift-log
[2771/4119] Fetching swift-nuid, swift-log, nkeys.swift
[4120/19009] Fetching swift-nuid, swift-log, nkeys.swift, swift-nio-ssl
Fetched https://github.com/Jarema/swift-nuid.git from cache (0.46s)
[5337/18886] Fetching swift-log, nkeys.swift, swift-nio-ssl
[6380/95225] Fetching swift-log, nkeys.swift, swift-nio-ssl, swift-nio
Fetched https://github.com/nats-io/nkeys.swift.git from cache (1.95s)
[75217/95065] Fetching swift-log, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.97s)
[61091/80175] Fetching swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (3.91s)
Fetched https://github.com/apple/swift-nio.git from cache (4.00s)
Computing version for https://github.com/Jarema/swift-nuid.git
Computed https://github.com/Jarema/swift-nuid.git at 0.2.0 (4.38s)
Computing version for https://github.com/nats-io/nkeys.swift.git
Computed https://github.com/nats-io/nkeys.swift.git at 0.1.2 (0.41s)
Fetching https://github.com/jedisct1/swift-sodium.git
Fetching https://github.com/Jarema/Base32
[1/1112] Fetching base32
[1113/5599] Fetching base32, swift-sodium
Fetched https://github.com/Jarema/Base32 from cache (4.55s)
Fetched https://github.com/jedisct1/swift-sodium.git from cache (4.64s)
Computing version for https://github.com/Jarema/Base32
Computed https://github.com/Jarema/Base32 at 0.10.2 (7.43s)
Computing version for https://github.com/jedisct1/swift-sodium.git
Computed https://github.com/jedisct1/swift-sodium.git at 0.9.1 (0.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.64s)
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.15s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.25s)
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/1797] Fetching swift-atomics
[595/6233] Fetching swift-atomics, swift-system
[969/22873] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.06s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.06s)
Fetched https://github.com/apple/swift-collections.git from cache (1.09s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.40s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.59s)
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-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/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/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-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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.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
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_dup.cc
[1/478] Compiling a_bool.cc
[2/478] Write sources
[5/478] Compiling a_octet.cc
[6/478] Write sources
[26/478] Compiling _AtomicsShims.c
[27/478] Compiling CNIOWindows shim.c
[27/478] Compiling CNIOWindows WSAStartup.c
[29/478] Compiling a_d2i_fp.cc
[30/478] Compiling CNIOWASI CNIOWASI.c
[31/478] Write swift-version-24593BA9C3E375BF.txt
[32/478] Compiling CNIOSHA1 c_nio_sha1.c
[33/478] Compiling CNIOLinux liburing_shims.c
[34/478] Compiling a_i2d_fp.cc
[35/482] Compiling CNIOLinux shim.c
[36/482] Compiling a_bitstr.cc
[37/484] Compiling a_gentm.cc
[38/506] Compiling CNIOLLHTTP c_nio_llhttp.c
[39/511] Compiling CNIOLLHTTP c_nio_http.c
[40/525] Compiling CNIOLLHTTP c_nio_api.c
[41/525] Compiling CNIODarwin shim.c
[42/525] Compiling CNIOBoringSSLShims shims.c
[43/525] Compiling fiat_p256_adx_sqr.S
[44/525] Compiling fiat_p256_adx_mul.S
[45/525] Compiling fiat_curve25519_adx_square.S
[46/525] Compiling fiat_curve25519_adx_mul.S
[47/525] Compiling c-nioatomics.c
[48/525] Compiling tls_record.cc
[49/525] Compiling tls_method.cc
[51/525] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[52/525] Compiling InternalCollectionsUtilities Debugging.swift
[53/525] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[54/525] Compiling InternalCollectionsUtilities _SortedCollection.swift
[55/525] Compiling InternalCollectionsUtilities Descriptions.swift
[56/525] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[57/526] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[57/526] Compiling tls13_server.cc
[59/526] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[60/526] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[61/526] Emitting module InternalCollectionsUtilities
[62/526] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[63/526] Compiling InternalCollectionsUtilities Integer rank.swift
[64/526] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[65/526] Compiling InternalCollectionsUtilities UInt+reversed.swift
[66/526] Emitting module _NIOBase64
[67/526] Compiling _NIOBase64 Base64.swift
[68/526] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[70/528] Compiling tls13_enc.cc
[72/530] Compiling _NIODataStructures PriorityQueue.swift
[73/530] Compiling _NIODataStructures _TinyArray.swift
[73/539] Wrapping AST for _NIOBase64 for debugging
[74/543] Wrapping AST for InternalCollectionsUtilities for debugging
[76/543] Compiling DequeModule Deque+CustomReflectable.swift
[77/543] Compiling DequeModule Deque+Descriptions.swift
[78/545] Compiling DequeModule _DequeBuffer.swift
[79/545] Compiling DequeModule _DequeBufferHeader.swift
[80/545] Compiling DequeModule Deque+Equatable.swift
[81/545] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[82/545] Compiling DequeModule _DequeSlot.swift
[83/545] Compiling DequeModule _UnsafeWrappedBuffer.swift
[84/545] Emitting module Nuid
[85/545] Compiling Nuid Nuid.swift
/host/spi-builder-workspace/.build/checkouts/swift-nuid/Sources/Nuid/Nuid.swift:55:22: error: cannot find 'SecRandomCopyBytes' in scope
53 |      func randomizePrefix() {
54 |         var cb = [UInt8](repeating: 0, count: PRE_LEN)
55 |         let result = SecRandomCopyBytes(kSecRandomDefault, PRE_LEN, &cb)
   |                      `- error: cannot find 'SecRandomCopyBytes' in scope
56 |
57 |         if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/swift-nuid/Sources/Nuid/Nuid.swift:55:41: error: cannot find 'kSecRandomDefault' in scope
53 |      func randomizePrefix() {
54 |         var cb = [UInt8](repeating: 0, count: PRE_LEN)
55 |         let result = SecRandomCopyBytes(kSecRandomDefault, PRE_LEN, &cb)
   |                                         `- error: cannot find 'kSecRandomDefault' in scope
56 |
57 |         if result != errSecSuccess {
/host/spi-builder-workspace/.build/checkouts/swift-nuid/Sources/Nuid/Nuid.swift:57:22: error: cannot find 'errSecSuccess' in scope
55 |         let result = SecRandomCopyBytes(kSecRandomDefault, PRE_LEN, &cb)
56 |
57 |         if result != errSecSuccess {
   |                      `- error: cannot find 'errSecSuccess' in scope
58 |             fatalError("nuid: failed generating crypto random number")
59 |         }
[85/545] Compiling t1_enc.cc
[85/545] Compiling tls13_both.cc
[86/545] Emitting module Logging
[87/545] Compiling Logging Locks.swift
[88/545] Compiling Logging LogHandler.swift
<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/Clibsodium/shim.h:1:10: error: 'sodium.h' file not found
1 | #include <sodium.h>
  |          `- error: 'sodium.h' file not found
2 |
3 | #warning Using a system installation of libsodium - This is unsupported.
[89/545] Emitting module _NIODataStructures
[89/545] Compiling tls13_client.cc
BUILD FAILURE 6.2 linux