The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Witness with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/njdehoog/witness.git
Reference: master
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/njdehoog/witness
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b046945 Merge pull request #8 from perlmunger/master
Cloned https://github.com/njdehoog/witness.git
Revision (git rev-parse @):
b0469457b460fc78620e3b456fed9b18669100d5
SUCCESS checkout https://github.com/njdehoog/witness.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/njdehoog/witness.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling Witness Witness.swift
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module Witness
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:24:25: error: cannot find type 'FSEventStreamRef' in scope
    private var stream: FSEventStreamRef!
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:89:59: error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
    public static let UseCFTypes = EventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:90:56: error: cannot find 'kFSEventStreamCreateFlagNoDefer' in scope
    public static let NoDefer = EventStreamCreateFlags(kFSEventStreamCreateFlagNoDefer)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:91:58: error: cannot find 'kFSEventStreamCreateFlagWatchRoot' in scope
    public static let WatchRoot = EventStreamCreateFlags(kFSEventStreamCreateFlagWatchRoot)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:92:59: error: cannot find 'kFSEventStreamCreateFlagIgnoreSelf' in scope
    public static let IgnoreSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagIgnoreSelf)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:93:59: error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
    public static let FileEvents = EventStreamCreateFlags(kFSEventStreamCreateFlagFileEvents)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:94:57: error: cannot find 'kFSEventStreamCreateFlagMarkSelf' in scope
    public static let MarkSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagMarkSelf)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'SetAlgebra'
public struct EventStreamCreateFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'RawRepresentable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'Equatable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'EventStreamCreateFlags' to 'Equatable'
    public let rawValue: FSEventStreamCreateFlags
               ^
Swift.==:1:24: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(EventStreamCreateFlags, EventStreamCreateFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:21:45: error: cannot find 'kFSEventStreamEventFlagNone' in scope
    public static let None = FileEventFlags(kFSEventStreamEventFlagNone)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:23:56: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
    public static let MustScanSubDirs = FileEventFlags(kFSEventStreamEventFlagMustScanSubDirs)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:25:52: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
    public static let UserDropped = FileEventFlags(kFSEventStreamEventFlagUserDropped)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:26:54: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
    public static let KernelDropped = FileEventFlags(kFSEventStreamEventFlagKernelDropped)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:28:56: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
    public static let EventIdsWrapped = FileEventFlags(kFSEventStreamEventFlagEventIdsWrapped)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:30:52: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
    public static let HistoryDone = FileEventFlags(kFSEventStreamEventFlagHistoryDone)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:32:52: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
    public static let RootChanged = FileEventFlags(kFSEventStreamEventFlagRootChanged)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:34:46: error: cannot find 'kFSEventStreamEventFlagMount' in scope
    public static let Mount = FileEventFlags(kFSEventStreamEventFlagMount)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:35:48: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
    public static let Unmount = FileEventFlags(kFSEventStreamEventFlagUnmount)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:37:52: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
    public static let ItemCreated = FileEventFlags(kFSEventStreamEventFlagItemCreated)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:38:52: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
    public static let ItemRemoved = FileEventFlags(kFSEventStreamEventFlagItemRemoved)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:39:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
    public static let ItemInodeMetaMod = FileEventFlags(kFSEventStreamEventFlagItemInodeMetaMod)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:40:52: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
    public static let ItemRenamed = FileEventFlags(kFSEventStreamEventFlagItemRenamed)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:41:53: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
    public static let ItemModified = FileEventFlags(kFSEventStreamEventFlagItemModified)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:42:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
    public static let ItemFinderInfoMod = FileEventFlags(kFSEventStreamEventFlagItemFinderInfoMod)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:43:56: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
    public static let ItemChangeOwner = FileEventFlags(kFSEventStreamEventFlagItemChangeOwner)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:44:53: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
    public static let ItemXattrMod = FileEventFlags(kFSEventStreamEventFlagItemXattrMod)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:45:51: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
    public static let ItemIsFile = FileEventFlags(kFSEventStreamEventFlagItemIsFile)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:46:50: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
    public static let ItemIsDir = FileEventFlags(kFSEventStreamEventFlagItemIsDir)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
    public static let ItemIsSymlink = FileEventFlags(kFSEventStreamEventFlagItemIsSymlink)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:48:55: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
    public static let ItemIsHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsHardlink)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:49:59: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
    public static let ItemIsLastHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsLastHardlink)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:51:49: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
    public static let OwnEvent = FileEventFlags(kFSEventStreamEventFlagOwnEvent)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'SetAlgebra'
