The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HealthDataGenerator, reference main (359ef0), with Swift 6.2 for Wasm on 7 Apr 2026 17:54:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aminbenarieb/healthkit-data-generator.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/aminbenarieb/healthkit-data-generator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 359ef02 Rename HealthKitDataGenerator to HealthDataGenerator everywhere
Cloned https://github.com/aminbenarieb/healthkit-data-generator.git
Revision (git rev-parse @):
359ef0205f3a66bc8c6fe128e6be1fe29a59e60c
SUCCESS checkout https://github.com/aminbenarieb/healthkit-data-generator.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/aminbenarieb/healthkit-data-generator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/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
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package.swift:6:15: warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
 4 | import PackageDescription
 5 |
 6 | let package = Package(
   |               |- warning: 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageVersions:cLanguageStandard:cxxLanguageStandard:)' is deprecated: replaced by 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' [#DeprecatedDeclaration]
   |               `- note: use 'init(name:defaultLocalization:platforms:pkgConfig:providers:products:dependencies:targets:swiftLanguageModes:cLanguageStandard:cxxLanguageStandard:)' instead
 7 |     name: "HealthDataGenerator",
 8 |     platforms: [
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
Fetching https://github.com/apple/swift-log.git
[1/6349] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (3.18s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (5.39s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
 46 | #endif
 47 | #else
 48 | #error("The concurrency lock module was unable to identify your C library.")
    |        `- error: The concurrency lock module was unable to identify your C library.
 49 | #endif
 50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
  26 | import WASILibc
  27 | #else
  28 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  29 | #endif
  30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1510:16: error: Unsupported runtime
1508 |         )
1509 |         #else
1510 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1511 |         #endif
1512 |     }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1582:16: error: Unsupported runtime
1580 |         )
1581 |         #else
1582 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1583 |         #endif
1584 |     }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
 26 | import WASILibc
 27 | #else
 28 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 29 | #endif
 30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 |         UnsafeMutablePointer.allocate(capacity: 1)
193 |     #else
194 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
195 |         UnsafeMutablePointer.allocate(capacity: 1)
196 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:990:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 988 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 989 |     /// `.critical` being the most severe.
 990 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 991 |         /// Appropriate for messages that contain information normally of use only when
 992 |         /// tracing the execution of a program.
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/swift-log/Sources/Logging/Logging.swift:1442:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1440 |     }
1441 |
1442 |     internal static let stderr: StdioOutputStream = {
     |                                                     `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1443 |         #if canImport(Darwin)
1444 |         return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1514:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1512 |     }()
1513 |
1514 |     internal static let stdout: StdioOutputStream = {
     |                                                     `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1515 |         #if canImport(Darwin)
1516 |         return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:25: error: cannot find 'time' in scope
1768 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 |         #else
1770 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1771 |         guard let localTime = localtime(&timestamp) else {
1772 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:30: error: 'nil' requires a contextual type
1768 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 |         #else
1770 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1771 |         guard let localTime = localtime(&timestamp) else {
1772 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1771:31: error: cannot find 'localtime' in scope
1769 |         #else
1770 |         var timestamp = time(nil)
1771 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1772 |             return "<unknown>"
1773 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1774:9: error: cannot find 'strftime' in scope
1772 |             return "<unknown>"
1773 |         }
1774 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1775 |         #endif
1776 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1895:54: error: 'description' is unavailable: unavailable in embedded Swift
1893 |         switch self {
1894 |         case .dictionary(let dict):
1895 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1896 |         case .array(let list):
1897 |             return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1897:48: error: 'description' is unavailable: unavailable in embedded Swift
1895 |             return dict.mapValues { $0.description }.description
1896 |         case .array(let list):
1897 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1898 |         case .string(let str):
1899 |             return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
[5/5] Compiling Logging Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:48:8: error: The concurrency lock module was unable to identify your C library.
 46 | #endif
 47 | #else
 48 | #error("The concurrency lock module was unable to identify your C library.")
    |        `- error: The concurrency lock module was unable to identify your C library.
 49 | #endif
 50 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:28:8: error: Unsupported runtime
  26 | import WASILibc
  27 | #else
  28 | #error("Unsupported runtime")
     |        `- error: Unsupported runtime
  29 | #endif
  30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1510:16: error: Unsupported runtime
1508 |         )
1509 |         #else
1510 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1511 |         #endif
1512 |     }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1582:16: error: Unsupported runtime
1580 |         )
1581 |         #else
1582 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1583 |         #endif
1584 |     }()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/MetadataProvider.swift:28:8: error: Unsupported runtime
 26 | import WASILibc
 27 | #else
 28 | #error("Unsupported runtime")
    |        `- error: Unsupported runtime
 29 | #endif
 30 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Locks.swift:194:50: error: cannot find type 'pthread_rwlock_t' in scope
192 |         UnsafeMutablePointer.allocate(capacity: 1)
193 |     #else
194 |     fileprivate let rwlock: UnsafeMutablePointer<pthread_rwlock_t> =
    |                                                  `- error: cannot find type 'pthread_rwlock_t' in scope
195 |         UnsafeMutablePointer.allocate(capacity: 1)
196 |     #endif
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:990:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 988 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 989 |     /// `.critical` being the most severe.
 990 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 991 |         /// Appropriate for messages that contain information normally of use only when
 992 |         /// tracing the execution of a program.
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/swift-log/Sources/Logging/Logging.swift:1442:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1440 |     }
1441 |
1442 |     internal static let stderr: StdioOutputStream = {
     |                                                     `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1443 |         #if canImport(Darwin)
1444 |         return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1514:53: error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1512 |     }()
1513 |
1514 |     internal static let stdout: StdioOutputStream = {
     |                                                     `- error: cannot convert value of type '()' to closure result type 'StdioOutputStream'
1515 |         #if canImport(Darwin)
1516 |         return StdioOutputStream(
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:25: error: cannot find 'time' in scope
1768 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 |         #else
1770 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1771 |         guard let localTime = localtime(&timestamp) else {
1772 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1770:30: error: 'nil' requires a contextual type
1768 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1769 |         #else
1770 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1771 |         guard let localTime = localtime(&timestamp) else {
1772 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1771:31: error: cannot find 'localtime' in scope
1769 |         #else
1770 |         var timestamp = time(nil)
1771 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1772 |             return "<unknown>"
1773 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1774:9: error: cannot find 'strftime' in scope
1772 |             return "<unknown>"
1773 |         }
1774 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1775 |         #endif
1776 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1895:54: error: 'description' is unavailable: unavailable in embedded Swift
1893 |         switch self {
1894 |         case .dictionary(let dict):
1895 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1896 |         case .array(let list):
1897 |             return list.map { $0.description }.description
Swift.Dictionary.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Dictionary {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1897:48: error: 'description' is unavailable: unavailable in embedded Swift
1895 |             return dict.mapValues { $0.description }.description
1896 |         case .array(let list):
1897 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1898 |         case .string(let str):
1899 |             return str
Swift.Array.description:2:12: note: 'description' has been explicitly marked unavailable here
1 | generic struct Array {
2 | public var description: String { get }}
  |            `- note: 'description' has been explicitly marked unavailable here
3 |
BUILD FAILURE 6.2 wasm