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 nostr-kit, reference 0.5.0 (f60503), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 08:13:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/tannerdsilva/nostr-kit.git
Reference: 0.5.0
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/tannerdsilva/nostr-kit
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at f60503e release v0.5.0
Cloned https://github.com/tannerdsilva/nostr-kit.git
Revision (git rev-parse @):
f60503e2ac73b41fd0bfa03ed8eb279c5d417113
SUCCESS checkout https://github.com/tannerdsilva/nostr-kit.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tannerdsilva/nostr-kit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/tannerdsilva/rawdog.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/GigaBitcoin/secp256k1.swift
Fetching https://github.com/tannerdsilva/QuickJSON.git
Fetching https://github.com/apple/swift-crypto.git
[1/3284] Fetching rawdog
[2/3730] Fetching rawdog, quickjson
[1950/8166] Fetching rawdog, quickjson, swift-system
[1951/12002] Fetching rawdog, quickjson, swift-system, swift-log
[2448/16903] Fetching rawdog, quickjson, swift-system, swift-log, secp256k1.swift
[16864/32267] Fetching rawdog, quickjson, swift-system, swift-log, secp256k1.swift, swift-crypto
Fetched https://github.com/tannerdsilva/QuickJSON.git from cache (0.60s)
Fetched https://github.com/GigaBitcoin/secp256k1.swift from cache (0.60s)
[12478/26920] Fetching rawdog, swift-system, swift-log, swift-crypto
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/swift-extras/swift-extras-base64.git
Fetched https://github.com/apple/swift-system.git from cache (0.64s)
Fetched https://github.com/apple/swift-log.git from cache (0.64s)
Fetching https://github.com/apple/swift-nio.git
[4360/18648] Fetching rawdog, swift-crypto
Fetched https://github.com/tannerdsilva/rawdog.git from cache (0.70s)
[2305/15364] Fetching swift-crypto
[3382/16197] Fetching swift-crypto, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.36s)
[3841/15364] Fetching swift-crypto
[4764/30254] Fetching swift-crypto, swift-nio-ssl
[6253/106581] Fetching swift-crypto, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-crypto.git from cache (4.07s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.49s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/apple/swift-nio.git from cache (4.36s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (1.55s)
Computing version for https://github.com/GigaBitcoin/secp256k1.swift
Computed https://github.com/GigaBitcoin/secp256k1.swift at 0.7.0 (10.31s)
Computing version for https://github.com/tannerdsilva/rawdog.git
Computed https://github.com/tannerdsilva/rawdog.git at 0.0.7 (0.47s)
Computing version for https://github.com/tannerdsilva/QuickJSON.git
Computed https://github.com/tannerdsilva/QuickJSON.git at 0.1.1 (0.62s)
Fetching https://github.com/ibireme/yyjson.git
[1/3794] Fetching yyjson
Fetched https://github.com/ibireme/yyjson.git from cache (1.04s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.7.0 (1.54s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.6.0 (0.55s)
Computing version for https://github.com/swift-extras/swift-extras-base64.git
Computed https://github.com/swift-extras/swift-extras-base64.git at 0.7.0 (0.44s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.43s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.41s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.53s)
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.83s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.18s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
[990/18437] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.78s)
[4327/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.56s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (4.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.78s)
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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
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.5.1
Creating working copy for https://github.com/GigaBitcoin/secp256k1.swift
Working copy of https://github.com/GigaBitcoin/secp256k1.swift resolved at 0.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/tannerdsilva/QuickJSON.git
Working copy of https://github.com/tannerdsilva/QuickJSON.git resolved at 0.1.1
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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.6.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.2.0
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.7.0
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/swift-extras/swift-extras-base64.git
Working copy of https://github.com/swift-extras/swift-extras-base64.git resolved at 0.7.0
Creating working copy for https://github.com/tannerdsilva/rawdog.git
Working copy of https://github.com/tannerdsilva/rawdog.git resolved at 0.0.7
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/893] Compiling cnostr cnostr.c
[2/893] Compiling a_d2i_fp.c
[3/893] Compiling a_octet.c
[4/893] Write sources
[5/893] Compiling a_dup.c
[6/893] Compiling a_strex.c
[7/893] Write swift-version-24593BA9C3E375BF.txt
[8/893] Compiling posix_time.c
[8/893] Compiling a_object.c
[9/893] Write sources
[15/893] Compiling tasn_dec.c
[16/893] Compiling _AtomicsShims.c
[17/893] Write sources
[31/897] Compiling Utility.c
[32/918] Compiling precomputed_ecmult_gen.c
[33/918] Write sources
[36/921] Compiling secp256k1.c
[37/921] Write sources
[38/921] Compiling CSystem shims.c
[39/921] Compiling CRAW CRAW.c
[40/949] Compiling precomputed_ecmult.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/968] Emitting module secp256k1_implementation
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[43/970] Compiling secp256k1_implementation Asymmetric.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[44/970] Compiling secp256k1_implementation DH.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[45/970] Compiling secp256k1_implementation Digests.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[46/970] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[47/970] Compiling Logging LogHandler.swift
[48/971] Compiling secp256k1_implementation Signature.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[49/971] Compiling secp256k1_implementation RNG_boring.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[50/971] Compiling secp256k1_implementation Errors.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[51/971] Compiling secp256k1_implementation PrettyBytes.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[52/971] Compiling secp256k1_implementation SHA256.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[53/971] Compiling secp256k1_implementation Utility.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[54/971] Compiling secp256k1_implementation Zeroization.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[55/971] Compiling secp256k1_implementation secp256k1.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[56/971] Compiling secp256k1_implementation Digest.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[57/971] 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)
[58/974] Emitting module InternalCollectionsUtilities
[59/974] Compiling secp256k1_implementation ECDH.swift
[60/974] Compiling secp256k1_implementation ECDSA.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)
/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)
[63/974] Compiling secp256k1_implementation SecureBytes.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)
[64/974] Compiling secp256k1_implementation BytesUtil.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)
[65/974] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[68/974] Compiling SystemPackage MachPort.swift
[69/974] Compiling SystemPackage PlatformString.swift
[70/974] Compiling SystemPackage SystemString.swift
[75/974] Compiling secp256k1_implementation EdDSA.swift
[76/974] Compiling secp256k1_implementation SafeCompare.swift
[77/974] Compiling secp256k1_implementation Schnorr.swift
[78/974] Compiling secp256k1_implementation Tweak.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[94/975] Compiling _NIOBase64 Base64.swift
[95/975] Emitting module _NIOBase64
[97/979] Compiling _NIODataStructures PriorityQueue.swift
[98/979] Compiling _NIODataStructures _TinyArray.swift
[99/993] Emitting module RAW
[100/993] Compiling RAW RAW.swift
[102/994] Compiling DequeModule _DequeBuffer.swift
[103/994] Compiling DequeModule _DequeBufferHeader.swift
[103/996] Wrapping AST for _NIOBase64 for debugging
[105/996] Compiling DequeModule Deque._Storage.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[106/996] Compiling DequeModule Deque._UnsafeHandle.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[107/996] Compiling DequeModule Deque.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[108/996] Compiling DequeModule Deque+Extras.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[109/996] Compiling DequeModule Deque+Hashable.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[110/996] Compiling DequeModule Deque+Testing.swift
/host/spi-builder-workspace/.build/checkouts/secp256k1.swift/Sources/implementation/Asymmetric.swift:11:8: error: no such module 'Foundation'
  9 | //
 10 |
 11 | import Foundation
    |        `- error: no such module 'Foundation'
 12 |
 13 | /// The secp256k1 Elliptic Curve.
[111/996] Compiling DequeModule Deque+CustomReflectable.swift
[112/996] Compiling DequeModule Deque+Descriptions.swift
/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)
/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 |
[112/996] Wrapping AST for RAW for debugging
[112/996] Compiling yyjson.c
BUILD FAILURE 6.2 wasm