public struct FileEventFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'RawRepresentable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'Equatable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FileEventFlags' to 'Equatable'
    public let rawValue: FSEventStreamEventFlags
               ^
Swift.==:1:24: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'FileEventFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'FileEventFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'FileEventFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'FileEventFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'FileEventFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'FileEventFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(FileEventFlags, FileEventFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
[5/6] Compiling Witness FileEvent.swift
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:21:45: error: cannot find 'kFSEventStreamEventFlagNone' in scope
    public static let None = FileEventFlags(kFSEventStreamEventFlagNone)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:23:56: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
    public static let MustScanSubDirs = FileEventFlags(kFSEventStreamEventFlagMustScanSubDirs)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:25:52: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
    public static let UserDropped = FileEventFlags(kFSEventStreamEventFlagUserDropped)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:26:54: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
    public static let KernelDropped = FileEventFlags(kFSEventStreamEventFlagKernelDropped)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:28:56: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
    public static let EventIdsWrapped = FileEventFlags(kFSEventStreamEventFlagEventIdsWrapped)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:30:52: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
    public static let HistoryDone = FileEventFlags(kFSEventStreamEventFlagHistoryDone)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:32:52: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
    public static let RootChanged = FileEventFlags(kFSEventStreamEventFlagRootChanged)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:34:46: error: cannot find 'kFSEventStreamEventFlagMount' in scope
    public static let Mount = FileEventFlags(kFSEventStreamEventFlagMount)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:35:48: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
    public static let Unmount = FileEventFlags(kFSEventStreamEventFlagUnmount)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:37:52: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
    public static let ItemCreated = FileEventFlags(kFSEventStreamEventFlagItemCreated)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:38:52: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
    public static let ItemRemoved = FileEventFlags(kFSEventStreamEventFlagItemRemoved)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:39:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
    public static let ItemInodeMetaMod = FileEventFlags(kFSEventStreamEventFlagItemInodeMetaMod)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:40:52: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
    public static let ItemRenamed = FileEventFlags(kFSEventStreamEventFlagItemRenamed)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:41:53: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
    public static let ItemModified = FileEventFlags(kFSEventStreamEventFlagItemModified)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:42:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
    public static let ItemFinderInfoMod = FileEventFlags(kFSEventStreamEventFlagItemFinderInfoMod)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:43:56: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
    public static let ItemChangeOwner = FileEventFlags(kFSEventStreamEventFlagItemChangeOwner)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:44:53: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
    public static let ItemXattrMod = FileEventFlags(kFSEventStreamEventFlagItemXattrMod)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:45:51: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
    public static let ItemIsFile = FileEventFlags(kFSEventStreamEventFlagItemIsFile)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:46:50: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
    public static let ItemIsDir = FileEventFlags(kFSEventStreamEventFlagItemIsDir)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
    public static let ItemIsSymlink = FileEventFlags(kFSEventStreamEventFlagItemIsSymlink)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:48:55: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
    public static let ItemIsHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsHardlink)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:49:59: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
    public static let ItemIsLastHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsLastHardlink)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:51:49: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
    public static let OwnEvent = FileEventFlags(kFSEventStreamEventFlagOwnEvent)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'SetAlgebra'
public struct FileEventFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'RawRepresentable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'Equatable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FileEventFlags' to 'Equatable'
    public let rawValue: FSEventStreamEventFlags
               ^
