The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SpeziStudyPlatformAPI, reference 0.0.2 (62265b), with Swift 6.2 for Wasm on 24 Mar 2026 01:37:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/StanfordSpezi/SpeziStudyPlatform-API.git
Reference: 0.0.2
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/StanfordSpezi/SpeziStudyPlatform-API
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at 62265b3 Bump SpeziStudy Version (#2)
Cloned https://github.com/StanfordSpezi/SpeziStudyPlatform-API.git
Revision (git rev-parse @):
62265b31278f0953877971ca91ac84b9853ca9d4
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/StanfordSpezi/SpeziStudyPlatform-API.git at 0.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/StanfordSpezi/SpeziStudyPlatform-API.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
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
Fetching https://github.com/StanfordSpezi/SpeziStudy.git
Fetching https://github.com/StanfordSpezi/SpeziHealthKit.git
Fetching https://github.com/apple/swift-openapi-runtime.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-openapi-urlsession.git
Fetching https://github.com/StanfordSpezi/SpeziFoundation.git
[1/1097] Fetching swift-openapi-urlsession
[1098/3280] Fetching swift-openapi-urlsession, spezistudy
[1404/6169] Fetching swift-openapi-urlsession, spezistudy, spezifoundation
[4195/12677] Fetching swift-openapi-urlsession, spezistudy, spezifoundation, swift-openapi-runtime
[4543/18361] Fetching swift-openapi-urlsession, spezistudy, spezifoundation, swift-openapi-runtime, spezihealthkit
[5438/35775] Fetching swift-openapi-urlsession, spezistudy, spezifoundation, swift-openapi-runtime, spezihealthkit, swift-argument-parser
Fetched https://github.com/apple/swift-openapi-urlsession.git from cache (1.09s)
[7958/34678] Fetching spezistudy, spezifoundation, swift-openapi-runtime, spezihealthkit, swift-argument-parser
Fetched https://github.com/StanfordSpezi/SpeziStudy.git from cache (1.26s)
[11042/32495] Fetching spezifoundation, swift-openapi-runtime, spezihealthkit, swift-argument-parser
Fetched https://github.com/StanfordSpezi/SpeziFoundation.git from cache (1.27s)
[8523/29606] Fetching swift-openapi-runtime, spezihealthkit, swift-argument-parser
Fetched https://github.com/apple/swift-openapi-runtime.git from cache (3.09s)
Fetched https://github.com/StanfordSpezi/SpeziHealthKit.git from cache (3.09s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.09s)
Computing version for https://github.com/StanfordSpezi/SpeziStudy.git
Computed https://github.com/StanfordSpezi/SpeziStudy.git at 0.2.0 (4.19s)
Fetching https://github.com/apple/FHIRModels.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/StanfordSpezi/SpeziScheduler.git
[1/3463] Fetching spezischeduler
[244/9724] Fetching spezischeduler, swift-log
[2196/32352] Fetching spezischeduler, swift-log, swift-collections
[9609/38971] Fetching spezischeduler, swift-log, swift-collections, fhirmodels
Fetched https://github.com/apple/FHIRModels.git from cache (1.73s)
[24885/32352] Fetching spezischeduler, swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git from cache (2.96s)
Fetched https://github.com/StanfordSpezi/SpeziScheduler.git from cache (2.98s)
Fetched https://github.com/apple/swift-collections.git from cache (3.06s)
Computing version for https://github.com/StanfordSpezi/SpeziHealthKit.git
Computed https://github.com/StanfordSpezi/SpeziHealthKit.git at 1.4.0 (4.29s)
Fetching https://github.com/StanfordSpezi/SpeziStorage.git
Fetching https://github.com/StanfordSpezi/Spezi.git
Fetching https://github.com/apple/swift-algorithms.git
[1/10260] Fetching spezi
[104/11957] Fetching spezi, spezistorage
[172/18015] Fetching spezi, spezistorage, swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.76s)
Fetched https://github.com/StanfordSpezi/SpeziStorage.git from cache (1.00s)
Fetched https://github.com/StanfordSpezi/Spezi.git from cache (1.01s)
Computing version for https://github.com/StanfordSpezi/SpeziFoundation.git
Computed https://github.com/StanfordSpezi/SpeziFoundation.git at 2.7.4 (2.14s)
Fetching https://github.com/StanfordBDHG/ThreadLocal.git
Fetching https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Fetching https://github.com/StanfordBDHG/zstd.git
[1/735] Fetching xctruntimeassertions
[736/906] Fetching xctruntimeassertions, threadlocal
[907/64063] Fetching xctruntimeassertions, threadlocal, zstd
Fetching https://github.com/apple/swift-atomics.git
[12276/65883] Fetching xctruntimeassertions, threadlocal, zstd, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.78s)
[16064/64063] Fetching xctruntimeassertions, threadlocal, zstd
Fetched https://github.com/StanfordBDHG/XCTRuntimeAssertions.git from cache (7.67s)
Fetched https://github.com/StanfordBDHG/ThreadLocal.git from cache (7.68s)
Fetched https://github.com/StanfordBDHG/zstd.git from cache (7.84s)
Computing version for https://github.com/StanfordSpezi/SpeziScheduler.git
Computed https://github.com/StanfordSpezi/SpeziScheduler.git at 1.2.18 (8.80s)
Computing version for https://github.com/apple/FHIRModels.git
Computed https://github.com/apple/FHIRModels.git at 0.8.0 (4.39s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.87s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.74s)
Computing version for https://github.com/StanfordSpezi/Spezi.git
Computed https://github.com/StanfordSpezi/Spezi.git at 1.10.1 (1.79s)
Computing version for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Computed https://github.com/StanfordBDHG/XCTRuntimeAssertions.git at 2.2.0 (0.99s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.70s)
Computing version for https://github.com/StanfordSpezi/SpeziStorage.git
Computed https://github.com/StanfordSpezi/SpeziStorage.git at 2.1.3 (1.08s)
Computing version for https://github.com/StanfordBDHG/ThreadLocal.git
Computed https://github.com/StanfordBDHG/ThreadLocal.git at 0.1.2 (0.81s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/74836] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (9.44s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (10.68s)
Computing version for https://github.com/apple/swift-openapi-urlsession.git
Computed https://github.com/apple/swift-openapi-urlsession.git at 1.2.0 (0.98s)
Fetching https://github.com/apple/swift-http-types
[1/951] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.41s)
Computing version for https://github.com/apple/swift-openapi-runtime.git
Computed https://github.com/apple/swift-openapi-runtime.git at 1.11.0 (1.20s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.70s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.7.1 (0.87s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.10.1 (0.73s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.5.1 (0.62s)
Computing version for https://github.com/StanfordBDHG/zstd.git
Computed https://github.com/StanfordBDHG/zstd.git at 1.5.8-beta.1 (0.82s)
Creating working copy for https://github.com/StanfordBDHG/XCTRuntimeAssertions.git
Working copy of https://github.com/StanfordBDHG/XCTRuntimeAssertions.git resolved at 2.2.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.4.1
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
Creating working copy for https://github.com/StanfordSpezi/Spezi.git
Working copy of https://github.com/StanfordSpezi/Spezi.git resolved at 1.10.1
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/StanfordSpezi/SpeziHealthKit.git
Working copy of https://github.com/StanfordSpezi/SpeziHealthKit.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.5.1
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
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.10.1
Creating working copy for https://github.com/StanfordSpezi/SpeziStorage.git
Working copy of https://github.com/StanfordSpezi/SpeziStorage.git resolved at 2.1.3
Creating working copy for https://github.com/StanfordSpezi/SpeziFoundation.git
Working copy of https://github.com/StanfordSpezi/SpeziFoundation.git resolved at 2.7.4
Creating working copy for https://github.com/apple/FHIRModels.git
Working copy of https://github.com/apple/FHIRModels.git resolved at 0.8.0
Creating working copy for https://github.com/apple/swift-openapi-runtime.git
Working copy of https://github.com/apple/swift-openapi-runtime.git resolved at 1.11.0
Creating working copy for https://github.com/apple/swift-openapi-urlsession.git
Working copy of https://github.com/apple/swift-openapi-urlsession.git resolved at 1.2.0
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/StanfordBDHG/ThreadLocal.git
Working copy of https://github.com/StanfordBDHG/ThreadLocal.git resolved at 0.1.2
Creating working copy for https://github.com/StanfordSpezi/SpeziScheduler.git
Working copy of https://github.com/StanfordSpezi/SpeziScheduler.git resolved at 1.2.18
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.7.1
Creating working copy for https://github.com/StanfordSpezi/SpeziStudy.git
Working copy of https://github.com/StanfordSpezi/SpeziStudy.git resolved at 0.2.0
Creating working copy for https://github.com/StanfordBDHG/zstd.git
Working copy of https://github.com/StanfordBDHG/zstd.git resolved at 1.5.8-beta.1
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.62s)
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/SpeziStudyPlatformAPITypes/Generated/Types.swift.license
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/SpeziStudyPlatformAPIClient/Generated/Client.swift.license
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/SpeziStudyPlatformAPIServer/Generated/Server.swift.license
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/87] Write sources
[3/87] Compiling threading.c
[4/87] Compiling xxhash.c
[5/87] Compiling hist.c
[6/87] Compiling pool.c
[7/87] Compiling zstd_common.c
[8/87] Compiling fse_compress.c
[9/87] Compiling fastcover.c
[10/87] Compiling divsufsort.c
[11/87] Compiling zdict.c
[12/87] Compiling cover.c
[13/87] Compiling huf_decompress_amd64.S
[14/87] Compiling zstd_ddict.c
[15/87] Write swift-version-24593BA9C3E375BF.txt
[16/87] Compiling huf_compress.c
[17/87] Compiling zstd_preSplit.c
[18/90] Compiling zstdmt_compress.c
[19/90] Compiling huf_decompress.c
[20/91] Compiling zstd_decompress_block.c
[21/91] Compiling zstd_decompress.c
[22/91] Compiling zstd_ldm.c
[23/91] Compiling zstd_compress_sequences.c
[24/91] Compiling zstd_compress_literals.c
[25/91] Compiling zstd_opt.c
[26/91] Compiling error_private.c
[27/91] Compiling zstd_compress_superblock.c
[28/91] Compiling fse_decompress.c
[29/91] Compiling debug.c
[30/91] Compiling entropy_common.c
[30/91] Write sources
[30/91] Copying Localizable.xcstrings.license
[30/91] Copying Localizable.xcstrings
[30/91] Copying Info.plist
[30/91] Write sources
[30/91] Copying Localizable-HKTypes.strings
[30/91] Compiling _NumericsShims _NumericsShims.c
[30/91] Write sources
[30/91] Copying Localizable.xcstrings.license
[30/91] Copying Localizable.xcstrings
[30/91] Copying Info.plist
[54/91] Write sources
[54/91] Compiling _AtomicsShims.c
[74/91] Compiling zstd_double_fast.c
[75/91] Compiling SpeziFoundationObjC ObjCExceptionHandling.m
[76/91] Compiling zstd_fast.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[78/101] Emitting module RuntimeAssertions
/host/spi-builder-workspace/.build/checkouts/XCTRuntimeAssertions/Sources/RuntimeAssertions/Counter.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 |
11 |
[78/101] Compiling zstd_compress.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[80/101] 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:1459:16: error: Unsupported runtime
1457 |         let systemStderr = WASILibc.stderr!
1458 |         #else
1459 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 |         let systemStdout = WASILibc.stdout!
1482 |         #else
1483 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
/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:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 986 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 987 |     /// `.critical` being the most severe.
 988 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 989 |         /// Appropriate for messages that contain information normally of use only when
 990 |         /// 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:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 |             // no file locking on WASI
