Build Information
Failed to build postgres-migrations, reference main (da959a), with Swift 6.2 for Wasm on 2 May 2026 07:53:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hummingbird-project/postgres-migrations.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/hummingbird-project/postgres-migrations
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at da959aa Fix printMigrationComparison crash when expected list has a short first row (#9)
Cloned https://github.com/hummingbird-project/postgres-migrations.git
Revision (git rev-parse @):
da959aa9f408b014e2af07ffc56797661e637bef
SUCCESS checkout https://github.com/hummingbird-project/postgres-migrations.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/hummingbird-project/postgres-migrations.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/vapor/postgres-nio.git
[1/14170] Fetching postgres-nio
Fetched https://github.com/vapor/postgres-nio.git from cache (0.92s)
Computing version for https://github.com/vapor/postgres-nio.git
Computed https://github.com/vapor/postgres-nio.git at 1.33.0 (1.48s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-log.git
[1/2751] Fetching swift-service-lifecycle
[909/5945] Fetching swift-service-lifecycle, swift-metrics
[1481/8792] Fetching swift-service-lifecycle, swift-metrics, swift-nio-transport-services
[5395/24232] Fetching swift-service-lifecycle, swift-metrics, swift-nio-transport-services, swift-nio-ssl
[5629/31042] Fetching swift-service-lifecycle, swift-metrics, swift-nio-transport-services, swift-nio-ssl, swift-log
[9565/48499] Fetching swift-service-lifecycle, swift-metrics, swift-nio-transport-services, swift-nio-ssl, swift-log, swift-crypto
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.75s)
[9948/45748] Fetching swift-metrics, swift-nio-transport-services, swift-nio-ssl, swift-log, swift-crypto
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/apple/swift-metrics.git from cache (0.87s)
[9174/42554] Fetching swift-nio-transport-services, swift-nio-ssl, swift-log, swift-crypto
Fetching https://github.com/apple/swift-collections.git
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.43s)
Fetched https://github.com/apple/swift-log.git from cache (1.43s)
[5103/32897] Fetching swift-nio-ssl, swift-crypto
Fetching https://github.com/apple/swift-atomics.git
[5722/56939] Fetching swift-nio-ssl, swift-crypto, swift-collections
[9124/140210] Fetching swift-nio-ssl, swift-crypto, swift-collections, swift-nio
[11192/142030] Fetching swift-nio-ssl, swift-crypto, swift-collections, swift-nio, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.99s)
[21098/140210] Fetching swift-nio-ssl, swift-crypto, swift-collections, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (4.49s)
[81195/116168] Fetching swift-nio-ssl, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (6.78s)
Fetched https://github.com/apple/swift-crypto.git from cache (6.79s)
Fetched https://github.com/apple/swift-nio.git from cache (10.75s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (15.75s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.65s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6245] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.19s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (1.90s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.72s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.10.1 (0.37s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (1.13s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.14s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (1.29s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (1.00s)
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.43s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.89s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (3.59s)
Fetching https://github.com/apple/swift-asn1.git
[1/1813] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.27s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.65s)
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
Creating working copy for https://github.com/vapor/postgres-nio.git
Working copy of https://github.com/vapor/postgres-nio.git resolved at 1.33.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.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.99.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.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.12.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.10.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.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.6.4
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.0
Building for debugging...
[0/816] Write sources
[31/816] Compiling _AtomicsShims.c
[32/816] Compiling SimpleFIPS202.c
[33/816] Compiling KeccakSponge.c
[34/816] Compiling CXKCPShims shims.c
[35/816] Compiling CNIOWindows shim.c
[36/816] Compiling KeccakHash.c
[37/816] Compiling CNIOWindows WSAStartup.c
[38/816] Compiling CNIOWASI CNIOWASI.c
[39/816] Write swift-version-24593BA9C3E375BF.txt
[40/816] Compiling CNIOPosix event_loop_id.c
[40/816] Compiling CNIOOpenBSD shim.c
[42/839] Compiling a_d2i_fp.cc
[43/845] Compiling aes.cc
[44/863] Compiling a_bool.cc
[46/863] Emitting module Logging
[46/863] Compiling a_bitstr.cc
[48/871] Emitting module InternalCollectionsUtilities
[48/873] Compiling KeccakP-1600-opt64.c
[50/891] Compiling Atomics IntegerConformances.swift
[51/891] Compiling Atomics PointerConformances.swift
[52/891] Compiling Atomics Primitives.native.swift
[53/891] Compiling Atomics OptionalRawRepresentable.swift
[54/891] Compiling Atomics RawRepresentable.swift
[55/891] Compiling Atomics AtomicBool.swift
[56/891] Compiling Atomics AtomicValue.swift
[57/891] Compiling Atomics UnsafeAtomic.swift
[58/893] Compiling Atomics AtomicReference.swift
[59/893] Compiling Atomics AtomicMemoryOrderings.swift
[60/893] Emitting module _NIOBase64
[61/893] Compiling _NIOBase64 Base64.swift
[62/894] Compiling ConcurrencyHelpers LockedValueBox.swift
[64/894] Compiling SwiftASN1 DER.swift
[66/894] Emitting module SwiftASN1
[67/894] Compiling SwiftASN1 Errors.swift
[68/894] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[69/894] Compiling CoreMetrics WithMetricsFactory.swift
[69/894] Compiling CNIOLinux shim.c
[71/894] Compiling Atomics AtomicStorage.swift
[72/894] Compiling CNIOLinux liburing_shims.c
[74/894] Compiling Atomics AtomicInteger.swift
[75/894] Compiling Atomics AtomicOptionalWrappable.swift
[77/894] Compiling Atomics DoubleWord.swift
[78/894] Compiling Atomics ManagedAtomic.swift
[79/894] Compiling Atomics ManagedAtomicLazyReference.swift
[79/894] Compiling CNIODarwin shim.c
[81/894] Compiling _NIODataStructures PriorityQueue.swift
[82/894] Compiling _NIODataStructures _TinyArray.swift
[83/894] Compiling Logging LogEvent.swift
[94/895] Compiling CoreMetrics MappingMetricsFactory.swift
[95/895] Compiling CoreMetrics Metrics.swift
[95/895] Compiling fiat_p256_adx_sqr.S
[98/895] Compiling CNIOBoringSSLShims shims.c
[106/985] Compiling ContainersPreview Drain+Reduce.swift
[107/985] Compiling ContainersPreview Drain.swift
[108/985] Compiling ContainersPreview Producer+Collect.swift
[109/985] Compiling ContainersPreview Producer+Filter.swift
[110/985] Compiling ContainersPreview Producer+Map.swift
[111/985] Compiling ContainersPreview Producer+Reduce.swift
[112/985] Compiling ContainersPreview Producer.swift
[113/985] Compiling ContainersPreview Borrow.swift
[114/985] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[115/985] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[116/985] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[117/985] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[118/985] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[119/985] Compiling ContainersPreview RandomAccessContainer.swift
[120/985] Compiling ContainersPreview RangeExpression2.swift
[121/985] Compiling ContainersPreview RangeReplaceableContainer.swift
[122/985] Compiling ContainersPreview Drain+Map.swift
[123/989] Emitting module CoreMetrics
[124/989] Compiling CoreMetrics Locks.swift
[125/990] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[126/990] Compiling ContainersPreview BorrowingSequence.swift
[127/990] Compiling ContainersPreview BidirectionalContainer.swift
[128/990] Compiling ContainersPreview Container+Filter.swift
[129/990] Compiling ContainersPreview Container+SpanwiseZip.swift
[130/990] Compiling ContainersPreview Container.swift
[131/990] Compiling ContainersPreview ContainerIterator.swift
[132/990] Compiling ContainersPreview DynamicContainer.swift
[133/990] Compiling ContainersPreview MutableContainer.swift
[134/990] Compiling ContainersPreview PermutableContainer.swift
[135/990] Emitting module ConcurrencyHelpers
[136/990] Compiling ConcurrencyHelpers Lock.swift
[141/990] Compiling Logging Locks.swift
[145/991] Compiling Logging MetadataProvider.swift
[146/991] Compiling ContainersPreview Box.swift
[147/991] Compiling ContainersPreview Inout.swift
[148/991] Compiling ContainersPreview InputSpan.swift
[149/991] Compiling ContainersPreview Shared.swift
[151/991] Compiling fiat_p256_adx_mul.S
[153/991] Emitting module _NIODataStructures
[154/991] Compiling _NIODataStructures Heap.swift
[157/997] Emitting module ContainersPreview
[158/997] Compiling ContainersPreview OutputSpan+Extras.swift
[159/997] Compiling ContainersPreview TemporaryAllocation.swift
[160/997] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[161/997] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[162/997] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[164/998] Compiling fiat_curve25519_adx_square.S
[165/998] Compiling fiat_curve25519_adx_mul.S
[167/998] Emitting module UnixSignals
[168/1033] Compiling DequeModule RigidDeque+Container.swift
[169/1033] Compiling DequeModule RigidDeque+Descriptions.swift
[170/1039] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[171/1039] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[172/1039] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[173/1039] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[174/1039] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[175/1039] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[176/1039] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[178/1046] Emitting module Metrics
[179/1046] Compiling Metrics Metrics.swift
[181/1047] Compiling UnixSignals UnixSignal.swift
[182/1047] Compiling UnixSignals UnixSignalsSequence.swift
[184/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[185/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[186/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[187/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[188/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[189/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[190/1048] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[191/1048] Compiling DequeModule UniqueDeque+Consumption.swift
[192/1048] Compiling DequeModule UniqueDeque+Container.swift
[193/1048] Compiling DequeModule UniqueDeque+Descriptions.swift
[194/1048] Compiling DequeModule UniqueDeque+Equatable.swift
[195/1048] Compiling DequeModule UniqueDeque+Experimental.swift
[196/1053] Compiling Logging LogHandler.swift
[197/1053] Compiling Logging Logging.swift
[199/1054] Compiling DequeModule Deque+Testing.swift
[200/1054] Compiling DequeModule Deque._Storage.swift
[201/1054] Compiling DequeModule Deque._UnsafeHandle.swift
[202/1054] Compiling DequeModule Deque.swift
[203/1054] Compiling DequeModule _DequeBuffer.swift
[204/1054] Compiling DequeModule _DequeBufferHeader.swift
[205/1054] Compiling DequeModule RigidDeque+Append.swift
[206/1054] Compiling DequeModule RigidDeque+Consumption.swift
[207/1054] Compiling DequeModule UniqueDeque+Hashable.swift
[208/1054] Compiling DequeModule UniqueDeque+Initializers.swift
[209/1054] Compiling DequeModule UniqueDeque+Insertions.swift
[210/1054] Compiling DequeModule UniqueDeque+Prepend.swift
[211/1054] Compiling DequeModule UniqueDeque+Removals.swift
[218/1054] Compiling DequeModule RigidDeque+Removals.swift
[219/1054] Compiling DequeModule RigidDeque+Replacements.swift
[220/1054] Compiling DequeModule RigidDeque+Testing.swift
[221/1054] Compiling DequeModule RigidDeque.swift
[222/1054] Compiling DequeModule UniqueDeque+Append.swift
[228/1054] Compiling DequeModule RigidDeque+Equatable.swift
[229/1054] Compiling DequeModule RigidDeque+Experimental.swift
[230/1054] Compiling DequeModule RigidDeque+Hashable.swift
[231/1054] Compiling DequeModule RigidDeque+Initializers.swift
[232/1054] Compiling DequeModule RigidDeque+Insertions.swift
[233/1054] Compiling DequeModule RigidDeque+Prepend.swift
[241/1054] Compiling DequeModule UniqueDeque+Replacements.swift
[253/1054] Compiling DequeModule Deque+Codable.swift
[254/1054] Compiling DequeModule Deque+Collection.swift
[255/1054] Compiling DequeModule Deque+CustomReflectable.swift
[256/1054] Compiling DequeModule Deque+Descriptions.swift
[257/1054] Compiling DequeModule Deque+Equatable.swift
[258/1054] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[259/1054] Compiling OrderedCollections OrderedSet+Sendable.swift
[260/1054] Compiling OrderedCollections OrderedSet+SubSequence.swift
[261/1054] Compiling OrderedCollections OrderedSet+Testing.swift
[262/1054] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[263/1054] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[264/1054] Compiling OrderedCollections OrderedSet.swift
[265/1054] Compiling OrderedCollections _UnsafeBitset.swift
[272/1054] Emitting module Atomics
[280/1055] Compiling DequeModule Deque+Extras.swift
[281/1055] Compiling DequeModule Deque+Hashable.swift
[282/1055] Emitting module OrderedCollections
[289/1056] Compiling tls_method.cc
[290/1056] Compiling tls13_enc.cc
[291/1056] Compiling tls_record.cc
[292/1056] Compiling tls13_server.cc
[293/1056] Compiling tls13_client.cc
[294/1056] Compiling t1_enc.cc
[295/1056] Compiling ssl_transcript.cc
[297/1056] Emitting module DequeModule
[297/1056] Compiling tls13_both.cc
[298/1056] Compiling ssl_versions.cc
[299/1056] Compiling ssl_x509.cc
[302/1056] Compiling DequeModule UniqueDeque.swift
[303/1056] Compiling DequeModule _DequeSlot.swift
[304/1056] Compiling DequeModule _UnsafeDequeHandle.swift
[305/1056] Compiling DequeModule _UnsafeDequeSegments.swift
[306/1057] Compiling ssl_stat.cc
[307/1072] Compiling ssl_session.cc
[309/1072] Compiling _ConnectionPoolModule ConnectionIDGenerator.swift
[310/1072] Compiling _ConnectionPoolModule ConnectionLease.swift
[311/1073] Compiling _ConnectionPoolModule ConnectionPoolObservabilityDelegate.swift
[312/1073] Compiling _ConnectionPoolModule ConnectionRequest.swift
[312/1073] Compiling ssl_key_share.cc
[313/1073] Compiling ssl_file.cc
[314/1073] Compiling ssl_privkey.cc
[315/1073] Compiling ssl_credential.cc
[317/1073] Compiling _ConnectionPoolModule Max2Sequence.swift
[318/1073] Compiling _ConnectionPoolModule NIOLock.swift
[318/1073] Compiling ssl_lib.cc
[320/1073] Compiling _ConnectionPoolModule TinyFastSequence.swift
[320/1073] Compiling ssl_cipher.cc
[322/1073] Compiling _ConnectionPoolModule PoolStateMachine+RequestQueue.swift
/host/spi-builder-workspace/.build/checkouts/postgres-nio/Sources/ConnectionPoolModule/PoolStateMachine.swift:888:48: error: cannot find 'pow' in scope
886 |
887 | let start = Double(100_000_000)
888 | let backoffNanosecondsDouble = start * pow(1.25, Double(attempts - 1))
| `- error: cannot find 'pow' in scope
889 |
890 | // Cap to 60s _before_ we convert to Int64, to avoid trapping in the Int64 initializer.
/host/spi-builder-workspace/.build/checkouts/postgres-nio/Sources/ConnectionPoolModule/PoolStateMachine.swift:898:74: error: referencing instance method 'randomElement()' on 'ClosedRange' requires that 'Float16' conform to 'SignedInteger'
896 | let jitterRange = (backoffNanoseconds / 100) * 3
897 | // Pick a random element from the range +/- jitter range.
898 | let jitter: Duration = .nanoseconds((-jitterRange...jitterRange).randomElement()!)
| `- error: referencing instance method 'randomElement()' on 'ClosedRange' requires that 'Float16' conform to 'SignedInteger'
899 | let jitteredBackoff = backoff + jitter
900 | return jitteredBackoff
Swift.ClosedRange:1:11: note: requirement from conditional conformance of 'ClosedRange<Float16>' to 'Collection'
1 | extension ClosedRange : Collection, BidirectionalCollection, RandomAccessCollection where Bound : Strideable, Bound.Stride : SignedInteger {
| `- note: requirement from conditional conformance of 'ClosedRange<Float16>' to 'Collection'
2 | public typealias SubSequence = Slice<ClosedRange<Bound>>
3 | @inlinable public var startIndex: ClosedRange<Bound>.Index { get }
[323/1073] Compiling _ConnectionPoolModule PoolStateMachine.swift
/host/spi-builder-workspace/.build/checkouts/postgres-nio/Sources/ConnectionPoolModule/PoolStateMachine.swift:888:48: error: cannot find 'pow' in scope
886 |
887 | let start = Double(100_000_000)
888 | let backoffNanosecondsDouble = start * pow(1.25, Double(attempts - 1))
| `- error: cannot find 'pow' in scope
889 |
890 | // Cap to 60s _before_ we convert to Int64, to avoid trapping in the Int64 initializer.
/host/spi-builder-workspace/.build/checkouts/postgres-nio/Sources/ConnectionPoolModule/PoolStateMachine.swift:898:74: error: referencing instance method 'randomElement()' on 'ClosedRange' requires that 'Float16' conform to 'SignedInteger'
896 | let jitterRange = (backoffNanoseconds / 100) * 3
897 | // Pick a random element from the range +/- jitter range.
898 | let jitter: Duration = .nanoseconds((-jitterRange...jitterRange).randomElement()!)
| `- error: referencing instance method 'randomElement()' on 'ClosedRange' requires that 'Float16' conform to 'SignedInteger'
899 | let jitteredBackoff = backoff + jitter
900 | return jitteredBackoff
Swift.ClosedRange:1:11: note: requirement from conditional conformance of 'ClosedRange<Float16>' to 'Collection'
1 | extension ClosedRange : Collection, BidirectionalCollection, RandomAccessCollection where Bound : Strideable, Bound.Stride : SignedInteger {
| `- note: requirement from conditional conformance of 'ClosedRange<Float16>' to 'Collection'
2 | public typealias SubSequence = Slice<ClosedRange<Bound>>
3 | @inlinable public var startIndex: ClosedRange<Bound>.Index { get }
[324/1073] Compiling _ConnectionPoolModule ConnectionPool.swift
[325/1073] Compiling _ConnectionPoolModule ConnectionPoolError.swift
[325/1073] Compiling ssl_cert.cc
[326/1073] Compiling s3_lib.cc
[328/1073] Emitting module _ConnectionPoolModule
[328/1073] Compiling ssl_buffer.cc
[329/1073] Compiling s3_pkt.cc
[330/1073] Compiling s3_both.cc
[331/1073] Compiling ssl_asn1.cc
[332/1073] Compiling ssl_aead_ctx.cc
[334/1073] Compiling _ConnectionPoolModule PoolStateMachine+ConnectionGroup.swift
[335/1073] Compiling _ConnectionPoolModule PoolStateMachine+ConnectionState.swift
[336/1073] Compiling _ConnectionPoolModule NIOLockedValueBox.swift
[337/1073] Compiling _ConnectionPoolModule NoKeepAliveBehavior.swift
[337/1073] Compiling dtls_record.cc
[337/1073] Compiling handshake.cc
[337/1073] Compiling handoff.cc
[337/1073] Compiling encrypted_client_hello.cc
[337/1073] Compiling handshake_server.cc
[337/1073] Compiling extensions.cc
[337/1073] Compiling handshake_client.cc
BUILD FAILURE 6.2 wasm