Swift.==:1:24: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'FileEventFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'FileEventFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'FileEventFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'FileEventFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'FileEventFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'FileEventFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(FileEventFlags, FileEventFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:19:42: error: cannot find 'FSEventStreamEventFlags' in scope
    init(_ value: Int) { self.rawValue = FSEventStreamEventFlags(value) }
                                         ^~~~~~~~~~~~~~~~~~~~~~~
[6/6] Compiling Witness EventStream.swift
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:24:25: error: cannot find type 'FSEventStreamRef' in scope
    private var stream: FSEventStreamRef!
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:89:59: error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
    public static let UseCFTypes = EventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:90:56: error: cannot find 'kFSEventStreamCreateFlagNoDefer' in scope
    public static let NoDefer = EventStreamCreateFlags(kFSEventStreamCreateFlagNoDefer)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:91:58: error: cannot find 'kFSEventStreamCreateFlagWatchRoot' in scope
    public static let WatchRoot = EventStreamCreateFlags(kFSEventStreamCreateFlagWatchRoot)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:92:59: error: cannot find 'kFSEventStreamCreateFlagIgnoreSelf' in scope
    public static let IgnoreSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagIgnoreSelf)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:93:59: error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
    public static let FileEvents = EventStreamCreateFlags(kFSEventStreamCreateFlagFileEvents)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:94:57: error: cannot find 'kFSEventStreamCreateFlagMarkSelf' in scope
    public static let MarkSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagMarkSelf)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'SetAlgebra'
public struct EventStreamCreateFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'RawRepresentable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'Equatable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'EventStreamCreateFlags' to 'Equatable'
    public let rawValue: FSEventStreamCreateFlags
               ^
Swift.==:1:24: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(EventStreamCreateFlags, EventStreamCreateFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:31: error: cannot find type 'ConstFSEventStreamRef' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:179: error: cannot find type 'FSEventStreamEventFlags' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                                                                                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:229: error: cannot find type 'FSEventStreamEventId' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                                                                                                                                                                                                                                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:38:87: error: extraneous argument label 'rawValue:' in call
                let event = FileEvent(path: paths[i] as! String, flags: FileEventFlags(rawValue: eventFlags[i]))
                                                                                      ^~~~~~~~~~~

/host/spi-builder-workspace/Sources/Witness/EventStream.swift:45:23: error: cannot find 'FSEventStreamContext' in scope
        var context = FSEventStreamContext()
                      ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:22: error: cannot find 'FSEventStreamCreate' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                     ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:85: error: cannot find 'FSEventStreamEventId' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:106: error: cannot find 'kFSEventStreamEventIdSinceNow' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:76: error: cannot find type 'CFArray' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                           ^~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:42: error: 'nil' requires a contextual type
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                         ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:22: error: cannot find 'FSEventStreamCreateRelativeToDevice' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:116: error: cannot find 'FSEventStreamEventId' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:137: error: cannot find 'kFSEventStreamEventIdSinceNow' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:107: error: cannot find type 'CFArray' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                          ^~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:58: error: 'nil' requires a contextual type
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                         ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:9: error: cannot find 'FSEventStreamScheduleWithRunLoop' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:50: error: cannot find 'CFRunLoopGetCurrent' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
                                                 ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:73: error: cannot find 'CFRunLoopMode' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
                                                                        ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:58:9: error: cannot find 'FSEventStreamStart' in scope
        FSEventStreamStart(stream)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:62:9: error: cannot find 'FSEventStreamFlushSync' in scope
        FSEventStreamFlushSync(stream)
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:66:9: error: cannot find 'FSEventStreamFlushAsync' in scope
        FSEventStreamFlushAsync(stream)
        ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:71:9: error: cannot find 'FSEventStreamStop' in scope
        FSEventStreamStop(stream)
        ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:74:9: error: cannot find 'FSEventStreamInvalidate' in scope
        FSEventStreamInvalidate(stream)
        ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:77:9: error: cannot find 'FSEventStreamRelease' in scope
        FSEventStreamRelease(stream)
        ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:84:42: error: cannot find 'FSEventStreamCreateFlags' in scope
    init(_ value: Int) { self.rawValue = FSEventStreamCreateFlags(value) }
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling Witness Witness.swift
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module Witness
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:24:25: error: cannot find type 'FSEventStreamRef' in scope
    private var stream: FSEventStreamRef!
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:89:59: error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
    public static let UseCFTypes = EventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:90:56: error: cannot find 'kFSEventStreamCreateFlagNoDefer' in scope
    public static let NoDefer = EventStreamCreateFlags(kFSEventStreamCreateFlagNoDefer)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:91:58: error: cannot find 'kFSEventStreamCreateFlagWatchRoot' in scope
    public static let WatchRoot = EventStreamCreateFlags(kFSEventStreamCreateFlagWatchRoot)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:92:59: error: cannot find 'kFSEventStreamCreateFlagIgnoreSelf' in scope
    public static let IgnoreSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagIgnoreSelf)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:93:59: error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
    public static let FileEvents = EventStreamCreateFlags(kFSEventStreamCreateFlagFileEvents)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:94:57: error: cannot find 'kFSEventStreamCreateFlagMarkSelf' in scope
    public static let MarkSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagMarkSelf)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'SetAlgebra'
