Build Information
Failed to build SwiftNumber, reference 1.0.0 (89e127), with Swift 6.2 for Wasm on 7 Nov 2025 22:29:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/legend-hq/SwiftNumber.git
Reference: 1.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/legend-hq/SwiftNumber
* tag 1.0.0 -> FETCH_HEAD
HEAD is now at 89e1272 Support WASI
Cloned https://github.com/legend-hq/SwiftNumber.git
Revision (git rev-parse @):
89e127293ab1a0a7b276bed91b18ee60b651e7e9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/legend-hq/SwiftNumber.git at 1.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/legend-hq/SwiftNumber.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:f6b6b9bdb5d5605d727da337418fc455cd8a0394d3a815b70631008c48829755
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwiftNumber
/host/spi-builder-workspace/Sources/Codable.swift:106:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
104 |
105 | extension SNumber: Codable {
106 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
107 | if let str = try? decoder.singleValueContainer().decode(String.self) {
108 | if let value = SNumber(str, radix: 10) {
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/Sources/Codable.swift:120:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
118 | }
119 |
120 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
121 | var container = encoder.singleValueContainer()
122 | try container.encode(self.description)
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/Sources/Codable.swift:105:20: error: 'Codable' is unavailable: unavailable in embedded Swift
103 | }
104 |
105 | extension SNumber: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
106 | public init(from decoder: Decoder) throws {
107 | if let str = try? decoder.singleValueContainer().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/Sources/Codable.swift:127:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
125 |
126 | extension Number: Codable {
127 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
128 | let value = try SNumber(from: decoder)
129 | 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/Sources/Codable.swift:136:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
134 | }
135 |
136 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
137 | try SNumber(sign: .plus, magnitude: self).encode(to: encoder)
138 | }
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/Sources/Codable.swift:126:19: error: 'Codable' is unavailable: unavailable in embedded Swift
124 | }
125 |
126 | extension Number: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
127 | public init(from decoder: Decoder) throws {
128 | let value = try SNumber(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/Sources/Codable.swift:107:58: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
105 | extension SNumber: Codable {
106 | public init(from decoder: Decoder) throws {
107 | if let str = try? decoder.singleValueContainer().decode(String.self) {
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
108 | if let value = SNumber(str, radix: 10) {
109 | self = value
/host/spi-builder-workspace/Sources/Codable.swift:111:23: error: 'DecodingError' is unavailable: unavailable in embedded Swift
109 | self = value
110 | } else {
111 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
112 | debugDescription: "Invalid number"))
113 | }
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/Sources/Codable.swift:115:60: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
113 | }
114 | } else {
115 | let value = try decoder.singleValueContainer().decode(Int64.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
116 | self = SNumber(value)
117 | }
/host/spi-builder-workspace/Sources/Codable.swift:122:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
120 | public func encode(to encoder: Encoder) throws {
121 | var container = encoder.singleValueContainer()
122 | try container.encode(self.description)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
123 | }
124 | }
/host/spi-builder-workspace/Sources/Codable.swift:130:19: error: 'DecodingError' is unavailable: unavailable in embedded Swift
128 | let value = try SNumber(from: decoder)
129 | guard value.sign == .plus else {
130 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
131 | debugDescription: "Number cannot hold a negative value"))
132 | }
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/Sources/String Conversion.swift:187:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
185 | /// Initialize a new Number from a decimal number represented by a string literal of arbitrary length.
186 | /// The string must contain only decimal digits, or be in scientific notation format (e.g., "5.1e6").
187 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
188 | // Check for scientific notation
189 | if let eIndex = value.firstIndex(of: "e") {
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/Sources/String Conversion.swift:252:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
250 | /// Initialize a new SNumber from a decimal number represented by a string literal of arbitrary length.
251 | /// The string must contain only decimal digits (optionally with a sign), or be in scientific notation format (e.g., "-1.2e18").
252 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
253 | var workingValue = value
254 | var isNegative = false
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/Sources/String Conversion.swift:347:19: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
345 | }
346 |
347 | extension Number: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
348 |
349 | /// Return the playground quick look representation of this integer.
/host/spi-builder-workspace/Sources/String Conversion.swift:355:20: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
353 | }
354 |
355 | extension SNumber: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
356 |
357 | /// Return the playground quick look representation of this integer.
[4/4] Compiling SwiftNumber Addition.swift
/host/spi-builder-workspace/Sources/Codable.swift:106:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
104 |
105 | extension SNumber: Codable {
106 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
107 | if let str = try? decoder.singleValueContainer().decode(String.self) {
108 | if let value = SNumber(str, radix: 10) {
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/Sources/Codable.swift:120:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
118 | }
119 |
120 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
121 | var container = encoder.singleValueContainer()
122 | try container.encode(self.description)
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/Sources/Codable.swift:105:20: error: 'Codable' is unavailable: unavailable in embedded Swift
103 | }
104 |
105 | extension SNumber: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
106 | public init(from decoder: Decoder) throws {
107 | if let str = try? decoder.singleValueContainer().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/Sources/Codable.swift:127:31: error: 'Decoder' is unavailable: unavailable in embedded Swift
125 |
126 | extension Number: Codable {
127 | public init(from decoder: Decoder) throws {
| `- error: 'Decoder' is unavailable: unavailable in embedded Swift
128 | let value = try SNumber(from: decoder)
129 | 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/Sources/Codable.swift:136:36: error: 'Encoder' is unavailable: unavailable in embedded Swift
134 | }
135 |
136 | public func encode(to encoder: Encoder) throws {
| `- error: 'Encoder' is unavailable: unavailable in embedded Swift
137 | try SNumber(sign: .plus, magnitude: self).encode(to: encoder)
138 | }
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/Sources/Codable.swift:126:19: error: 'Codable' is unavailable: unavailable in embedded Swift
124 | }
125 |
126 | extension Number: Codable {
| `- error: 'Codable' is unavailable: unavailable in embedded Swift
127 | public init(from decoder: Decoder) throws {
128 | let value = try SNumber(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/Sources/Codable.swift:107:58: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
105 | extension SNumber: Codable {
106 | public init(from decoder: Decoder) throws {
107 | if let str = try? decoder.singleValueContainer().decode(String.self) {
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
108 | if let value = SNumber(str, radix: 10) {
109 | self = value
/host/spi-builder-workspace/Sources/Codable.swift:111:23: error: 'DecodingError' is unavailable: unavailable in embedded Swift
109 | self = value
110 | } else {
111 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
112 | debugDescription: "Invalid number"))
113 | }
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/Sources/Codable.swift:115:60: error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
113 | }
114 | } else {
115 | let value = try decoder.singleValueContainer().decode(Int64.self)
| `- error: value of type 'any SingleValueDecodingContainer' has no member 'decode'
116 | self = SNumber(value)
117 | }
/host/spi-builder-workspace/Sources/Codable.swift:122:23: error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
120 | public func encode(to encoder: Encoder) throws {
121 | var container = encoder.singleValueContainer()
122 | try container.encode(self.description)
| `- error: value of type 'any SingleValueEncodingContainer' has no member 'encode'
123 | }
124 | }
/host/spi-builder-workspace/Sources/Codable.swift:130:19: error: 'DecodingError' is unavailable: unavailable in embedded Swift
128 | let value = try SNumber(from: decoder)
129 | guard value.sign == .plus else {
130 | throw DecodingError.dataCorrupted(.init(codingPath: decoder.codingPath,
| `- error: 'DecodingError' is unavailable: unavailable in embedded Swift
131 | debugDescription: "Number cannot hold a negative value"))
132 | }
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/Sources/String Conversion.swift:187:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
185 | /// Initialize a new Number from a decimal number represented by a string literal of arbitrary length.
186 | /// The string must contain only decimal digits, or be in scientific notation format (e.g., "5.1e6").
187 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
188 | // Check for scientific notation
189 | if let eIndex = value.firstIndex(of: "e") {
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/Sources/String Conversion.swift:252:38: error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
250 | /// Initialize a new SNumber from a decimal number represented by a string literal of arbitrary length.
251 | /// The string must contain only decimal digits (optionally with a sign), or be in scientific notation format (e.g., "-1.2e18").
252 | public init(stringLiteral value: StringLiteralType) {
| `- error: 'StringLiteralType' is unavailable: unavailable in embedded Swift
253 | var workingValue = value
254 | var isNegative = false
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/Sources/String Conversion.swift:347:19: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
345 | }
346 |
347 | extension Number: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
348 |
349 | /// Return the playground quick look representation of this integer.
/host/spi-builder-workspace/Sources/String Conversion.swift:355:20: error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
353 | }
354 |
355 | extension SNumber: CustomPlaygroundDisplayConvertible {
| `- error: cannot find type 'CustomPlaygroundDisplayConvertible' in scope
356 |
357 | /// Return the playground quick look representation of this integer.
BUILD FAILURE 6.2 wasm