1410 |             #else
1411 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1412 |             #endif
1413 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 |                 #endif
1421 |             }
1422 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1423 |             if case .always = self.flushMode {
1424 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 |     /// Flush the underlying stream.
1430 |     internal func flush() {
1431 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1432 |     }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 |         #else
1667 |         var timestamp = time(nil)
1668 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1669 |             return "<unknown>"
1670 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 |             return "<unknown>"
1670 |         }
1671 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1672 |         #endif
1673 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 |         switch self {
1809 |         case .dictionary(let dict):
1810 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1811 |         case .array(let list):
1812 |             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:1812:48: error: 'description' is unavailable: unavailable in embedded Swift
1810 |             return dict.mapValues { $0.description }.description
1811 |         case .array(let list):
1812 |             return list.map { $0.description }.description
     |                                                `- error: 'description' is unavailable: unavailable in embedded Swift
1813 |         case .string(let str):
1814 |             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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[81/103] Emitting module FMCore
/host/spi-builder-workspace/.build/checkouts/FHIRModels/Sources/FMCore/ConstructibleFromNSDate.swift:19:8: error: no such module 'Foundation'
17 | //  limitations under the License.
18 |
19 | import Foundation
   |        `- error: no such module 'Foundation'
20 |
21 | public protocol ConstructibleFromNSDate {
[82/103] Emitting module RealModule
error: emit-module command failed with exit code 1 (use -v to see invocation)
[84/104] Emitting module HTTPTypes
/host/spi-builder-workspace/.build/checkouts/swift-http-types/Sources/HTTPTypes/HTTPRequest+URL.swift:18:8: error: no such module 'Foundation'
 16 | import FoundationEssentials
 17 | #else  // canImport(FoundationEssentials)
 18 | import Foundation
    |        `- error: no such module 'Foundation'
 19 | #if canImport(CoreFoundation)
 20 | import CoreFoundation
[85/104] Compiling RuntimeAssertions Assert.swift
/host/spi-builder-workspace/.build/checkouts/XCTRuntimeAssertions/Sources/RuntimeAssertions/Counter.swift:9:8: error: no such module 'Foundation'
 7 | //
 8 |
 9 | import Foundation
   |        `- error: no such module 'Foundation'
10 |
11 |
[85/104] Compiling zstd_lazy.c
/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:1459:16: error: Unsupported runtime
1457 |         let systemStderr = WASILibc.stderr!
1458 |         #else
1459 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1483:16: error: Unsupported runtime
1481 |         let systemStdout = WASILibc.stdout!
1482 |         #else
1483 |         #error("Unsupported runtime")
     |                `- error: Unsupported runtime
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
/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:988:32: error: 'Codable' is unavailable: unavailable in embedded Swift
 986 |     /// Log levels are ordered by their severity, with `.trace` being the least severe and
 987 |     /// `.critical` being the most severe.
 988 |     public enum Level: String, Codable, CaseIterable {
     |                                `- error: 'Codable' is unavailable: unavailable in embedded Swift
 989 |         /// Appropriate for messages that contain information normally of use only when
 990 |         /// 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:1394:56: error: cannot find type 'FILE' in scope
1392 | internal typealias CFilePointer = OpaquePointer
1393 | #else
1394 | internal typealias CFilePointer = UnsafeMutablePointer<FILE>
     |                                                        `- error: cannot find type 'FILE' in scope
1395 | #endif
1396 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:40: error: cannot find 'systemStderr' in scope
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                        `- error: cannot find 'systemStderr' in scope
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1461:66: error: cannot infer contextual base in reference to member 'always'
1459 |         #error("Unsupported runtime")
1460 |         #endif
1461 |         return StdioOutputStream(file: systemStderr, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1462 |     }()
1463 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:40: error: cannot find 'systemStdout' in scope
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                        `- error: cannot find 'systemStdout' in scope
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1485:66: error: cannot infer contextual base in reference to member 'always'
1483 |         #error("Unsupported runtime")
1484 |         #endif
1485 |         return StdioOutputStream(file: systemStdout, flushMode: .always)
     |                                                                  `- error: cannot infer contextual base in reference to member 'always'
1486 |     }()
1487 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1411:13: error: cannot find 'flockfile' in scope
1409 |             // no file locking on WASI
1410 |             #else
1411 |             flockfile(self.file)
     |             `- error: cannot find 'flockfile' in scope
1412 |             #endif
1413 |             defer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1422:17: error: cannot find 'fwrite' in scope
1420 |                 #endif
1421 |             }
1422 |             _ = fwrite(utf8Bytes.baseAddress!, 1, utf8Bytes.count, self.file)
     |                 `- error: cannot find 'fwrite' in scope
1423 |             if case .always = self.flushMode {
1424 |                 self.flush()
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1431:13: error: cannot find 'fflush' in scope
1429 |     /// Flush the underlying stream.
1430 |     internal func flush() {
1431 |         _ = fflush(self.file)
     |             `- error: cannot find 'fflush' in scope
1432 |     }
1433 |
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:25: error: cannot find 'time' in scope
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                         `- error: cannot find 'time' in scope
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1667:30: error: 'nil' requires a contextual type
1665 |         _ = strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", &localTime)
1666 |         #else
1667 |         var timestamp = time(nil)
     |                              `- error: 'nil' requires a contextual type
1668 |         guard let localTime = localtime(&timestamp) else {
1669 |             return "<unknown>"
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1668:31: error: cannot find 'localtime' in scope
1666 |         #else
1667 |         var timestamp = time(nil)
1668 |         guard let localTime = localtime(&timestamp) else {
     |                               `- error: cannot find 'localtime' in scope
1669 |             return "<unknown>"
1670 |         }
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1671:9: error: cannot find 'strftime' in scope
1669 |             return "<unknown>"
1670 |         }
1671 |         strftime(&buffer, buffer.count, "%Y-%m-%dT%H:%M:%S%z", localTime)
     |         `- error: cannot find 'strftime' in scope
1672 |         #endif
1673 |         return buffer.withUnsafeBufferPointer {
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1810:54: error: 'description' is unavailable: unavailable in embedded Swift
1808 |         switch self {
1809 |         case .dictionary(let dict):
1810 |             return dict.mapValues { $0.description }.description
     |                                                      `- error: 'description' is unavailable: unavailable in embedded Swift
1811 |         case .array(let list):
1812 |             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 |
BUILD FAILURE 6.2 wasm