Build Information
Failed to build AsyncFileMonitor, reference 2.1.0 (106988), with Swift 6.4 for Wasm on 27 Sep 2026 18:40:18 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/AsyncFileMonitor.git
Reference: 2.1.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/CleanCocoa/AsyncFileMonitor
* tag 2.1.0 -> FETCH_HEAD
HEAD is now at 1069889 chore: plan 3.0 as a dependency-ordered slice sequence
Cloned https://github.com/CleanCocoa/AsyncFileMonitor.git
Revision (git rev-parse @):
10698896f096830772b1b6bf74e31d15429b82cc
SUCCESS checkout https://github.com/CleanCocoa/AsyncFileMonitor.git at 2.1.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/CleanCocoa/AsyncFileMonitor.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-collections.git
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin (0.58s)
[1/27779] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (1.15s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (2.25s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3831] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.55s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.77s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.29s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.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.7.1
Building for debugging...
[Pre-planning 1 / 154]
[Starting]
[41 / 66] InternalCollectionsUtilities
[52 / 76] OrderedCollections
[56 / 77] OrderedCollections
[57 / 77] InternalCollectionsUtilities
[59 / 77] OrderedCollections
[59 / 78] OrderedCollections
[75 / 86] AsyncFileMonitor
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:33:26: [1;31merror: [1;39mcannot find type 'FSEventStreamEventFlags' in scope[0;0m
[0;36m31 |[0;0m /// `eventPath`; see ``StreamCondition``. Masking it off is what lets an empty ``Change``
[0;36m32 |[0;0m /// mean "this element reports no file change".
[0;36m33 |[0;0m public init(eventFlags: [4;39mFSEventStreamEventFlags[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventFlags' in scope[0;0m
[0;36m34 |[0;0m self.rawValue = Int(eventFlags) & ~StreamCondition.flagsMask
[0;36m35 |[0;0m }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:38:51: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsDir' in scope[0;0m
[0;36m36 |[0;0m
[0;36m37 |[0;0m /// The changed item is a directory.
[0;36m38 |[0;0m public static let isDirectory = Change(rawValue: [4;39mkFSEventStreamEventFlagItemIsDir[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsDir' in scope[0;0m
[0;36m39 |[0;0m
[0;36m40 |[0;0m /// The changed item is a file.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:41:46: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsFile' in scope[0;0m
[0;36m39 |[0;0m
[0;36m40 |[0;0m /// The changed item is a file.
[0;36m41 |[0;0m public static let isFile = Change(rawValue: [4;39mkFSEventStreamEventFlagItemIsFile[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsFile' in scope[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m /// The changed item is a hard link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:44:50: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope[0;0m
[0;36m42 |[0;0m
[0;36m43 |[0;0m /// The changed item is a hard link.
[0;36m44 |[0;0m public static let isHardlink = Change(rawValue: [4;39mkFSEventStreamEventFlagItemIsHardlink[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m /// The changed item is the last hard link to a file that is being removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:47:54: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope[0;0m
[0;36m45 |[0;0m
[0;36m46 |[0;0m /// The changed item is the last hard link to a file that is being removed.
[0;36m47 |[0;0m public static let isLastHardlink = Change(rawValue: [4;39mkFSEventStreamEventFlagItemIsLastHardlink[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m /// The changed item is a symbolic link.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:50:49: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope[0;0m
[0;36m48 |[0;0m
[0;36m49 |[0;0m /// The changed item is a symbolic link.
[0;36m50 |[0;0m public static let isSymlink = Change(rawValue: [4;39mkFSEventStreamEventFlagItemIsSymlink[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope[0;0m
[0;36m51 |[0;0m
[0;36m52 |[0;0m /// The item was created.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:53:47: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemCreated' in scope[0;0m
[0;36m51 |[0;0m
[0;36m52 |[0;0m /// The item was created.
[0;36m53 |[0;0m public static let created = Change(rawValue: [4;39mkFSEventStreamEventFlagItemCreated[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemCreated' in scope[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m /// The item was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:56:48: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemModified' in scope[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m /// The item was modified.
[0;36m56 |[0;0m public static let modified = Change(rawValue: [4;39mkFSEventStreamEventFlagItemModified[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemModified' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// The item was removed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:59:47: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemRemoved' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// The item was removed.
[0;36m59 |[0;0m public static let removed = Change(rawValue: [4;39mkFSEventStreamEventFlagItemRemoved[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemRemoved' in scope[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m /// The item was renamed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:62:47: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemRenamed' in scope[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m /// The item was renamed.
[0;36m62 |[0;0m public static let renamed = Change(rawValue: [4;39mkFSEventStreamEventFlagItemRenamed[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemRenamed' in scope[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// The item's owner was changed.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:65:51: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m /// The item's owner was changed.
[0;36m65 |[0;0m public static let changeOwner = Change(rawValue: [4;39mkFSEventStreamEventFlagItemChangeOwner[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// The item's Finder information was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:68:58: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope[0;0m
[0;36m66 |[0;0m
[0;36m67 |[0;0m /// The item's Finder information was modified.
[0;36m68 |[0;0m public static let finderInfoModified = Change(rawValue: [4;39mkFSEventStreamEventFlagItemFinderInfoMod[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// The item's inode metadata was modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:71:57: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope[0;0m
[0;36m69 |[0;0m
[0;36m70 |[0;0m /// The item's inode metadata was modified.
[0;36m71 |[0;0m public static let inodeMetaModified = Change(rawValue: [4;39mkFSEventStreamEventFlagItemInodeMetaMod[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// The item's extended attributes were modified.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:74:54: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemXattrMod' in scope[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m /// The item's extended attributes were modified.
[0;36m74 |[0;0m public static let xattrsModified = Change(rawValue: [4;39mkFSEventStreamEventFlagItemXattrMod[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemXattrMod' in scope[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:77:46: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemCloned' in scope[0;0m
[0;36m75 |[0;0m
[0;36m76 |[0;0m /// The item was cloned, e.g. by `clonefile(2)` or duplicating in Finder.
[0;36m77 |[0;0m public static let cloned = Change(rawValue: [4;39mkFSEventStreamEventFlagItemCloned[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagItemCloned' in scope[0;0m
[0;36m78 |[0;0m
[0;36m79 |[0;0m /// The change was caused by this process.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift:82:48: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagOwnEvent' in scope[0;0m
[0;36m80 |[0;0m ///
[0;36m81 |[0;0m /// Useful to suppress reacting to your own writes.
[0;36m82 |[0;0m public static let ownEvent = Change(rawValue: [4;39mkFSEventStreamEventFlagOwnEvent[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagOwnEvent' in scope[0;0m
[0;36m83 |[0;0m }
[0;36m84 |[0;0m
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:50:42: [1;31merror: [1;39mcannot find type 'FSEventStreamCallback' in scope[0;0m
[0;36m48 |[0;0m /// Deliberately free of Task hops: scheduling here would let Swift concurrency reorder
[0;36m49 |[0;0m /// events that FSEvents delivered in order.
[0;36m50 |[0;0m private static let eventStreamCallback: [4;39mFSEventStreamCallback[0;0m = {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamCallback' in scope[0;0m
[0;36m51 |[0;0m (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
[0;36m52 |[0;0m guard let contextInfo else { return }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:53:31: [1;31merror: [1;39mcannot find type 'CFArray' in scope[0;0m
[0;36m51 |[0;0m (stream, contextInfo, numEvents, eventPaths, eventFlags, eventIDs) in
[0;36m52 |[0;0m guard let contextInfo else { return }
[0;36m53 |[0;0m guard let paths = Unmanaged<[4;39mCFArray[0;0m>.fromOpaque(eventPaths).takeUnretainedValue() as NSArray as? [String]
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFArray' in scope[0;0m
[0;36m54 |[0;0m else {
[0;36m55 |[0;0m return
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:73:25: [1;31merror: [1;39mcannot find type 'FSEventStreamRef' in scope[0;0m
[0;36m71 |[0;0m }
[0;36m72 |[0;0m
[0;36m73 |[0;0m private let streamRef: [4;39mFSEventStreamRef[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamRef' in scope[0;0m
[0;36m74 |[0;0m private let queue: DispatchQueue
[0;36m75 |[0;0m private let eventHandlerBox: EventHandlerBox
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:74:21: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m private let streamRef: FSEventStreamRef
[0;36m74 |[0;0m private let queue: [4;39mDispatchQueue[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m75 |[0;0m private let eventHandlerBox: EventHandlerBox
[0;36m76 |[0;0m
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:77:26: [1;31merror: [1;39mcannot find type 'FSEventStreamRef' in scope[0;0m
[0;36m75 |[0;0m private let eventHandlerBox: EventHandlerBox
[0;36m76 |[0;0m
[0;36m77 |[0;0m private init(streamRef: [4;39mFSEventStreamRef[0;0m, queue: DispatchQueue, eventHandlerBox: EventHandlerBox) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamRef' in scope[0;0m
[0;36m78 |[0;0m self.streamRef = streamRef
[0;36m79 |[0;0m self.queue = queue
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:77:51: [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m75 |[0;0m private let eventHandlerBox: EventHandlerBox
[0;36m76 |[0;0m
[0;36m77 |[0;0m private init(streamRef: FSEventStreamRef, queue: [4;39mDispatchQueue[0;0m, eventHandlerBox: EventHandlerBox) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchQueue' in scope[0;0m
[0;36m78 |[0;0m self.streamRef = streamRef
[0;36m79 |[0;0m self.queue = queue
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:93:14: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m91 |[0;0m static func make(
[0;36m92 |[0;0m paths: [String],
[0;36m93 |[0;0m sinceWhen: [4;39mFSEventStreamEventId[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m94 |[0;0m latency: CFTimeInterval,
[0;36m95 |[0;0m eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift:94:12: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m92 |[0;0m paths: [String],
[0;36m93 |[0;0m sinceWhen: FSEventStreamEventId,
[0;36m94 |[0;0m latency: [4;39mCFTimeInterval[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m95 |[0;0m eventHandler: @escaping @Sendable (FolderContentChangeEvent) -> Void
[0;36m96 |[0;0m ) throws -> FileSystemEventStream {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:21:17: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m19 |[0;0m ///
[0;36m20 |[0;0m /// This is an alias for ``eventID`` to satisfy the `Identifiable` protocol.
[0;36m21 |[0;0m public var id: [4;39mFSEventStreamEventId[0;0m { eventID }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m22 |[0;0m
[0;36m23 |[0;0m /// The unique event identifier assigned by Core Services.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:24:22: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m22 |[0;0m
[0;36m23 |[0;0m /// The unique event identifier assigned by Core Services.
[0;36m24 |[0;0m public let eventID: [4;39mFSEventStreamEventId[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m25 |[0;0m
[0;36m26 |[0;0m /// The file system path where the change occurred.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift:70:12: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m68 |[0;0m /// - condition: Conditions reported by the stream itself (default: none)
[0;36m69 |[0;0m public init(
[0;36m70 |[0;0m eventID: [4;39mFSEventStreamEventId[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m71 |[0;0m eventPath: String,
[0;36m72 |[0;0m change: Change,
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:64:22: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m62 |[0;0m /// Interval (in seconds) that the system should wait before reporting events,
[0;36m63 |[0;0m /// allowing multiple related events to be coalesced. A value of `0.0` means no delay.
[0;36m64 |[0;0m public let latency: [4;39mCFTimeInterval[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m65 |[0;0m
[0;36m66 |[0;0m /// The FSEventStreamEventId to start from.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:70:24: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m68 |[0;0m /// This determines which events should be reported. Use `kFSEventStreamEventIdSinceNow`
[0;36m69 |[0;0m /// to only receive events that occur after monitoring starts.
[0;36m70 |[0;0m public let sinceWhen: [4;39mFSEventStreamEventId[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m71 |[0;0m
[0;36m72 |[0;0m /// Create a new monitor for the specified paths.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:80:14: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m78 |[0;0m public init(
[0;36m79 |[0;0m paths: [String],
[0;36m80 |[0;0m sinceWhen: [4;39mFSEventStreamEventId[0;0m = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m81 |[0;0m latency: CFTimeInterval = 0
[0;36m82 |[0;0m ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:81:12: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m79 |[0;0m paths: [String],
[0;36m80 |[0;0m sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m81 |[0;0m latency: [4;39mCFTimeInterval[0;0m = 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m82 |[0;0m ) {
[0;36m83 |[0;0m self.paths = paths
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:96:14: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m94 |[0;0m public convenience init(
[0;36m95 |[0;0m url: URL,
[0;36m96 |[0;0m sinceWhen: [4;39mFSEventStreamEventId[0;0m = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m97 |[0;0m latency: CFTimeInterval = 0
[0;36m98 |[0;0m ) {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:97:12: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m95 |[0;0m url: URL,
[0;36m96 |[0;0m sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m97 |[0;0m latency: [4;39mCFTimeInterval[0;0m = 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m98 |[0;0m ) {
[0;36m99 |[0;0m precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:220:14: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m218 |[0;0m public static func makeStream(
[0;36m219 |[0;0m url: URL,
[0;36m220 |[0;0m sinceWhen: [4;39mFSEventStreamEventId[0;0m = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m221 |[0;0m latency: CFTimeInterval = 0
[0;36m222 |[0;0m ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:221:12: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m219 |[0;0m url: URL,
[0;36m220 |[0;0m sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m221 |[0;0m latency: [4;39mCFTimeInterval[0;0m = 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m222 |[0;0m ) -> AsyncStream<FolderContentChangeEvent> {
[0;36m223 |[0;0m precondition(url.isFileURL)
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:240:14: [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m238 |[0;0m public static func makeStream(
[0;36m239 |[0;0m paths: [String],
[0;36m240 |[0;0m sinceWhen: [4;39mFSEventStreamEventId[0;0m = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventId' in scope[0;0m
[0;36m241 |[0;0m latency: CFTimeInterval = 0
[0;36m242 |[0;0m ) -> AsyncStream<FolderContentChangeEvent> {
/host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift:241:12: [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m239 |[0;0m paths: [String],
[0;36m240 |[0;0m sinceWhen: FSEventStreamEventId = FSEventStreamEventId(kFSEventStreamEventIdSinceNow),
[0;36m241 |[0;0m latency: [4;39mCFTimeInterval[0;0m = 0
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'CFTimeInterval' in scope[0;0m
[0;36m242 |[0;0m ) -> AsyncStream<FolderContentChangeEvent> {
[0;36m243 |[0;0m AsyncStream { continuation in
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:33:26: [1;31merror: [1;39mcannot find type 'FSEventStreamEventFlags' in scope[0;0m
[0;36m31 |[0;0m
[0;36m32 |[0;0m /// Extracts the stream conditions from Core Services event flags, discarding item flags.
[0;36m33 |[0;0m public init(eventFlags: [4;39mFSEventStreamEventFlags[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FSEventStreamEventFlags' in scope[0;0m
[0;36m34 |[0;0m self.rawValue = Int(eventFlags) & StreamCondition.flagsMask
[0;36m35 |[0;0m }
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:51:71: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope[0;0m
[0;36m49 |[0;0m /// This is the sole actionable condition in this group: ``userDropped`` and
[0;36m50 |[0;0m /// ``kernelDropped`` only say where the bottleneck was.
[0;36m51 |[0;0m public static let mustScanSubDirectories = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagMustScanSubDirs[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed on the client side.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:56:60: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagUserDropped' in scope[0;0m
[0;36m54 |[0;0m ///
[0;36m55 |[0;0m /// Per the Core Services headers, the likelier of the two.
[0;36m56 |[0;0m public static let userDropped = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagUserDropped[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagUserDropped' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:59:62: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagKernelDropped' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m /// Diagnostic accompanying ``mustScanSubDirectories``: buffering failed in the kernel.
[0;36m59 |[0;0m public static let kernelDropped = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagKernelDropped[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagKernelDropped' in scope[0;0m
[0;36m60 |[0;0m
[0;36m61 |[0;0m // MARK: - Invalidated state
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:67:64: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope[0;0m
[0;36m65 |[0;0m /// Previously issued event IDs are no longer valid values for `sinceWhen`. Callers that
[0;36m66 |[0;0m /// persist an event ID as a resume point must discard it.
[0;36m67 |[0;0m public static let eventIDsWrapped = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagEventIdsWrapped[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m /// A directory along the path to a monitored path changed; the monitored path may no longer exist.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:75:60: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagRootChanged' in scope[0;0m
[0;36m73 |[0;0m /// - Note: Only ever delivered when the stream was created with
[0;36m74 |[0;0m /// `kFSEventStreamCreateFlagWatchRoot`, which this library does not currently pass.
[0;36m75 |[0;0m public static let rootChanged = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagRootChanged[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagRootChanged' in scope[0;0m
[0;36m76 |[0;0m
[0;36m77 |[0;0m /// A volume was mounted underneath a monitored path; `eventPath` is the mount point.
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:81:56: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagMount' in scope[0;0m
[0;36m79 |[0;0m /// - Warning: The new volume may contain an arbitrarily large hierarchy, and may not be
[0;36m80 |[0;0m /// local. Do not scan it unconditionally.
[0;36m81 |[0;0m public static let mounted = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagMount[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagMount' in scope[0;0m
[0;36m82 |[0;0m
[0;36m83 |[0;0m /// A volume was unmounted underneath a monitored path; `eventPath` is the directory it was
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:87:58: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagUnmount' in scope[0;0m
[0;36m85 |[0;0m ///
[0;36m86 |[0;0m /// Delivered after the unmount has already happened.
[0;36m87 |[0;0m public static let unmounted = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagUnmount[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagUnmount' in scope[0;0m
[0;36m88 |[0;0m
[0;36m89 |[0;0m // MARK: - Sentinel
/host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift:95:60: [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagHistoryDone' in scope[0;0m
[0;36m93 |[0;0m ///
[0;36m94 |[0;0m /// - Important: `eventPath` is meaningless on this event and must be ignored.
[0;36m95 |[0;0m public static let historyDone = StreamCondition(rawValue: [4;39mkFSEventStreamEventFlagHistoryDone[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'kFSEventStreamEventFlagHistoryDone' in scope[0;0m
[0;36m96 |[0;0m }
[0;36m97 |[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AsyncFileMonitor/Change.swift /host/spi-builder-workspace/Sources/AsyncFileMonitor/FileSystemEventStream.swift /host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentChangeEvent.swift /host/spi-builder-workspace/Sources/AsyncFileMonitor/FolderContentMonitor.swift /host/spi-builder-workspace/Sources/AsyncFileMonitor/MulticastAsyncStream.swift /host/spi-builder-workspace/Sources/AsyncFileMonitor/StreamCondition.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AsyncFileMonitor -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/AsyncFileMonitor_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/Modules/AsyncFileMonitor.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/Modules/AsyncFileMonitor.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/AsyncFileMonitor-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/AsyncFileMonitor-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/AsyncFileMonitor-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/AsyncFileMonitor.build/Debug-webassembly-wasm32/AsyncFileMonitor-t.build/Objects-normal/wasm32/Modules/AsyncFileMonitor.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm