Build Information
Failed to build postgres-migrations, reference 1.1.1 (da959a), with Swift 6.3 for Wasm on 2 May 2026 07:40:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.3-latest swift build --swift-sdk swift-6.3-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: 1.1.1
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
* tag 1.1.1 -> FETCH_HEAD
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 1.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
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-1":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/vapor/postgres-nio.git
[1/14170] Fetching postgres-nio
Fetched https://github.com/vapor/postgres-nio.git from cache (1.30s)
Computing version for https://github.com/vapor/postgres-nio.git
Computed https://github.com/vapor/postgres-nio.git at 1.33.0 (2.21s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-log.git
[1/2751] Fetching swift-service-lifecycle
[717/26793] Fetching swift-service-lifecycle, swift-collections
[4195/44250] Fetching swift-service-lifecycle, swift-collections, swift-crypto
[4196/51060] Fetching swift-service-lifecycle, swift-collections, swift-crypto, swift-log
[5535/66500] Fetching swift-service-lifecycle, swift-collections, swift-crypto, swift-log, swift-nio-ssl
[13575/149771] Fetching swift-service-lifecycle, swift-collections, swift-crypto, swift-log, swift-nio-ssl, swift-nio
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.75s)
Fetched https://github.com/apple/swift-log.git from cache (1.75s)
[10634/140210] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-nio-transport-services.git
[32925/143057] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio, swift-nio-transport-services
Fetching https://github.com/apple/swift-atomics.git
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (1.01s)
[54324/140210] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-metrics.git
[67938/142030] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio, swift-atomics
[77805/145224] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio, swift-atomics, swift-metrics
Fetched https://github.com/apple/swift-atomics.git from cache (1.23s)
[81981/143404] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio, swift-metrics
Fetched https://github.com/apple/swift-metrics.git from cache (1.38s)
[80767/140210] Fetching swift-collections, swift-crypto, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (6.80s)
[78139/124770] Fetching swift-collections, swift-crypto, swift-nio
Fetched https://github.com/apple/swift-collections.git from cache (13.72s)
Fetched https://github.com/apple/swift-crypto.git from cache (13.75s)
Fetched https://github.com/apple/swift-nio.git from cache (13.89s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (14.93s)
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 (1.77s)
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 (0.67s)
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.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.04s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.10.1 (0.73s)
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 (0.68s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.55s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.67s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (2.40s)
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.86s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (2.08s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.0 (4.02s)
Fetching https://github.com/apple/swift-asn1.git
[1/1813] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.32s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.98s)
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-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-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-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/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-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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.99.0
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-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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.0
Building for debugging...
[0/816] Write sources
[17/816] Compiling _AtomicsShims.c
[18/816] Write sources
[32/816] Write swift-version-24593BA9C3E375BF.txt
[33/816] Compiling CNIOWindows shim.c
[33/816] Compiling CXKCPShims shims.c
[33/816] Compiling KeccakSponge.c
[33/816] Compiling KeccakHash.c
[37/816] Compiling SimpleFIPS202.c
[38/816] Compiling CNIOWindows WSAStartup.c
[39/816] Compiling CNIOWASI CNIOWASI.c
[41/871] Emitting module _NIODataStructures
[42/871] Emitting module InternalCollectionsUtilities
[43/873] Emitting module SwiftASN1
[44/875] Compiling CoreMetrics WithMetricsFactory.swift
[45/875] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[46/875] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[47/875] Compiling CoreMetrics MappingMetricsFactory.swift
[48/875] Compiling SwiftASN1 DER.swift
[49/875] Compiling SwiftASN1 Errors.swift
[51/875] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[52/875] Compiling InternalCollectionsUtilities String+Padding.swift
[55/875] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[56/875] Compiling InternalCollectionsUtilities Span+Extras.swift
[57/875] Compiling InternalCollectionsUtilities Integer rank.swift
[58/875] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[59/875] Compiling InternalCollectionsUtilities UInt+reversed.swift
[60/875] Compiling ConcurrencyHelpers LockedValueBox.swift
[61/875] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[63/875] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[64/875] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[65/875] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[66/875] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[67/875] Compiling InternalCollectionsUtilities Debugging.swift
[68/875] Compiling InternalCollectionsUtilities Descriptions.swift
[69/875] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[72/876] Compiling _NIODataStructures PriorityQueue.swift
[73/876] Compiling _NIODataStructures _TinyArray.swift
[74/876] Compiling Logging LogEvent.swift
[76/876] Compiling _NIOBase64 Base64.swift
[77/876] Emitting module _NIOBase64
[79/950] Compiling CoreMetrics Metrics.swift
[80/950] Compiling Logging MetadataProvider.swift
[81/950] Compiling Logging Locks.swift
[82/950] Emitting module Logging
[83/950] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[84/950] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[85/950] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[86/950] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[87/950] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[88/950] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[89/950] Compiling OrderedCollections OrderedDictionary+Elements.swift
[90/950] Compiling OrderedCollections _HashTable+Bucket.swift
[91/950] Compiling OrderedCollections _HashTable+BucketIterator.swift
[92/950] Compiling OrderedCollections _HashTable+Constants.swift
[93/950] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[94/950] Compiling OrderedCollections _HashTable.swift
[95/950] Emitting module CoreMetrics
[96/950] Compiling CoreMetrics Locks.swift
[97/950] Compiling ConcurrencyHelpers Lock.swift
[98/950] Emitting module ConcurrencyHelpers
[105/955] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[106/955] Compiling _NIODataStructures Heap.swift
[107/994] Compiling CNIOPosix event_loop_id.c
[108/994] Compiling CNIOOpenBSD shim.c
[110/994] Compiling ContainersPreview Producer+Map.swift
[111/994] Compiling ContainersPreview Producer+Reduce.swift
[112/994] Compiling ContainersPreview Producer.swift
[113/994] Compiling ContainersPreview Borrow.swift
[113/994] Compiling CNIOLinux shim.c
[114/998] Compiling CNIOLinux liburing_shims.c
[116/998] Compiling ContainersPreview Drain+Reduce.swift
[117/998] Compiling ContainersPreview Drain.swift
[118/998] Compiling ContainersPreview Producer+Collect.swift
[119/998] Compiling ContainersPreview Producer+Filter.swift
[119/998] Compiling CNIODarwin shim.c
[121/998] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[122/998] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[123/998] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[124/998] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[125/998] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[126/998] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[127/998] Compiling ContainersPreview BorrowingSequence.swift
[128/998] Compiling ContainersPreview BidirectionalContainer.swift
[129/998] Compiling ContainersPreview Container+Filter.swift
[130/998] Compiling ContainersPreview Container+SpanwiseZip.swift
[131/998] Compiling ContainersPreview Box.swift
[132/998] Compiling ContainersPreview Inout.swift
[133/998] Compiling ContainersPreview InputSpan.swift
[134/998] Compiling ContainersPreview Shared.swift
[135/998] Compiling ContainersPreview DynamicContainer.swift
[136/998] Compiling ContainersPreview MutableContainer.swift
[137/998] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[138/998] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[139/998] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[140/998] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[141/998] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[142/998] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[143/998] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[144/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[145/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[146/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[147/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[148/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[149/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[150/1005] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[151/1005] Compiling ContainersPreview RandomAccessContainer.swift
[152/1005] Compiling ContainersPreview RangeExpression2.swift
[153/1005] Compiling ContainersPreview RangeReplaceableContainer.swift
[154/1005] Compiling ContainersPreview Drain+Map.swift
[155/1005] Compiling ContainersPreview Container.swift
[156/1005] Compiling ContainersPreview ContainerIterator.swift
[159/1005] Compiling ContainersPreview PermutableContainer.swift
[163/1005] Compiling Metrics Metrics.swift
[164/1005] Emitting module Metrics
[173/1006] Compiling UnixSignals UnixSignalsSequence.swift
[174/1006] Compiling ContainersPreview OutputSpan+Extras.swift
[175/1006] Compiling ContainersPreview TemporaryAllocation.swift
[176/1006] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[177/1006] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[178/1006] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[179/1006] Compiling UnixSignals UnixSignal.swift
[180/1006] Emitting module UnixSignals
[182/1007] Emitting module ContainersPreview
[191/1008] Compiling fiat_p256_adx_sqr.S
[192/1008] Compiling fiat_curve25519_adx_square.S
[193/1008] Compiling fiat_p256_adx_mul.S
[199/1008] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[200/1008] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[201/1008] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[202/1008] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[202/1008] Compiling CNIOBoringSSLShims shims.c
[203/1008] Compiling fiat_curve25519_adx_mul.S
[205/1048] Compiling Logging LogHandler.swift
[206/1048] Compiling Logging Logging.swift
[208/1049] Compiling DequeModule Deque+CustomReflectable.swift
[209/1049] Compiling DequeModule Deque+Descriptions.swift
[210/1049] Compiling DequeModule Deque+Equatable.swift
[211/1049] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[212/1049] Compiling DequeModule _DequeBuffer.swift
[213/1049] Compiling DequeModule _DequeBufferHeader.swift
[214/1049] Compiling DequeModule RigidDeque+Append.swift
[215/1049] Compiling DequeModule RigidDeque+Consumption.swift
[216/1049] Compiling DequeModule RigidDeque+Container.swift
[217/1049] Compiling DequeModule RigidDeque+Descriptions.swift
[218/1049] Compiling DequeModule RigidDeque+Equatable.swift
[219/1049] Compiling DequeModule RigidDeque+Experimental.swift
[220/1049] Compiling DequeModule RigidDeque+Hashable.swift
[221/1049] Compiling DequeModule RigidDeque+Initializers.swift
[222/1049] Compiling DequeModule RigidDeque+Insertions.swift
[223/1049] Compiling DequeModule RigidDeque+Prepend.swift
[224/1049] Compiling DequeModule UniqueDeque+Consumption.swift
[225/1049] Compiling DequeModule UniqueDeque+Container.swift
[226/1049] Compiling DequeModule UniqueDeque+Descriptions.swift
[227/1049] Compiling DequeModule UniqueDeque+Equatable.swift
[228/1049] Compiling DequeModule UniqueDeque+Experimental.swift
[235/1054] Compiling DequeModule UniqueDeque+Hashable.swift
[236/1054] Compiling DequeModule UniqueDeque+Initializers.swift
[237/1054] Compiling DequeModule UniqueDeque+Insertions.swift
[238/1054] Compiling DequeModule UniqueDeque+Prepend.swift
[239/1054] Compiling DequeModule UniqueDeque+Removals.swift
[246/1054] Compiling DequeModule RigidDeque+Removals.swift
[247/1054] Compiling DequeModule RigidDeque+Replacements.swift
[248/1054] Compiling DequeModule RigidDeque+Testing.swift
[249/1054] Compiling DequeModule RigidDeque.swift
[250/1054] Compiling DequeModule UniqueDeque+Append.swift
[250/1054] Compiling KeccakP-1600-opt64.c
[252/1054] Compiling DequeModule Deque+Extras.swift
[253/1054] Compiling DequeModule Deque+Hashable.swift
[254/1054] Compiling DequeModule Deque+Testing.swift
[255/1054] Compiling DequeModule Deque._Storage.swift
[256/1054] Compiling DequeModule Deque._UnsafeHandle.swift
[257/1054] Compiling DequeModule Deque.swift
[258/1054] Compiling DequeModule Deque+Codable.swift
[259/1054] Compiling DequeModule Deque+Collection.swift
[260/1054] Compiling OrderedCollections OrderedSet+Sendable.swift
[261/1054] Compiling OrderedCollections OrderedSet+SubSequence.swift
[262/1054] Compiling OrderedCollections OrderedSet+Testing.swift
[263/1054] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[264/1054] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[265/1054] Compiling OrderedCollections OrderedSet.swift
[266/1054] Compiling OrderedCollections _UnsafeBitset.swift
[267/1054] Emitting module OrderedCollections
[281/1055] Emitting module Atomics
[284/1056] Compiling tls_record.cc
[286/1056] Compiling tls_method.cc
[287/1056] Compiling tls13_server.cc
[288/1056] Compiling tls13_enc.cc
[289/1056] Compiling tls13_client.cc
[291/1056] Emitting module DequeModule
[291/1056] Compiling ssl_versions.cc
[292/1056] Compiling tls13_both.cc
[293/1056] Compiling t1_enc.cc
[294/1056] Compiling ssl_x509.cc
[295/1056] Compiling ssl_transcript.cc
[296/1056] Compiling ssl_stat.cc
[298/1056] Compiling DequeModule UniqueDeque+Replacements.swift
[299/1056] Compiling DequeModule UniqueDeque.swift
[300/1056] Compiling DequeModule _DequeSlot.swift
[301/1056] Compiling DequeModule _UnsafeDequeHandle.swift
[302/1056] Compiling DequeModule _UnsafeDequeSegments.swift
[303/1066] Compiling ssl_session.cc
[305/1072] Compiling _ConnectionPoolModule ConnectionPoolObservabilityDelegate.swift
[306/1072] Compiling _ConnectionPoolModule ConnectionRequest.swift
[307/1072] Compiling _ConnectionPoolModule Max2Sequence.swift
[308/1072] Compiling _ConnectionPoolModule NIOLock.swift
[308/1073] Compiling ssl_cipher.cc
[310/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 }
[311/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 }
[311/1073] Compiling ssl_privkey.cc
[312/1073] Compiling ssl_key_share.cc
[314/1073] Compiling _ConnectionPoolModule TinyFastSequence.swift
[315/1073] Compiling _ConnectionPoolModule ConnectionPool.swift
[316/1073] Compiling _ConnectionPoolModule ConnectionPoolError.swift
[317/1073] Compiling _ConnectionPoolModule ConnectionIDGenerator.swift
[318/1073] Compiling _ConnectionPoolModule ConnectionLease.swift
[318/1073] Compiling ssl_file.cc
[319/1073] Compiling ssl_lib.cc
[320/1073] Compiling ssl_credential.cc
[321/1073] Compiling ssl_cert.cc
[322/1073] Compiling s3_lib.cc
[323/1073] Compiling ssl_buffer.cc
[325/1073] Emitting module _ConnectionPoolModule
[326/1073] Compiling _ConnectionPoolModule NIOLockedValueBox.swift
[327/1073] Compiling _ConnectionPoolModule NoKeepAliveBehavior.swift
[328/1073] Compiling _ConnectionPoolModule PoolStateMachine+ConnectionGroup.swift
[329/1073] Compiling _ConnectionPoolModule PoolStateMachine+ConnectionState.swift
[329/1073] Compiling handshake.cc
[329/1073] Compiling handshake_client.cc
[329/1073] Compiling s3_pkt.cc
[329/1073] Compiling s3_both.cc
[329/1073] Compiling ssl_aead_ctx.cc
[329/1073] Compiling handshake_server.cc
[329/1073] Compiling ssl_asn1.cc
BUILD FAILURE 6.3 wasm