Build Information
Failed to build fx-sdk-swift, reference main (a15a19), with Swift 6.2 for Wasm on 30 Dec 2025 06:09:37 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/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/chrisstampar/fx-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/chrisstampar/fx-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a15a19e Remove SWIFT_IOS_PLAN.md reference from README
Cloned https://github.com/chrisstampar/fx-swift.git
Revision (git rev-parse @):
a15a19e7f5f84cf778f28b908e4b7dcd51b05cbb
SUCCESS checkout https://github.com/chrisstampar/fx-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/chrisstampar/fx-swift.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/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:ea378e7d7954b9ce813c0ebc8f6bc113436e2b3d5aa4fd45225da8bf07e6be73
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
Fetching https://github.com/Boilertalk/Web3.swift.git
[1/4826] Fetching bigint
[822/9213] Fetching bigint, keychainaccess
[3770/16868] Fetching bigint, keychainaccess, web3.swift
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (0.74s)
Fetched https://github.com/attaswift/BigInt.git from cache (0.74s)
[5895/7655] Fetching web3.swift
Fetched https://github.com/Boilertalk/Web3.swift.git from cache (1.08s)
Computing version for https://github.com/kishikawakatsumi/KeychainAccess.git
Computed https://github.com/kishikawakatsumi/KeychainAccess.git at 4.2.2 (3.81s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.7.0 (0.37s)
Computing version for https://github.com/Boilertalk/Web3.swift.git
Computed https://github.com/Boilertalk/Web3.swift.git at 0.8.8 (0.46s)
Fetching https://github.com/Boilertalk/secp256k1.swift.git
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
Fetching https://github.com/vapor/websocket-kit
Fetching https://github.com/mxcl/PromiseKit.git
Fetching https://github.com/apple/swift-collections.git
[1/780] Fetching secp256k1.swift
[157/3412] Fetching secp256k1.swift, websocket-kit
[3413/20622] Fetching secp256k1.swift, websocket-kit, promisekit
[4102/33936] Fetching secp256k1.swift, websocket-kit, promisekit, cryptoswift
Fetched https://github.com/Boilertalk/secp256k1.swift.git from cache (0.35s)
Fetched https://github.com/vapor/websocket-kit from cache (0.36s)
[4275/48931] Fetching promisekit, cryptoswift, swift-collections
Fetched https://github.com/mxcl/PromiseKit.git from cache (2.36s)
Fetched https://github.com/apple/swift-collections.git from cache (2.57s)
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (2.84s)
Computing version for https://github.com/Boilertalk/secp256k1.swift.git
Computed https://github.com/Boilertalk/secp256k1.swift.git at 0.1.7 (3.38s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (0.57s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.9.0 (0.61s)
Computing version for https://github.com/vapor/websocket-kit
Computed https://github.com/vapor/websocket-kit at 2.16.1 (0.60s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-atomics.git
[1/2809] Fetching swift-nio-transport-services
[198/4629] Fetching swift-nio-transport-services, swift-atomics
[4630/19925] Fetching swift-nio-transport-services, swift-atomics, swift-nio-ssl
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/apple/swift-atomics.git from cache (0.90s)
[9846/18105] Fetching swift-nio-transport-services, swift-nio-ssl
[13824/24469] Fetching swift-nio-transport-services, swift-nio-ssl, swift-nio-extras
[21105/105421] Fetching swift-nio-transport-services, swift-nio-ssl, swift-nio-extras, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.54s)
[15506/99057] Fetching swift-nio-transport-services, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (2.75s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.78s)
[36429/80952] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (9.50s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (10.87s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.30s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.51s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.92.0 (1.02s)
Fetching https://github.com/apple/swift-system.git
[1/5237] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (1.50s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.44s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.31.2 (0.50s)
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-algorithms.git
[1/1692] Fetching swift-asn1
[1406/8772] Fetching swift-asn1, swift-certificates
[1906/11340] Fetching swift-asn1, swift-certificates, swift-service-lifecycle
[4419/17200] Fetching swift-asn1, swift-certificates, swift-service-lifecycle, swift-async-algorithms
[4801/22959] Fetching swift-asn1, swift-certificates, swift-service-lifecycle, swift-async-algorithms, swift-log
[5549/29011] Fetching swift-asn1, swift-certificates, swift-service-lifecycle, swift-async-algorithms, swift-log, swift-algorithms
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.80s)
Fetching https://github.com/apple/swift-http-types.git
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.82s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-algorithms.git from cache (0.83s)
Fetching https://github.com/apple/swift-nio-http2.git
[1/951] Fetching swift-http-types
Fetched https://github.com/apple/swift-log.git from cache (1.03s)
[952/2155] Fetching swift-http-types, swift-http-structured-headers
Fetched https://github.com/apple/swift-asn1.git from cache (1.05s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.05s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.31s)
[1/11724] Fetching swift-nio-http2
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.31s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.36s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.66s)
Fetching https://github.com/apple/swift-numerics.git
[1/6384] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.46s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.9.1 (1.42s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.1 (0.61s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.8.0 (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (2.48s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (0.44s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.42s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.6.0 (1.18s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.17.0 (1.15s)
Fetching https://github.com/apple/swift-crypto.git
[1/17460] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.43s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.2.0 (3.61s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.39.0 (0.41s)
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/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
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.9.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.17.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.36.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.39.0
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.9.0
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.26.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.5.1
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.6.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.7.0
Creating working copy for https://github.com/vapor/websocket-kit
Working copy of https://github.com/vapor/websocket-kit resolved at 2.16.1
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess.git
Working copy of https://github.com/kishikawakatsumi/KeychainAccess.git resolved at 4.2.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.92.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.1
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
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.3
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.2.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.31.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.8.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.3.0
Creating working copy for https://github.com/Boilertalk/Web3.swift.git
Working copy of https://github.com/Boilertalk/Web3.swift.git resolved at 0.8.8
Creating working copy for https://github.com/Boilertalk/secp256k1.swift.git
Working copy of https://github.com/Boilertalk/secp256k1.swift.git resolved at 0.1.7
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
warning: 'web3.swift': found 22 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/EthereumContract.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/SolidityType.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/PromiseKit/Promisable.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/ABIConvertible.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/SolidityType+Codable.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/Eth+Contract.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/SolidityFunction.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/ABIDecoder.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/SolidityEvent.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/SolidityWrappedValue.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/ERC165.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/SolidityTuple.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/ABIEncoder.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/ABIObject.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/Eth+ABI.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/SolidityInvocation.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/PromiseKit/Exports+PromiseKit.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/PromiseKit/ContractPromiseExtensions.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/PromiseKit/Web3+PromiseKit.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/ERC20.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/ABI/ABI.swift
/host/spi-builder-workspace/.build/checkouts/Web3.swift/Sources/ContractABI/Contract/ERC721.swift
Building for debugging...
[0/450] Write sources
[10/450] Copying PrivacyInfo.xcprivacy
[29/450] Write sources
[30/450] Compiling CNIOWindows shim.c
[31/450] Compiling CNIOWindows WSAStartup.c
[32/450] Compiling CNIOWASI CNIOWASI.c
[33/450] Compiling lax_der_parsing.c
[34/450] Compiling lax_der_privatekey_parsing.c
[35/450] Compiling _AtomicsShims.c
[36/450] Compiling CNIOOpenBSD shim.c
[36/450] Compiling CNIOPosix event_loop_id.c
[38/450] Write swift-version-24593BA9C3E375BF.txt
[39/450] Compiling CNIOLinux shim.c
[40/450] Compiling CNIOLinux liburing_shims.c
[41/450] Compiling CNIOSHA1 c_nio_sha1.c
[42/450] Compiling CNIODarwin shim.c
[43/450] Compiling CNIOLLHTTP c_nio_http.c
[44/458] Compiling CNIOLLHTTP c_nio_api.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[46/462] Emitting module _NIODataStructures
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:208:21: error: cannot find 'log2' in scope
206 |
207 | func height(index: Int) -> Int {
208 | Int(log2(Double(index + 1)))
| `- error: cannot find 'log2' in scope
209 | }
210 | let myHeight = height(index: index)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/462] Emitting module BigInt
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:104:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
102 |
103 | extension BigInt: Codable {
104 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:143:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
141 | }
142 |
143 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
144 | var container = encoder.unkeyedContainer()
145 | try container.encode(sign == .plus ? "+" : "-")
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:103:19: error: 'Codable' is unavailable: unavailable in embedded Swift
101 | }
102 |
103 | extension BigInt: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
104 | public init(from decoder: Decoder) throws {
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:157:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
155 |
156 | extension BigUInt: Codable {
157 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
158 | let value = try BigInt(from: decoder)
159 | guard value.sign == .plus else {
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:166:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
164 | }
165 |
166 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
167 | try BigInt(sign: .plus, magnitude: self).encode(to: encoder)
168 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:156:20: error: 'Codable' is unavailable: unavailable in embedded Swift
154 | }
155 |
156 | extension BigUInt: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
157 | public init(from decoder: Decoder) throws {
158 | let value = try BigInt(from: decoder)
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:105:98: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
103 | extension BigInt: Codable {
104 | public init(from decoder: Decoder) throws {
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
107 | guard let bigUInt = BigUInt(stringValue.dropFirst(2), radix: 16) else {
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:108:41: error: type 'DecodingError' has no member 'dataCorruptedError'
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
107 | guard let bigUInt = BigUInt(stringValue.dropFirst(2), radix: 16) else {
108 | throw DecodingError.dataCorruptedError(in: container, debugDescription: "Invalid hexadecimal BigInt string")
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
109 | }
110 | self.init(sign: .plus, magnitude: bigUInt)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:113:41: error: type 'DecodingError' has no member 'dataCorruptedError'
111 | } else {
112 | guard let bigInt = BigInt(stringValue) else {
113 | throw DecodingError.dataCorruptedError(in: container, debugDescription: "Invalid decimal BigInt string")
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
114 | }
115 | self = bigInt
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:128:95: error: value of type 'any UnkeyedDecodingContainer' has no member 'codingPath'
126 | sign = .minus
127 | default:
128 | throw DecodingError.dataCorrupted(.init(codingPath: container.codingPath,
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'codingPath'
129 | debugDescription: "Invalid big integer sign"))
130 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:133:53: error: value of type 'any UnkeyedDecodingContainer' has no member 'count'
131 |
132 | // Decode magnitude
133 | let words = try [UInt](count: container.count?.advanced(by: -1)) { () -> UInt64? in
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'count'
134 | guard !container.isAtEnd else { return nil }
135 | return try container.decode(UInt64.self)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:134:34: error: value of type 'any UnkeyedDecodingContainer' has no member 'isAtEnd'
132 | // Decode magnitude
133 | let words = try [UInt](count: container.count?.advanced(by: -1)) { () -> UInt64? in
134 | guard !container.isAtEnd else { return nil }
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'isAtEnd'
135 | return try container.decode(UInt64.self)
136 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:151:33: error: extraneous argument label 'contentsOf:' in call
149 | }
150 | else {
151 | try container.encode(contentsOf: units)
| `- error: extraneous argument label 'contentsOf:' in call
152 | }
153 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:160:19: error: 'DecodingError' is unavailable: unavailable in embedded Swift
158 | let value = try BigInt(from: decoder)
159 | guard value.sign == .plus else {
160 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
161 | debugDescription: "BigUInt cannot hold a negative value"))
162 | }
Swift.DecodingError:2:13: note: 'DecodingError' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public enum DecodingError : Error {
| `- note: 'DecodingError' has been explicitly marked unavailable here
3 | public struct Context : Sendable {
4 | public init(codingPath: [any CodingKey], debugDescription: String, underlyingError: (any Error)? = nil)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:185:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
183 | /// Initialize a new big integer from a decimal number represented by a string literal of arbitrary length.
184 | /// The string must contain only decimal digits.
185 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
186 | self = BigUInt(value, radix: 10)!
187 | }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
| `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:205:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
203 | /// Initialize a new big integer from a decimal number represented by a string literal of arbitrary length.
204 | /// The string must contain only decimal digits.
205 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
206 | self = BigInt(value, radix: 10)!
207 | }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
| `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:240:20: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
238 | }
239 |
240 | extension BigUInt: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
241 |
242 | /// Return the playground quick look representation of this integer.
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:248:19: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
246 | }
247 |
248 | extension BigInt: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
249 |
250 | /// Return the playground quick look representation of this integer.
[47/462] Compiling secp256k1.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/464] Emitting module _NIOBase64
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIOBase64/Base64.swift:112:39: error: cannot use a value of protocol type 'any Error' in embedded Swift
27 | @inlinable
28 | public func base64Decoded() throws -> [UInt8] {
29 | try self._base64Decoded()
| `- note: called from here
30 | }
31 |
:
38 | @inlinable
39 | public func _base64Decoded() throws -> [UInt8] {
40 | try Base64.decode(string: self)
| `- note: called from here
41 | }
42 | }
:
110 | if bytes[i + 2] != Base64.encodePaddingCharacter {
111 | guard let byte2Index = Base64.encodingTable.firstIndex(of: bytes[i + 2]) else {
112 | throw Base64Error.invalidCharacter
| `- error: cannot use a value of protocol type 'any Error' in embedded Swift
113 | }
114 |
[50/464] Emitting module secp256k1
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/465] Emitting module KeychainAccess
/host/spi-builder-workspace/.build/checkouts/KeychainAccess/Lib/KeychainAccess/Keychain.swift:26:8: error: no such module 'Foundation'
24 | // THE SOFTWARE.
25 |
26 | import Foundation
| `- error: no such module 'Foundation'
27 | import Security
28 | #if os(iOS) || os(OSX)
[52/465] Compiling CNIOLLHTTP c_nio_llhttp.c
[54/465] Compiling _NIOBase64 Base64.swift
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIOBase64/Base64.swift:112:39: error: cannot use a value of protocol type 'any Error' in embedded Swift
27 | @inlinable
28 | public func base64Decoded() throws -> [UInt8] {
29 | try self._base64Decoded()
| `- note: called from here
30 | }
31 |
:
38 | @inlinable
39 | public func _base64Decoded() throws -> [UInt8] {
40 | try Base64.decode(string: self)
| `- note: called from here
41 | }
42 | }
:
110 | if bytes[i + 2] != Base64.encodePaddingCharacter {
111 | guard let byte2Index = Base64.encodingTable.firstIndex(of: bytes[i + 2]) else {
112 | throw Base64Error.invalidCharacter
| `- error: cannot use a value of protocol type 'any Error' in embedded Swift
113 | }
114 |
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:104:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
102 |
103 | extension BigInt: Codable {
104 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:143:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
141 | }
142 |
143 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
144 | var container = encoder.unkeyedContainer()
145 | try container.encode(sign == .plus ? "+" : "-")
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:103:19: error: 'Codable' is unavailable: unavailable in embedded Swift
101 | }
102 |
103 | extension BigInt: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
104 | public init(from decoder: Decoder) throws {
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:157:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
155 |
156 | extension BigUInt: Codable {
157 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
158 | let value = try BigInt(from: decoder)
159 | guard value.sign == .plus else {
Swift.Decoder:2:17: note: 'Decoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Decoder {
| `- note: 'Decoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) throws -> KeyedDecodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:166:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
164 | }
165 |
166 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
167 | try BigInt(sign: .plus, magnitude: self).encode(to: encoder)
168 | }
Swift.Encoder:2:17: note: 'Encoder' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol Encoder {
| `- note: 'Encoder' has been explicitly marked unavailable here
3 | var codingPath: [any CodingKey] { get }
4 | func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:156:20: error: 'Codable' is unavailable: unavailable in embedded Swift
154 | }
155 |
156 | extension BigUInt: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
157 | public init(from decoder: Decoder) throws {
158 | let value = try BigInt(from: decoder)
Swift.Codable:2:18: note: 'Codable' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias Codable = Decodable & Encodable
| `- note: 'Codable' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:105:98: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
103 | extension BigInt: Codable {
104 | public init(from decoder: Decoder) throws {
105 | if let container = try? decoder.singleValueContainer(), let stringValue = try? container.decode(String.self) {
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
107 | guard let bigUInt = BigUInt(stringValue.dropFirst(2), radix: 16) else {
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:108:41: error: type 'DecodingError' has no member 'dataCorruptedError'
106 | if stringValue.hasPrefix("0x") || stringValue.hasPrefix("0X") {
107 | guard let bigUInt = BigUInt(stringValue.dropFirst(2), radix: 16) else {
108 | throw DecodingError.dataCorruptedError(in: container, debugDescription: "Invalid hexadecimal BigInt string")
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
109 | }
110 | self.init(sign: .plus, magnitude: bigUInt)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:113:41: error: type 'DecodingError' has no member 'dataCorruptedError'
111 | } else {
112 | guard let bigInt = BigInt(stringValue) else {
113 | throw DecodingError.dataCorruptedError(in: container, debugDescription: "Invalid decimal BigInt string")
| `- error: type 'DecodingError' has no member 'dataCorruptedError'
114 | }
115 | self = bigInt
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:128:95: error: value of type 'any UnkeyedDecodingContainer' has no member 'codingPath'
126 | sign = .minus
127 | default:
128 | throw DecodingError.dataCorrupted(.init(codingPath: container.codingPath,
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'codingPath'
129 | debugDescription: "Invalid big integer sign"))
130 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:133:53: error: value of type 'any UnkeyedDecodingContainer' has no member 'count'
131 |
132 | // Decode magnitude
133 | let words = try [UInt](count: container.count?.advanced(by: -1)) { () -> UInt64? in
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'count'
134 | guard !container.isAtEnd else { return nil }
135 | return try container.decode(UInt64.self)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:134:34: error: value of type 'any UnkeyedDecodingContainer' has no member 'isAtEnd'
132 | // Decode magnitude
133 | let words = try [UInt](count: container.count?.advanced(by: -1)) { () -> UInt64? in
134 | guard !container.isAtEnd else { return nil }
| `- error: value of type 'any UnkeyedDecodingContainer' has no member 'isAtEnd'
135 | return try container.decode(UInt64.self)
136 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:151:33: error: extraneous argument label 'contentsOf:' in call
149 | }
150 | else {
151 | try container.encode(contentsOf: units)
| `- error: extraneous argument label 'contentsOf:' in call
152 | }
153 | }
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/Codable.swift:160:19: error: 'DecodingError' is unavailable: unavailable in embedded Swift
158 | let value = try BigInt(from: decoder)
159 | guard value.sign == .plus else {
160 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
161 | debugDescription: "BigUInt cannot hold a negative value"))
162 | }
Swift.DecodingError:2:13: note: 'DecodingError' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public enum DecodingError : Error {
| `- note: 'DecodingError' has been explicitly marked unavailable here
3 | public struct Context : Sendable {
4 | public init(codingPath: [any CodingKey], debugDescription: String, underlyingError: (any Error)? = nil)
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:185:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
183 | /// Initialize a new big integer from a decimal number represented by a string literal of arbitrary length.
184 | /// The string must contain only decimal digits.
185 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
186 | self = BigUInt(value, radix: 10)!
187 | }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
| `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:205:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
203 | /// Initialize a new big integer from a decimal number represented by a string literal of arbitrary length.
204 | /// The string must contain only decimal digits.
205 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
206 | self = BigInt(value, radix: 10)!
207 | }
Swift.StringLiteralType:2:18: note: 'StringLiteralType' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public typealias StringLiteralType = String
| `- note: 'StringLiteralType' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/BigInt/Sources/String Conversion.swift:240:20: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
238 | }
239 |
240 | extension BigUInt: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
241 |
242 | /// Return the playground quick look representation of this integer.
[54/465] Compiling CNIOBoringSSLShims shims.c
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:27:8: error: The Heap module was unable to identify your C library.
25 | @preconcurrency import Bionic
26 | #else
27 | #error("The Heap module was unable to identify your C library.")
| `- error: The Heap module was unable to identify your C library.
28 | #endif
29 |
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/_NIODataStructures/Heap.swift:170:47: error: 'init(describing:)' is unavailable: unavailable in embedded Swift
168 | return "<empty heap>"
169 | }
170 | let descriptions = self.storage.map { String(describing: $0) }
| `- error: 'init(describing:)' is unavailable: unavailable in embedded Swift
171 | let maxLen: Int = descriptions.map { $0.count }.max()! // storage checked non-empty above
172 | let paddedDescs = descriptions.map { (desc: String) -> String in
Swift.String.init:2:8: note: 'init(describing:)' has been explicitly marked unavailable here
1 | struct String {
2 | public init<Subject>(describing instance: Subject)}
| `- note: 'init(describing:)' has been explicitly marked unavailable here
3 |
BUILD FAILURE 6.2 wasm