public struct EventStreamCreateFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'RawRepresentable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'Equatable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'EventStreamCreateFlags' to 'Equatable'
    public let rawValue: FSEventStreamCreateFlags
               ^
Swift.==:1:24: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(EventStreamCreateFlags, EventStreamCreateFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:21:45: error: cannot find 'kFSEventStreamEventFlagNone' in scope
    public static let None = FileEventFlags(kFSEventStreamEventFlagNone)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:23:56: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
    public static let MustScanSubDirs = FileEventFlags(kFSEventStreamEventFlagMustScanSubDirs)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:25:52: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
    public static let UserDropped = FileEventFlags(kFSEventStreamEventFlagUserDropped)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:26:54: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
    public static let KernelDropped = FileEventFlags(kFSEventStreamEventFlagKernelDropped)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:28:56: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
    public static let EventIdsWrapped = FileEventFlags(kFSEventStreamEventFlagEventIdsWrapped)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:30:52: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
    public static let HistoryDone = FileEventFlags(kFSEventStreamEventFlagHistoryDone)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:32:52: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
    public static let RootChanged = FileEventFlags(kFSEventStreamEventFlagRootChanged)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:34:46: error: cannot find 'kFSEventStreamEventFlagMount' in scope
    public static let Mount = FileEventFlags(kFSEventStreamEventFlagMount)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:35:48: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
    public static let Unmount = FileEventFlags(kFSEventStreamEventFlagUnmount)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:37:52: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
    public static let ItemCreated = FileEventFlags(kFSEventStreamEventFlagItemCreated)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:38:52: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
    public static let ItemRemoved = FileEventFlags(kFSEventStreamEventFlagItemRemoved)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:39:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
    public static let ItemInodeMetaMod = FileEventFlags(kFSEventStreamEventFlagItemInodeMetaMod)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:40:52: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
    public static let ItemRenamed = FileEventFlags(kFSEventStreamEventFlagItemRenamed)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:41:53: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
    public static let ItemModified = FileEventFlags(kFSEventStreamEventFlagItemModified)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:42:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
    public static let ItemFinderInfoMod = FileEventFlags(kFSEventStreamEventFlagItemFinderInfoMod)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:43:56: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
    public static let ItemChangeOwner = FileEventFlags(kFSEventStreamEventFlagItemChangeOwner)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:44:53: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
    public static let ItemXattrMod = FileEventFlags(kFSEventStreamEventFlagItemXattrMod)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:45:51: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
    public static let ItemIsFile = FileEventFlags(kFSEventStreamEventFlagItemIsFile)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:46:50: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
    public static let ItemIsDir = FileEventFlags(kFSEventStreamEventFlagItemIsDir)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
    public static let ItemIsSymlink = FileEventFlags(kFSEventStreamEventFlagItemIsSymlink)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:48:55: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
    public static let ItemIsHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsHardlink)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:49:59: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
    public static let ItemIsLastHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsLastHardlink)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:51:49: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
    public static let OwnEvent = FileEventFlags(kFSEventStreamEventFlagOwnEvent)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'SetAlgebra'
public struct FileEventFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'RawRepresentable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'Equatable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FileEventFlags' to 'Equatable'
    public let rawValue: FSEventStreamEventFlags
               ^
