The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build MistKit, reference 0.2.4 (5900c2), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 03:29:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/brightdigit/MistKit.git
Reference: 0.2.4
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/brightdigit/MistKit
 * tag               0.2.4      -> FETCH_HEAD
HEAD is now at 5900c20 Version 0.2.4
Cloned https://github.com/brightdigit/MistKit.git
Revision (git rev-parse @):
5900c20b7af1a65fc02a066987a1e374e68b4a40
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/brightdigit/MistKit.git at 0.2.4
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/brightdigit/MistKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/vapor/vapor.git
Fetching https://github.com/vapor/fluent.git
Fetching https://github.com/vapor/fluent-sqlite-driver.git
Fetching https://github.com/apple/swift-nio.git
[1/1347] Fetching fluent-sqlite-driver
[1348/14768] Fetching fluent-sqlite-driver, fluent
[6583/28782] Fetching fluent-sqlite-driver, fluent, async-http-client
[15971/103328] Fetching fluent-sqlite-driver, fluent, async-http-client, vapor
[27090/179655] Fetching fluent-sqlite-driver, fluent, async-http-client, vapor, swift-nio
[35091/195035] Fetching fluent-sqlite-driver, fluent, async-http-client, vapor, swift-nio, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.91s)
Fetched https://github.com/swift-server/async-http-client.git from cache (1.91s)
[144270/165641] Fetching fluent-sqlite-driver, fluent, vapor, swift-nio
Fetched https://github.com/vapor/fluent.git from cache (2.21s)
[136955/152220] Fetching fluent-sqlite-driver, vapor, swift-nio
Fetched https://github.com/vapor/vapor.git from cache (2.24s)
[63172/77674] Fetching fluent-sqlite-driver, swift-nio
Fetched https://github.com/vapor/fluent-sqlite-driver.git from cache (3.94s)
Fetched https://github.com/apple/swift-nio.git from cache (4.02s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (4.53s)
Computing version for https://github.com/vapor/fluent.git
Computed https://github.com/vapor/fluent.git at 4.12.0 (1.10s)
Fetching https://github.com/vapor/fluent-kit.git
[1/13328] Fetching fluent-kit
Fetched https://github.com/vapor/fluent-kit.git from cache (0.57s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.52.2 (0.90s)
Fetching https://github.com/vapor/sql-kit.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[193/9819] Fetching swift-log, sql-kit
Fetched https://github.com/vapor/sql-kit.git from cache (0.39s)
Fetched https://github.com/apple/swift-log.git from cache (0.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.73s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.33.0 (0.32s)
Fetching https://github.com/apple/swift-collections.git
[1/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (0.96s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.77s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1797] Fetching swift-atomics
[595/6233] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.45s)
Fetched https://github.com/apple/swift-system.git from cache (0.47s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.79s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.31s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.56s)
Computing version for https://github.com/vapor/fluent-sqlite-driver.git
Computed https://github.com/vapor/fluent-sqlite-driver.git at 4.8.1 (0.32s)
Fetching https://github.com/vapor/sqlite-kit.git
[1/2112] Fetching sqlite-kit
Fetched https://github.com/vapor/sqlite-kit.git from cache (0.59s)
Computing version for https://github.com/vapor/sqlite-kit.git
Computed https://github.com/vapor/sqlite-kit.git at 4.5.2 (0.94s)
Fetching https://github.com/vapor/async-kit.git
Fetching https://github.com/vapor/sqlite-nio.git
[1/2370] Fetching async-kit
[2371/3932] Fetching async-kit, sqlite-nio
Fetched https://github.com/vapor/async-kit.git from cache (1.18s)
Fetched https://github.com/vapor/sqlite-nio.git from cache (1.19s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.20.0 (3.15s)
Fetching https://github.com/apple/swift-algorithms.git
[1/5959] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (0.42s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.09s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.37s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.81s)
Computing version for https://github.com/vapor/sqlite-nio.git
Computed https://github.com/vapor/sqlite-nio.git at 1.11.5 (0.40s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 4.115.0 (0.74s)
Fetching https://github.com/vapor/multipart-kit.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/vapor/websocket-kit.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-distributed-tracing.git
[1/1081] Fetching swift-service-context
[574/4534] Fetching swift-service-context, multipart-kit
[2153/7143] Fetching swift-service-context, multipart-kit, websocket-kit
[3150/12136] Fetching swift-service-context, multipart-kit, websocket-kit, swift-distributed-tracing
[4602/14342] Fetching swift-service-context, multipart-kit, websocket-kit, swift-distributed-tracing, swift-metrics
[9916/20284] Fetching swift-service-context, multipart-kit, websocket-kit, swift-distributed-tracing, swift-metrics, swift-nio-extras
Fetched https://github.com/apple/swift-metrics.git from cache (0.43s)
[15654/18078] Fetching swift-service-context, multipart-kit, websocket-kit, swift-distributed-tracing, swift-nio-extras
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.52s)
Fetching https://github.com/apple/swift-nio-ssl.git
[11256/24617] Fetching swift-service-context, multipart-kit, websocket-kit, swift-nio-extras, swift-nio-http2
[13794/39507] Fetching swift-service-context, multipart-kit, websocket-kit, swift-nio-extras, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-service-context.git from cache (3.57s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (3.57s)
Fetched https://github.com/vapor/websocket-kit.git from cache (3.57s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/vapor/routing-kit.git
Fetched https://github.com/vapor/multipart-kit.git from cache (3.59s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (3.15s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.11s)
[1/20852] Fetching routing-kit
[16058/36122] Fetching routing-kit, swift-crypto
Fetching https://github.com/vapor/console-kit.git
Fetched https://github.com/vapor/routing-kit.git from cache (2.44s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.45s)
[1/6018] Fetching console-kit
Fetched https://github.com/vapor/console-kit.git from cache (0.61s)
Computing version for https://github.com/vapor/routing-kit.git
Computed https://github.com/vapor/routing-kit.git at 4.9.2 (6.93s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (0.40s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.16.1 (0.40s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2667] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.81s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (1.29s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.2.1 (0.66s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.28.0 (0.60s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
[1/1152] Fetching swift-http-structured-headers
[923/2056] Fetching swift-http-structured-headers, swift-http-types
[1443/3652] Fetching swift-http-structured-headers, swift-http-types, swift-asn1
[3653/8637] Fetching swift-http-structured-headers, swift-http-types, swift-asn1, swift-async-algorithms
[3654/11063] Fetching swift-http-structured-headers, swift-http-types, swift-asn1, swift-async-algorithms, swift-service-lifecycle
[11064/17247] Fetching swift-http-structured-headers, swift-http-types, swift-asn1, swift-async-algorithms, swift-service-lifecycle, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.94s)
[13178/15651] Fetching swift-http-structured-headers, swift-http-types, swift-async-algorithms, swift-service-lifecycle, swift-certificates
Fetched https://github.com/apple/swift-http-types.git from cache (1.12s)
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (1.13s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.13s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.13s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.13s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.8.0 (1.50s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (0.49s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.50s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (1.07s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.42s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (0.35s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (0.58s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (0.34s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.15.2 (0.36s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.26.1 (0.40s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (0.41s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (0.41s)
Computing version for https://github.com/vapor/multipart-kit.git
Computed https://github.com/vapor/multipart-kit.git at 4.7.1 (0.33s)
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.26.1
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.20.0
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.33.0
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/vapor/routing-kit.git
Working copy of https://github.com/vapor/routing-kit.git resolved at 4.9.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.15.2
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/vapor/sqlite-kit.git
Working copy of https://github.com/vapor/sqlite-kit.git resolved at 4.5.2
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.32.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
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/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
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/vapor/fluent-kit.git
Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.52.2
Creating working copy for https://github.com/vapor/multipart-kit.git
Working copy of https://github.com/vapor/multipart-kit.git resolved at 4.7.1
Creating working copy for https://github.com/vapor/fluent.git
Working copy of https://github.com/vapor/fluent.git resolved at 4.12.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.28.0
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 4.115.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.1
Creating working copy for https://github.com/vapor/fluent-sqlite-driver.git
Working copy of https://github.com/vapor/fluent-sqlite-driver.git resolved at 4.8.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.16.1
Creating working copy for https://github.com/vapor/sqlite-nio.git
Working copy of https://github.com/vapor/sqlite-nio.git resolved at 1.11.5
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.8.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Building for debugging...
[0/915] Write sources
[58/915] Compiling _AtomicsShims.c
[59/915] Compiling CNIOWindows shim.c
[60/915] Compiling _NumericsShims _NumericsShims.c
[61/915] Compiling CSystem shims.c
[62/915] Compiling CNIOWindows WSAStartup.c
[63/915] Compiling x86_64-mont5-apple.S
[64/915] Write swift-version-24593BA9C3E375BF.txt
[65/915] Compiling CNIOWASI CNIOWASI.c
[66/915] Compiling CNIOLinux shim.c
[67/915] Compiling CVaporBcrypt bcrypt.c
[68/915] Compiling CNIOLinux liburing_shims.c
[68/915] Compiling CVaporBcrypt blf.c
[70/915] Compiling CNIOSHA1 c_nio_sha1.c
[71/1033] Compiling tls_method.cc
[73/1038] Compiling MistKit MKDatabaseConnection.Query.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[74/1038] Compiling MistKit MKDatabaseConnection.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[75/1038] Compiling MistKit MKDatabaseType.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[76/1038] Compiling MistKit MKEnvironment.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[77/1038] Compiling MistKit ResultTransformerProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[78/1038] Compiling MistKit LookupRecord.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[79/1038] Compiling MistKit LookupRecordQuery.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[80/1038] Compiling MistKit LookupRecordQueryRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[81/1038] Compiling MistKit ModifiedRecord.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[82/1038] Compiling MistKit ModifiedRecordQueryResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[83/1038] Compiling MistKit ModifiedRecordQueryResult.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[84/1038] Compiling MistKit ModifyOperation.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[85/1038] Compiling MistKit ModifyOperationType.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[86/1038] Compiling MistKit ModifyRecordQuery.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[87/1050] Compiling MistKit ModifyRecordQueryRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[88/1050] Compiling MistKit FetchRecordQuery.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[89/1050] Compiling MistKit FetchRecordQueryRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[90/1050] Compiling MistKit FetchRecordQueryResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[91/1050] Compiling MistKit GetCurrentUserIdentityRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[92/1050] Compiling MistKit UserIdentityLookupInfo.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[93/1050] Compiling MistKit UserIdentityNameComponents.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[94/1050] Compiling MistKit UserIdentityResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[95/1050] Compiling MistKit MKDatabase.URLSession.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[96/1050] Compiling MistKit MKEmptyGet.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[97/1050] Emitting module _NIOBase64
[98/1050] Compiling _NIOBase64 Base64.swift
[100/1051] Compiling MistKit CharacterMapEncoder.swift
[101/1051] Compiling MistKit MKAuthenticationRedirect.swift
[102/1051] Compiling MistKit MKAuthenticationResponse.swift
[103/1051] Compiling MistKit MKFileStorage.swift
[104/1051] Emitting module RealModule
[105/1051] Compiling MistKit MKUserDefaultsStorage.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[106/1051] Compiling MistKit MKAPIVersion.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[111/1051] Compiling MistKit MKDatabase.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[112/1051] Compiling MistKit RecordNameParser.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[113/1051] Compiling MistKit RequestConfigurationFactory.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[114/1051] Compiling MistKit ResultSink.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[115/1052] Compiling MistKit ResultTransformer.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[116/1052] Compiling MistKit Array.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[117/1052] Compiling MistKit JSONDecoder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[118/1052] Compiling MistKit JSONEncoder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[119/1052] Compiling MistKit String.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[120/1052] Compiling MistKit UUID.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[121/1052] Compiling MistKit MKAnyQuery.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[122/1052] Compiling SystemPackage Util+StringArray.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[123/1052] Compiling SystemPackage Util.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[124/1052] Compiling SystemPackage UtilConsumers.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[125/1052] Compiling ServiceContextModule ServiceContextKey.swift
[126/1052] Compiling RealModule Float16+Real.swift
[127/1052] Compiling RealModule Float80+Real.swift
[128/1052] Compiling MistKit MKError.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[129/1052] Compiling MistKit MKErrorCode.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[130/1052] Compiling MistKit MKFieldType.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[131/1052] Compiling MistKit MKLocation.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[132/1052] Compiling MistKit MKServerResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[133/1052] Compiling MistKit MKValue.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[134/1052] Compiling MistKit ModifiedRecordQueryContent.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[135/1052] Compiling MistKit RecordName.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[136/1052] Compiling MistKit RequestConfiguration.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[137/1052] Compiling MistKit MKContentRecord.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[138/1052] Compiling RealModule Real.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[139/1052] Emitting module MistKit
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[144/1052] Compiling MistKit MKStaticTokenManager.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[145/1052] Compiling MistKit MKTokenClient.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[146/1052] Compiling MistKit MKTokenEncoder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[147/1052] Compiling MistKit MKTokenManager.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[148/1052] Compiling MistKit MKTokenManagerProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[149/1052] Compiling MistKit MKTokenStorage.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[150/1052] Compiling MistKit MKDecodable.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[151/1052] Compiling MistKit MKDecoder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[152/1052] Compiling MistKit MKEncodable.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[153/1052] Compiling MistKit MKEncoder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[154/1052] Compiling MistKit MKQuery.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[155/1052] Compiling MistKit MKQueryProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[156/1052] Compiling MistKit MKQueryRecord.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[157/1052] Compiling MistKit MKRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[158/1052] Compiling MistKit RequestConfigurationFactoryProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[159/1052] Compiling MistKit ResultSinkProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[160/1066] Compiling RealModule ElementaryFunctions.swift
[161/1066] Compiling RealModule Float+Real.swift
[162/1066] Compiling RealModule RealFunctions.swift
[163/1066] Compiling MistKit MKHttpClient.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[164/1066] Compiling MistKit MKHttpRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[165/1066] Compiling MistKit MKHttpResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[166/1066] Compiling MistKit MKURLBuilder.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[167/1066] Compiling MistKit MKURLBuilderFactory.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[168/1066] Compiling MistKit MKURLBuilderProtocol.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[169/1066] Compiling MistKit MKURLRequest.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[170/1066] Compiling MistKit MKURLResponse.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[171/1066] Compiling MistKit MKURLSessionClient.swift
/host/spi-builder-workspace/Sources/MistKit/Authentication/MKAuthenticationRedirect.swift:1:8: error: no such module 'Foundation'
 1 | import Foundation
   |        `- error: no such module 'Foundation'
 2 |
 3 | #if canImport(FoundationNetworking)
[172/1067] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[173/1068] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[174/1068] Emitting module _NIODataStructures
[174/1068] Compiling CSQLite sqlite_nio_sqlite3.c
[175/1068] Compiling _NIODataStructures PriorityQueue.swift
BUILD FAILURE 6.2 wasm