The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CoreJSON, reference master (d51bf4), with Swift 6.2 for Wasm on 17 Jun 2025 17:47:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tomquist/CoreJSON.git
Reference: master
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/tomquist/CoreJSON
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d51bf48 Add conformance to Codable
Cloned https://github.com/tomquist/CoreJSON.git
Revision (git rev-parse @):
d51bf4881192a9325a856d81c2e2fc7a5d25bc2d
SUCCESS checkout https://github.com/tomquist/CoreJSON.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tomquist/CoreJSON.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Building for debugging...
[0/8] Write sources
[7/8] Write swift-version-24593BA9C3E375BF.txt
[9/10] Emitting module CoreJSON
[10/10] Compiling CoreJSON JSON.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/24] Emitting module CoreJSONFoundation
/host/spi-builder-workspace/Sources/CoreJSONFoundation/FromFoundation.swift:25:8: error: no such module 'Foundation'
 23 |  */
 24 |
 25 | import Foundation
    |        `- error: no such module 'Foundation'
 26 | import CoreFoundation
 27 | #if SWIFT_PACKAGE
[13/24] Compiling CoreJSONFoundation FromFoundation.swift
/host/spi-builder-workspace/Sources/CoreJSONFoundation/FromFoundation.swift:25:8: error: no such module 'Foundation'
 23 |  */
 24 |
 25 | import Foundation
    |        `- error: no such module 'Foundation'
 26 | import CoreFoundation
 27 | #if SWIFT_PACKAGE
[14/24] Compiling CoreJSONFoundation ToFoundation.swift
/host/spi-builder-workspace/Sources/CoreJSONFoundation/FromFoundation.swift:25:8: error: no such module 'Foundation'
 23 |  */
 24 |
 25 | import Foundation
    |        `- error: no such module 'Foundation'
 26 | import CoreFoundation
 27 | #if SWIFT_PACKAGE
[15/24] Emitting module CoreJSONConvenience
[16/24] Emitting module CoreJSONCodable
/host/spi-builder-workspace/Sources/CoreJSONCodable/JSONCodable.swift:27:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
25 | import CoreJSON
26 |
27 | extension JSON: Encodable {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
28 |
29 |     public func encode(to encoder: Encoder) throws {
/host/spi-builder-workspace/Sources/CoreJSONCodable/JSONCodable.swift:42:1: warning: extension declares a conformance of imported type 'JSONNumber' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
40 | }
41 |
42 | extension JSONNumber: Encodable {
   | |- warning: extension declares a conformance of imported type 'JSONNumber' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
43 |
44 |     public func encode(to encoder: Encoder) throws {
/host/spi-builder-workspace/Sources/CoreJSONCodable/JSONCodable.swift:54:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
52 | }
53 |
54 | extension JSON: Decodable {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |
56 |     public init(from decoder: Decoder) throws {
/host/spi-builder-workspace/Sources/CoreJSONCodable/JSONCodable.swift:27:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
25 | import CoreJSON
26 |
27 | extension JSON: Encodable {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
28 |
29 |     public func encode(to encoder: Encoder) throws {
/host/spi-builder-workspace/Sources/CoreJSONCodable/JSONCodable.swift:42:1: warning: extension declares a conformance of imported type 'JSONNumber' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
40 | }
41 |
42 | extension JSONNumber: Encodable {
   | |- warning: extension declares a conformance of imported type 'JSONNumber' to imported protocol 'Encodable'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
43 |
44 |     public func encode(to encoder: Encoder) throws {
[17/24] Emitting module CoreJSONLiterals
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:28:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
26 | #endif
27 |
28 | extension JSON: ExpressibleByIntegerLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
29 |     public init(integerLiteral value: Int) {
30 |         self = .number(.int(value))
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:34:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByNilLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
32 | }
33 |
34 | extension JSON: ExpressibleByNilLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByNilLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
35 |     public init(nilLiteral: ()) {
36 |         self = .null
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:40:1: warning: extension declares a conformance of imported type 'JSON' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
38 | }
39 |
40 | extension JSON: ExpressibleByStringLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
41 |     public init(unicodeScalarLiteral value: String) {
42 |         self = .string(value)
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:52:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
50 | }
51 |
52 | extension JSON: ExpressibleByFloatLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
53 |     public init(floatLiteral value: Double) {
54 |         self = .number(.double(value))
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:58:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByBooleanLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
56 | }
57 |
58 | extension JSON: ExpressibleByBooleanLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByBooleanLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
59 |     public init(booleanLiteral value: Bool) {
60 |         self = .bool(value)
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:64:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
62 | }
63 |
64 | extension JSON: ExpressibleByArrayLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
65 |     public init(arrayLiteral elements: JSON...) {
66 |         self = .array(elements)
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:70:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
68 | }
69 |
70 | extension JSON: ExpressibleByDictionaryLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByDictionaryLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
71 |     public init(dictionaryLiteral elements: (String, JSON)...) {
72 |         self = .object(elements.reduce([:]) { (dict, tuple) -> [String: JSON] in
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:28:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
26 | #endif
27 |
28 | extension JSON: ExpressibleByIntegerLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByIntegerLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
29 |     public init(integerLiteral value: Int) {
30 |         self = .number(.int(value))
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:34:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByNilLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
32 | }
33 |
34 | extension JSON: ExpressibleByNilLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByNilLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
35 |     public init(nilLiteral: ()) {
36 |         self = .null
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:40:1: warning: extension declares a conformance of imported type 'JSON' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
38 | }
39 |
40 | extension JSON: ExpressibleByStringLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocols 'ExpressibleByStringLiteral', 'ExpressibleByExtendedGraphemeClusterLiteral', 'ExpressibleByUnicodeScalarLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
41 |     public init(unicodeScalarLiteral value: String) {
42 |         self = .string(value)
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:52:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
50 | }
51 |
52 | extension JSON: ExpressibleByFloatLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByFloatLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
53 |     public init(floatLiteral value: Double) {
54 |         self = .number(.double(value))
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:58:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByBooleanLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
56 | }
57 |
58 | extension JSON: ExpressibleByBooleanLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByBooleanLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
59 |     public init(booleanLiteral value: Bool) {
60 |         self = .bool(value)
/host/spi-builder-workspace/Sources/CoreJSONLiterals/JSONLiterals.swift:64:1: warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
62 | }
63 |
64 | extension JSON: ExpressibleByArrayLiteral {
   | |- warning: extension declares a conformance of imported type 'JSON' to imported protocol 'ExpressibleByArrayLiteral'; this will not behave correctly if the owners of 'CoreJSON' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
65 |     public init(arrayLiteral elements: JSON...) {
66 |         self = .array(elements)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/24] Emitting module CoreJSONPointer
/host/spi-builder-workspace/Sources/CoreJSONPointer/JSONPointer.swift:28:8: error: no such module 'Foundation'
 26 |     import CoreJSON
 27 | #endif
 28 | import Foundation
    |        `- error: no such module 'Foundation'
 29 |
 30 | /// Implements JSONPointer RFC6901
/host/spi-builder-workspace/Sources/CoreJSONPointer/JSONPointer.swift:28:8: error: no such module 'Foundation'
 26 |     import CoreJSON
 27 | #endif
 28 | import Foundation
    |        `- error: no such module 'Foundation'
 29 |
 30 | /// Implements JSONPointer RFC6901
BUILD FAILURE 6.2 wasm