Swift.==:1:24: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'FileEventFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'FileEventFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'FileEventFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'FileEventFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'FileEventFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'FileEventFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(FileEventFlags, FileEventFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
[4/5] Compiling Witness EventStream.swift
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:24:25: error: cannot find type 'FSEventStreamRef' in scope
    private var stream: FSEventStreamRef!
                        ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:26: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public let rawValue: FSEventStreamCreateFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:83:27: error: cannot find type 'FSEventStreamCreateFlags' in scope
    public init(rawValue: FSEventStreamCreateFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:86:53: error: cannot find 'kFSEventStreamCreateFlagNone' in scope
    public static let None = EventStreamCreateFlags(kFSEventStreamCreateFlagNone)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:89:59: error: cannot find 'kFSEventStreamCreateFlagUseCFTypes' in scope
    public static let UseCFTypes = EventStreamCreateFlags(kFSEventStreamCreateFlagUseCFTypes)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:90:56: error: cannot find 'kFSEventStreamCreateFlagNoDefer' in scope
    public static let NoDefer = EventStreamCreateFlags(kFSEventStreamCreateFlagNoDefer)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:91:58: error: cannot find 'kFSEventStreamCreateFlagWatchRoot' in scope
    public static let WatchRoot = EventStreamCreateFlags(kFSEventStreamCreateFlagWatchRoot)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:92:59: error: cannot find 'kFSEventStreamCreateFlagIgnoreSelf' in scope
    public static let IgnoreSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagIgnoreSelf)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:93:59: error: cannot find 'kFSEventStreamCreateFlagFileEvents' in scope
    public static let FileEvents = EventStreamCreateFlags(kFSEventStreamCreateFlagFileEvents)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:94:57: error: cannot find 'kFSEventStreamCreateFlagMarkSelf' in scope
    public static let MarkSelf = EventStreamCreateFlags(kFSEventStreamCreateFlagMarkSelf)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'SetAlgebra'
public struct EventStreamCreateFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'RawRepresentable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:81:15: error: type 'EventStreamCreateFlags' does not conform to protocol 'Equatable'
public struct EventStreamCreateFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:82:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'EventStreamCreateFlags' to 'Equatable'
    public let rawValue: FSEventStreamCreateFlags
               ^
Swift.==:1:24: note: candidate would match if 'EventStreamCreateFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'EventStreamCreateFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'EventStreamCreateFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'EventStreamCreateFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(EventStreamCreateFlags, EventStreamCreateFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:31: error: cannot find type 'ConstFSEventStreamRef' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                              ^~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:179: error: cannot find type 'FSEventStreamEventFlags' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                                                                                                                                                                                  ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:31:229: error: cannot find type 'FSEventStreamEventId' in scope
        func callBack(stream: ConstFSEventStreamRef, clientCallbackInfo: UnsafeMutableRawPointer?, numEvents: Int, eventPaths: UnsafeMutableRawPointer, eventFlags: UnsafePointer<FSEventStreamEventFlags>, eventIDs: UnsafePointer<FSEventStreamEventId>) {
                                                                                                                                                                                                                                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:38:87: error: extraneous argument label 'rawValue:' in call
                let event = FileEvent(path: paths[i] as! String, flags: FileEventFlags(rawValue: eventFlags[i]))
                                                                                      ^~~~~~~~~~~

/host/spi-builder-workspace/Sources/Witness/EventStream.swift:45:23: error: cannot find 'FSEventStreamContext' in scope
        var context = FSEventStreamContext()
                      ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:22: error: cannot find 'FSEventStreamCreate' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                     ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:85: error: cannot find 'FSEventStreamEventId' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                    ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:106: error: cannot find 'kFSEventStreamEventIdSinceNow' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:76: error: cannot find type 'CFArray' in scope
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                           ^~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:52:42: error: 'nil' requires a contextual type
            stream = FSEventStreamCreate(nil, callBack, &context, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                         ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:22: error: cannot find 'FSEventStreamCreateRelativeToDevice' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:116: error: cannot find 'FSEventStreamEventId' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                                   ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:137: error: cannot find 'kFSEventStreamEventIdSinceNow' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:107: error: cannot find type 'CFArray' in scope
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                                                                          ^~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:54:58: error: 'nil' requires a contextual type
            stream = FSEventStreamCreateRelativeToDevice(nil, callBack, &context, deviceToWatch, paths as CFArray, FSEventStreamEventId(kFSEventStreamEventIdSinceNow), latency, combinedFlags.rawValue)
                                                         ^
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:9: error: cannot find 'FSEventStreamScheduleWithRunLoop' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:50: error: cannot find 'CFRunLoopGetCurrent' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
                                                 ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:57:73: error: cannot find 'CFRunLoopMode' in scope
        FSEventStreamScheduleWithRunLoop(stream, CFRunLoopGetCurrent(), CFRunLoopMode.defaultMode.rawValue)
                                                                        ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:58:9: error: cannot find 'FSEventStreamStart' in scope
        FSEventStreamStart(stream)
        ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:62:9: error: cannot find 'FSEventStreamFlushSync' in scope
        FSEventStreamFlushSync(stream)
        ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:66:9: error: cannot find 'FSEventStreamFlushAsync' in scope
        FSEventStreamFlushAsync(stream)
        ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:71:9: error: cannot find 'FSEventStreamStop' in scope
        FSEventStreamStop(stream)
        ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:74:9: error: cannot find 'FSEventStreamInvalidate' in scope
        FSEventStreamInvalidate(stream)
        ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:77:9: error: cannot find 'FSEventStreamRelease' in scope
        FSEventStreamRelease(stream)
        ^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/EventStream.swift:84:42: error: cannot find 'FSEventStreamCreateFlags' in scope
    init(_ value: Int) { self.rawValue = FSEventStreamCreateFlags(value) }
                                         ^~~~~~~~~~~~~~~~~~~~~~~~
[5/5] Compiling Witness FileEvent.swift
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:26: error: cannot find type 'FSEventStreamEventFlags' in scope
    public let rawValue: FSEventStreamEventFlags
                         ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:18:27: error: cannot find type 'FSEventStreamEventFlags' in scope
    public init(rawValue: FSEventStreamEventFlags) { self.rawValue = rawValue }
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:21:45: error: cannot find 'kFSEventStreamEventFlagNone' in scope
    public static let None = FileEventFlags(kFSEventStreamEventFlagNone)
                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:23:56: error: cannot find 'kFSEventStreamEventFlagMustScanSubDirs' in scope
    public static let MustScanSubDirs = FileEventFlags(kFSEventStreamEventFlagMustScanSubDirs)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:25:52: error: cannot find 'kFSEventStreamEventFlagUserDropped' in scope
    public static let UserDropped = FileEventFlags(kFSEventStreamEventFlagUserDropped)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:26:54: error: cannot find 'kFSEventStreamEventFlagKernelDropped' in scope
    public static let KernelDropped = FileEventFlags(kFSEventStreamEventFlagKernelDropped)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:28:56: error: cannot find 'kFSEventStreamEventFlagEventIdsWrapped' in scope
    public static let EventIdsWrapped = FileEventFlags(kFSEventStreamEventFlagEventIdsWrapped)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:30:52: error: cannot find 'kFSEventStreamEventFlagHistoryDone' in scope
    public static let HistoryDone = FileEventFlags(kFSEventStreamEventFlagHistoryDone)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:32:52: error: cannot find 'kFSEventStreamEventFlagRootChanged' in scope
    public static let RootChanged = FileEventFlags(kFSEventStreamEventFlagRootChanged)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:34:46: error: cannot find 'kFSEventStreamEventFlagMount' in scope
    public static let Mount = FileEventFlags(kFSEventStreamEventFlagMount)
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:35:48: error: cannot find 'kFSEventStreamEventFlagUnmount' in scope
    public static let Unmount = FileEventFlags(kFSEventStreamEventFlagUnmount)
                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:37:52: error: cannot find 'kFSEventStreamEventFlagItemCreated' in scope
    public static let ItemCreated = FileEventFlags(kFSEventStreamEventFlagItemCreated)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:38:52: error: cannot find 'kFSEventStreamEventFlagItemRemoved' in scope
    public static let ItemRemoved = FileEventFlags(kFSEventStreamEventFlagItemRemoved)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:39:57: error: cannot find 'kFSEventStreamEventFlagItemInodeMetaMod' in scope
    public static let ItemInodeMetaMod = FileEventFlags(kFSEventStreamEventFlagItemInodeMetaMod)
                                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:40:52: error: cannot find 'kFSEventStreamEventFlagItemRenamed' in scope
    public static let ItemRenamed = FileEventFlags(kFSEventStreamEventFlagItemRenamed)
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:41:53: error: cannot find 'kFSEventStreamEventFlagItemModified' in scope
    public static let ItemModified = FileEventFlags(kFSEventStreamEventFlagItemModified)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:42:58: error: cannot find 'kFSEventStreamEventFlagItemFinderInfoMod' in scope
    public static let ItemFinderInfoMod = FileEventFlags(kFSEventStreamEventFlagItemFinderInfoMod)
                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:43:56: error: cannot find 'kFSEventStreamEventFlagItemChangeOwner' in scope
    public static let ItemChangeOwner = FileEventFlags(kFSEventStreamEventFlagItemChangeOwner)
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:44:53: error: cannot find 'kFSEventStreamEventFlagItemXattrMod' in scope
    public static let ItemXattrMod = FileEventFlags(kFSEventStreamEventFlagItemXattrMod)
                                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:45:51: error: cannot find 'kFSEventStreamEventFlagItemIsFile' in scope
    public static let ItemIsFile = FileEventFlags(kFSEventStreamEventFlagItemIsFile)
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:46:50: error: cannot find 'kFSEventStreamEventFlagItemIsDir' in scope
    public static let ItemIsDir = FileEventFlags(kFSEventStreamEventFlagItemIsDir)
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:47:54: error: cannot find 'kFSEventStreamEventFlagItemIsSymlink' in scope
    public static let ItemIsSymlink = FileEventFlags(kFSEventStreamEventFlagItemIsSymlink)
                                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:48:55: error: cannot find 'kFSEventStreamEventFlagItemIsHardlink' in scope
    public static let ItemIsHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsHardlink)
                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:49:59: error: cannot find 'kFSEventStreamEventFlagItemIsLastHardlink' in scope
    public static let ItemIsLastHardLink = FileEventFlags(kFSEventStreamEventFlagItemIsLastHardlink)
                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:51:49: error: cannot find 'kFSEventStreamEventFlagOwnEvent' in scope
    public static let OwnEvent = FileEventFlags(kFSEventStreamEventFlagOwnEvent)
                                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'SetAlgebra'
public struct FileEventFlags: OptionSet {
              ^
Swift.OptionSet:2:23: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'FixedWidthInteger'
    @inlinable public init()
                      ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'RawRepresentable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:16:15: error: type 'FileEventFlags' does not conform to protocol 'Equatable'
public struct FileEventFlags: OptionSet {
              ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:17:16: note: stored property type '<<error type>>' does not conform to protocol 'Equatable', preventing synthesized conformance of 'FileEventFlags' to 'Equatable'
    public let rawValue: FSEventStreamEventFlags
               ^
Swift.==:1:24: note: candidate would match if 'FileEventFlags.RawValue' conformed to 'Equatable'
@inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
                       ^
Swift.FloatingPoint:2:24: note: candidate would match if 'FileEventFlags' conformed to 'FloatingPoint'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.BinaryInteger:2:24: note: candidate would match if 'FileEventFlags' conformed to 'BinaryInteger'
    public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger
                       ^
Swift._Pointer:2:24: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift._Pointer:3:35: note: candidate would match if 'FileEventFlags' conformed to '_Pointer'
    @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer
                                  ^
Swift.Strideable:3:35: note: candidate would match if 'FileEventFlags' conformed to 'Strideable'
    @inlinable public static func == (x: Self, y: Self) -> Bool
                                  ^
Swift.StringProtocol:2:35: note: candidate would match if 'FileEventFlags' conformed to 'StringProtocol'
    @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol
                                  ^
Swift.SIMD:4:24: note: candidate would match if 'FileEventFlags' conformed to 'SIMD'
    public static func == (a: Self, b: Self) -> Bool
                       ^
Foundation.AttributedStringProtocol:5:24: note: candidate would match if 'FileEventFlags' conformed to 'AttributedStringProtocol'
    public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol
                       ^
Foundation.__BridgedNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '__BridgedNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Foundation._BridgedStoredNSError:2:24: note: candidate would match if 'FileEventFlags' conformed to '_BridgedStoredNSError'
    public static func == (lhs: Self, rhs: Self) -> Bool
                       ^
Swift.SetAlgebra:3:5: note: protocol requires initializer 'init()' with type '()'
    init()
    ^
Swift.RawRepresentable:2:20: note: protocol requires nested type 'RawValue'; add nested type 'RawValue' for conformance
    associatedtype RawValue
                   ^
Swift.Equatable:2:17: note: protocol requires function '==' with type '(FileEventFlags, FileEventFlags) -> Bool'
    static func == (lhs: Self, rhs: Self) -> Bool
                ^
/host/spi-builder-workspace/Sources/Witness/FileEvent.swift:19:42: error: cannot find 'FSEventStreamEventFlags' in scope
    init(_ value: Int) { self.rawValue = FSEventStreamEventFlags(value) }
                                         ^~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux