The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ETBCodable, reference main (0b9c20), with Swift 6.2 for Wasm on 6 Jan 2026 12:53:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elf0-fr/ETBCodable.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/elf0-fr/ETBCodable
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0b9c20c Merge pull request #6 from elf0-fr/Release/V1.0.0
Cloned https://github.com/elf0-fr/ETBCodable.git
Revision (git rev-parse @):
0b9c20c7564385723f3279a8ff642c096a7bad77
SUCCESS checkout https://github.com/elf0-fr/ETBCodable.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/elf0-fr/ETBCodable.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/swiftlang/swift-syntax.git
[1/73340] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (4.47s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (7.23s)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 602.0.0
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.65s)
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version-24593BA9C3E375BF.txt
[5/16] Compiling ETBCodableMacros ETBCodableMacro+Main.swift
[6/16] Compiling ETBCodableMacros CodableMacro.swift
[7/16] Compiling ETBCodableMacros ETBCodableMacro+Helper.swift
[8/16] Compiling ETBCodableMacros CodingKeyMacro.swift
[9/16] Emitting module ETBCodableMacros
[10/17] Wrapping AST for ETBCodableMacros for debugging
[11/17] Write Objects.LinkFileList
[12/17] Linking ETBCodableMacros-tool
[14/19] Emitting module ETBCodable
[16/20] Compiling ETBCodable ETBCodable.swift
[16/20] Wrapping AST for ETBCodable for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/22] Emitting module ETBCodableClient
macro expansion @Codable:1:1: error: type 'PublicUser' does not conform to protocol 'Decodable'
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   |                               `- note: cannot automatically synthesize 'Decodable' because 'String' does not conform to 'Decodable'
10 |     @CodingKey("user_age") var age: Int = 0
   |                                `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
11 |     @CodingKey("inner_user") let innerUser: User
12 |     var name: String {
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  | `- error: type 'PublicUser' does not conform to protocol 'Decodable'
   |2 | }
   +--------------------------------------------------------------------
16 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
  | `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
macro expansion @Codable:1:26: error: 'CodingKey' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:1: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   :
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | enum CodingKeys: String, CodingKey {
   |  |                          `- error: 'CodingKey' is unavailable: unavailable in embedded Swift
   |2 |     case userId = "user_id"
   |3 |     case age = "user_age"
   +--------------------------------------------------------------------
16 |
Swift.CodingKey:2:17: note: 'CodingKey' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol CodingKey {
  |                 `- note: 'CodingKey' has been explicitly marked unavailable here
3 | }
macro expansion @Codable:1:17: error: 'Codable' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:5:2: note: expanded code originates here
 1 | import ETBCodable
 2 |
 3 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'User' here
 4 | struct User {
 5 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension User: Codable {
   |  |                 `- error: 'Codable' is unavailable: unavailable in embedded Swift
   |2 | }
   +--------------------------------------------------------------------
 6 |
 7 | @Codable
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
macro expansion @Codable:1:1: error: type 'PublicUser' does not conform to protocol 'Encodable'
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   |                               `- note: cannot automatically synthesize 'Encodable' because 'String' does not conform to 'Encodable'
10 |     @CodingKey("user_age") var age: Int = 0
   |                                `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
11 |     @CodingKey("inner_user") let innerUser: User
12 |     var name: String {
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  | `- error: type 'PublicUser' does not conform to protocol 'Encodable'
   |2 | }
   +--------------------------------------------------------------------
16 |
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
  |      `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
macro expansion @Codable:1:23: error: 'Codable' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   :
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  |                       `- error: 'Codable' is unavailable: unavailable in embedded Swift
   |2 | }
   +--------------------------------------------------------------------
16 |
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
[19/22] Compiling ETBCodableClient main.swift
macro expansion @Codable:1:1: error: type 'PublicUser' does not conform to protocol 'Decodable'
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   |                               `- note: cannot automatically synthesize 'Decodable' because 'String' does not conform to 'Decodable'
10 |     @CodingKey("user_age") var age: Int = 0
   |                                `- note: cannot automatically synthesize 'Decodable' because 'Int' does not conform to 'Decodable'
11 |     @CodingKey("inner_user") let innerUser: User
12 |     var name: String {
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  | `- error: type 'PublicUser' does not conform to protocol 'Decodable'
   |2 | }
   +--------------------------------------------------------------------
16 |
Swift.Decodable.init:2:1: note: protocol requires initializer 'init(from:)' with type 'Decodable'
1 | protocol Decodable {
2 | init(from decoder: any Decoder) throws}
  | `- note: protocol requires initializer 'init(from:)' with type 'Decodable'
3 |
macro expansion @Codable:1:26: error: 'CodingKey' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:1: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   :
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | enum CodingKeys: String, CodingKey {
   |  |                          `- error: 'CodingKey' is unavailable: unavailable in embedded Swift
   |2 |     case userId = "user_id"
   |3 |     case age = "user_age"
   +--------------------------------------------------------------------
16 |
Swift.CodingKey:2:17: note: 'CodingKey' has been explicitly marked unavailable here
1 | @_unavailableInEmbedded
2 | public protocol CodingKey {
  |                 `- note: 'CodingKey' has been explicitly marked unavailable here
3 | }
macro expansion @Codable:1:17: error: 'Codable' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:5:2: note: expanded code originates here
 1 | import ETBCodable
 2 |
 3 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'User' here
 4 | struct User {
 5 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension User: Codable {
   |  |                 `- error: 'Codable' is unavailable: unavailable in embedded Swift
   |2 | }
   +--------------------------------------------------------------------
 6 |
 7 | @Codable
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
macro expansion @Codable:1:1: error: type 'PublicUser' does not conform to protocol 'Encodable'
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   |                               `- note: cannot automatically synthesize 'Encodable' because 'String' does not conform to 'Encodable'
10 |     @CodingKey("user_age") var age: Int = 0
   |                                `- note: cannot automatically synthesize 'Encodable' because 'Int' does not conform to 'Encodable'
11 |     @CodingKey("inner_user") let innerUser: User
12 |     var name: String {
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  | `- error: type 'PublicUser' does not conform to protocol 'Encodable'
   |2 | }
   +--------------------------------------------------------------------
16 |
Swift.Encodable.encode:2:6: note: protocol requires function 'encode(to:)' with type 'Encodable'
1 | protocol Encodable {
2 | func encode(to encoder: any Encoder) throws}
  |      `- note: protocol requires function 'encode(to:)' with type 'Encodable'
3 |
macro expansion @Codable:1:23: error: 'Codable' is unavailable: unavailable in embedded Swift
`- /host/spi-builder-workspace/Sources/ETBCodableClient/main.swift:15:2: note: expanded code originates here
 5 | }
 6 |
 7 | @Codable
   | `- note: in expansion of macro 'Codable' on struct 'PublicUser' here
 8 | struct PublicUser {
 9 |     @CodingKey("user_id") let userId: String
   :
13 |         userId
14 |     }
15 | }
   +--- macro expansion @Codable ---------------------------------------
   |1 | extension PublicUser: Codable {
   |  |                       `- error: 'Codable' is unavailable: unavailable in embedded Swift
   |2 | }
   +--------------------------------------------------------------------
16 |
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
BUILD FAILURE 6.2 wasm