The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-inotify, reference main (254a95), with Swift 6.3 for Android on 28 Apr 2026 12:59:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sersoft-gmbh/swift-inotify.git
Reference: main
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/sersoft-gmbh/swift-inotify
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 254a950 Bump github.com/apple/swift-docc-plugin from 1.4.6 to 1.5.0
Cloned https://github.com/sersoft-gmbh/swift-inotify.git
Revision (git rev-parse @):
254a950d690792a02cb348d0608cd4039fde9290
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sersoft-gmbh/swift-inotify.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/sersoft-gmbh/swift-inotify.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Fetching https://github.com/sersoft-gmbh/swift-filestreamer
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-docc-plugin
[1/2287] Fetching swift-docc-plugin
[207/4320] Fetching swift-docc-plugin, swift-filestreamer
[1166/9921] Fetching swift-docc-plugin, swift-filestreamer, swift-system
Fetched https://github.com/sersoft-gmbh/swift-filestreamer from cache (0.50s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.50s)
Fetched https://github.com/apple/swift-system from cache (0.52s)
Computing version for https://github.com/sersoft-gmbh/swift-filestreamer
Computed https://github.com/sersoft-gmbh/swift-filestreamer at 0.11.2 (0.90s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (3.84s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3678] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.43s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.29s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.49s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/sersoft-gmbh/swift-filestreamer
Working copy of https://github.com/sersoft-gmbh/swift-filestreamer resolved at 0.11.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/7] Write sources
[5/7] Compiling CSystem shims.c
[6/7] Write swift-version--4F562202D5529B1.txt
[8/38] Emitting module SystemPackage
[9/42] Compiling SystemPackage SystemString.swift
[10/42] Compiling SystemPackage Util+StringArray.swift
[11/42] Compiling SystemPackage Util.swift
[12/42] Compiling SystemPackage UtilConsumers.swift
[13/42] Compiling SystemPackage FilePathSyntax.swift
[14/42] Compiling SystemPackage FilePathTemp.swift
[15/42] Compiling SystemPackage FilePathTempPosix.swift
[16/42] Compiling SystemPackage FilePathTempWindows.swift
[17/42] Compiling SystemPackage Errno.swift
[18/42] Compiling SystemPackage ErrnoWindows.swift
[19/42] Compiling SystemPackage FileDescriptor.swift
[20/42] Compiling SystemPackage FileHelpers.swift
[21/42] Compiling SystemPackage FileOperations.swift
[22/42] Compiling SystemPackage FilePath.swift
[23/42] Compiling SystemPackage FilePathComponentView.swift
[24/42] Compiling SystemPackage FilePathComponents.swift
[25/42] Compiling SystemPackage FilePathParsing.swift
[26/42] Compiling SystemPackage FilePathString.swift
[27/42] Compiling SystemPackage IORing.swift
[28/42] Compiling SystemPackage RawIORequest.swift
[29/42] Compiling SystemPackage Backcompat.swift
[30/42] Compiling SystemPackage CInterop.swift
[31/42] Compiling SystemPackage FilePathWindows.swift
[32/42] Compiling SystemPackage FilePermissions.swift
[33/42] Compiling SystemPackage IOCompletion.swift
[34/42] Compiling SystemPackage IORequest.swift
[35/42] Compiling SystemPackage Constants.swift
[36/42] Compiling SystemPackage Exports.swift
[37/42] Compiling SystemPackage Mocking.swift
[38/42] Compiling SystemPackage RawBuffer.swift
[39/42] Compiling SystemPackage Syscalls.swift
[40/42] Compiling SystemPackage WindowsSyscallAdapters.swift
[41/42] Compiling SystemPackage MachPort.swift
[42/42] Compiling SystemPackage PlatformString.swift
[44/46] Compiling FileStreamer AnyAsyncStream.swift
[45/46] Emitting module FileStreamer
[46/46] Compiling FileStreamer FileStream.swift
[48/50] Compiling Inotify InotifyEvent.swift
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:10:8: error: Unknown platform
  8 | import ucrt
  9 | #else
 10 | #error("Unknown platform")
    |        `- error: Unknown platform
 11 | #endif
 12 | fileprivate import Foundation
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:10:8: error: Unknown platform
 8 | import ucrt
 9 | #else
10 | #error("Unknown platform")
   |        `- error: Unknown platform
11 | #endif
12 | public import SystemPackage
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:44:75: error: cannot find 'IN_ACCESS' in scope
42 | extension InotifyEvent.Flags {
43 |     /// File was accessed.
44 |     public static let accessed = InotifyEvent.Flags(rawValue: numericCast(IN_ACCESS))
   |                                                                           `- error: cannot find 'IN_ACCESS' in scope
45 |     /// File was modified.
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:46:75: error: cannot find 'IN_MODIFY' in scope
44 |     public static let accessed = InotifyEvent.Flags(rawValue: numericCast(IN_ACCESS))
45 |     /// File was modified.
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
   |                                                                           `- error: cannot find 'IN_MODIFY' in scope
47 |     /// Metadata changed.
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:48:84: error: cannot find 'IN_ATTRIB' in scope
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
47 |     /// Metadata changed.
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
   |                                                                                    `- error: cannot find 'IN_ATTRIB' in scope
49 |     /// A writeable file was closed.
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:50:85: error: cannot find 'IN_CLOSE_WRITE' in scope
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
49 |     /// A writeable file was closed.
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
   |                                                                                     `- error: cannot find 'IN_CLOSE_WRITE' in scope
51 |     /// A non-writable file was closed.
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:52:88: error: cannot find 'IN_CLOSE_NOWRITE' in scope
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
51 |     /// A non-writable file was closed.
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
   |                                                                                        `- error: cannot find 'IN_CLOSE_NOWRITE' in scope
53 |     /// File was opened.
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:54:73: error: cannot find 'IN_OPEN' in scope
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
53 |     /// File was opened.
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
   |                                                                         `- error: cannot find 'IN_OPEN' in scope
55 |     /// File was moved from X.
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:56:76: error: cannot find 'IN_MOVED_FROM' in scope
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
55 |     /// File was moved from X.
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
   |                                                                            `- error: cannot find 'IN_MOVED_FROM' in scope
57 |     /// File was moved to Y.
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:58:74: error: cannot find 'IN_MOVED_TO' in scope
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
57 |     /// File was moved to Y.
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
   |                                                                          `- error: cannot find 'IN_MOVED_TO' in scope
59 |     /// File was created inside the watched path.
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:60:78: error: cannot find 'IN_CREATE' in scope
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
59 |     /// File was created inside the watched path.
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
   |                                                                              `- error: cannot find 'IN_CREATE' in scope
61 |     /// File was deleted inside the watched path.
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:62:78: error: cannot find 'IN_DELETE' in scope
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
61 |     /// File was deleted inside the watched path.
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
   |                                                                              `- error: cannot find 'IN_DELETE' in scope
63 |     /// The watched path was deleted.
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:64:78: error: cannot find 'IN_DELETE_SELF' in scope
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
63 |     /// The watched path was deleted.
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
   |                                                                              `- error: cannot find 'IN_DELETE_SELF' in scope
65 |     /// The watched path was moved.
66 |     public static let selfMoved = InotifyEvent.Flags(rawValue: numericCast(IN_MOVE_SELF))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:66:76: error: cannot find 'IN_MOVE_SELF' in scope
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
65 |     /// The watched path was moved.
66 |     public static let selfMoved = InotifyEvent.Flags(rawValue: numericCast(IN_MOVE_SELF))
   |                                                                            `- error: cannot find 'IN_MOVE_SELF' in scope
67 |
68 |     /// Event occurred against a directory.
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:69:78: error: cannot find 'IN_ISDIR' in scope
67 |
68 |     /// Event occurred against a directory.
69 |     public static let isDirectory = InotifyEvent.Flags(rawValue: numericCast(IN_ISDIR))
   |                                                                              `- error: cannot find 'IN_ISDIR' in scope
70 | }
71 |
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:23:16: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
21 |
22 |     init(cEvent event: cinotify_event) {
23 |         path = cin_event_name(event).map { FilePath(platformString: $0) }
   |                |                     |   `- note: argument #0 in call to instance method 'map' has unsafe type '(UnsafePointer<CChar>) -> FilePath' (aka '(UnsafePointer<Int8>) -> FilePath')
   |                |                     |- note: reference to instance method 'map' involves unsafe type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
   |                |                     `- note: reference to unsafe type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
   |                |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
   |                |- note: argument 'self' in call to instance method 'map' has unsafe type 'UnsafePointer<CChar>?' (aka 'Optional<UnsafePointer<Int8>>')
   |                `- note: reference to global function 'cin_event_name' involves unsafe type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
24 |         flags = .init(rawValue: event.mask)
25 |     }
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:23:44: warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
21 |
22 |     init(cEvent event: cinotify_event) {
23 |         path = cin_event_name(event).map { FilePath(platformString: $0) }
   |                                            |                        |- note: argument 'platformString' in call to initializer 'init' has unsafe type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
   |                                            |                        `- note: reference to parameter '$0' involves unsafe type 'UnsafePointer<CChar>' (aka 'UnsafePointer<Int8>')
   |                                            |- warning: expression uses unsafe constructs but is not marked with 'unsafe' [#StrictMemorySafety]
   |                                            `- note: reference to initializer 'init(platformString:)' involves unsafe type 'UnsafePointer<CInterop.PlatformChar>' (aka 'UnsafePointer<Int8>')
24 |         flags = .init(rawValue: event.mask)
25 |     }
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:24:39: error: property 'mask' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
12 | public import SystemPackage
13 | internal import CInotify
14 |
   | `- note: add import of module 'posix_filesystem'
15 | /// An event sent by inotify.
16 | public struct InotifyEvent: Equatable, Sendable {
   :
22 |     init(cEvent event: cinotify_event) {
23 |         path = cin_event_name(event).map { FilePath(platformString: $0) }
24 |         flags = .init(rawValue: event.mask)
   |                                       `- error: property 'mask' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
25 |     }
26 | }
[#MemberImportVisibility]: <https://docs.swift.org/compiler/documentation/diagnostics/member-import-visibility>
[#StrictMemorySafety]: <https://docs.swift.org/compiler/documentation/diagnostics/strict-memory-safety>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/50] Compiling Inotify Inotifier.swift
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:10:8: error: Unknown platform
  8 | import ucrt
  9 | #else
 10 | #error("Unknown platform")
    |        `- error: Unknown platform
 11 | #endif
 12 | fileprivate import Foundation
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:10:8: error: Unknown platform
 8 | import ucrt
 9 | #else
10 | #error("Unknown platform")
   |        `- error: Unknown platform
11 | #endif
12 | public import SystemPackage
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:69:29: error: cannot find 'inotify_init1' in scope
 67 |     /// Creates a new instance.
 68 |     public init() throws {
 69 |         guard case let fd = inotify_init1(0), fd != -1 else { throw Errno(rawValue: errno) }
    |                             `- error: cannot find 'inotify_init1' in scope
 70 |         fileDescriptor = .init(rawValue: fd)
 71 |     }
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:69:85: error: cannot find 'errno' in scope
 67 |     /// Creates a new instance.
 68 |     public init() throws {
 69 |         guard case let fd = inotify_init1(0), fd != -1 else { throw Errno(rawValue: errno) }
    |                                                                                     `- error: cannot find 'errno' in scope
 70 |         fileDescriptor = .init(rawValue: fd)
 71 |     }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:91:13: error: cannot find 'inotify_add_watch' in scope
 89 |     public func events(for filePath: FilePath) throws -> PathEvents {
 90 |         let wd = filePath.withCString {
 91 |             inotify_add_watch(fileDescriptor.rawValue, $0, cin_all_events)
    |             `- error: cannot find 'inotify_add_watch' in scope
 92 |         }
 93 |         guard wd != -1 else { throw Errno(rawValue: errno) }
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:93:53: error: cannot find 'errno' in scope
 91 |             inotify_add_watch(fileDescriptor.rawValue, $0, cin_all_events)
 92 |         }
 93 |         guard wd != -1 else { throw Errno(rawValue: errno) }
    |                                                     `- error: cannot find 'errno' in scope
 94 |         if streamTask == nil {
 95 |             startStreaming()
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:153:22: error: cannot find 'inotify_rm_watch' in scope
151 |
152 |     private func removeWatch(forDescriptor wd: CInt, sequenceID: UUID) throws {
153 |         let status = inotify_rm_watch(fileDescriptor.rawValue, wd)
    |                      `- error: cannot find 'inotify_rm_watch' in scope
154 |         guard status != -1 else { throw Errno(rawValue: errno) }
155 |         guard var watchSequences = watches[wd] else { return }
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:154:57: error: cannot find 'errno' in scope
152 |     private func removeWatch(forDescriptor wd: CInt, sequenceID: UUID) throws {
153 |         let status = inotify_rm_watch(fileDescriptor.rawValue, wd)
154 |         guard status != -1 else { throw Errno(rawValue: errno) }
    |                                                         `- error: cannot find 'errno' in scope
155 |         guard var watchSequences = watches[wd] else { return }
156 |         watchSequences.removeValue(forKey: sequenceID)
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:130:52: error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
 14 | fileprivate import FileStreamer
 15 | internal import CInotify
 16 |
    | `- note: add import of module 'posix_filesystem'
 17 | /// The notifier object.
 18 | public final actor Inotifier {
    :
128 |
129 |     private func handle(_ cEvent: cinotify_event) {
130 |         guard var watchesToNotify = watches[cEvent.wd] else { return }
    |                                                    `- error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
131 |         defer {
132 |             if watchesToNotify.isEmpty {
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:133:52: error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
 14 | fileprivate import FileStreamer
 15 | internal import CInotify
 16 |
    | `- note: add import of module 'posix_filesystem'
 17 | /// The notifier object.
 18 | public final actor Inotifier {
    :
131 |         defer {
132 |             if watchesToNotify.isEmpty {
133 |                 watches.removeValue(forKey: cEvent.wd)
    |                                                    `- error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
134 |             } else {
135 |                 watches[cEvent.wd] = watchesToNotify
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:135:32: error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
 14 | fileprivate import FileStreamer
 15 | internal import CInotify
 16 |
    | `- note: add import of module 'posix_filesystem'
 17 | /// The notifier object.
 18 | public final actor Inotifier {
    :
133 |                 watches.removeValue(forKey: cEvent.wd)
134 |             } else {
135 |                 watches[cEvent.wd] = watchesToNotify
    |                                `- error: property 'wd' is not available due to missing import of defining module 'posix_filesystem' [#MemberImportVisibility]
136 |             }
137 |         }
[#MemberImportVisibility]: <https://docs.swift.org/compiler/documentation/diagnostics/member-import-visibility>
[50/50] Emitting module Inotify
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:10:8: error: Unknown platform
  8 | import ucrt
  9 | #else
 10 | #error("Unknown platform")
    |        `- error: Unknown platform
 11 | #endif
 12 | fileprivate import Foundation
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:10:8: error: Unknown platform
 8 | import ucrt
 9 | #else
10 | #error("Unknown platform")
   |        `- error: Unknown platform
11 | #endif
12 | public import SystemPackage
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:69:29: error: cannot find 'inotify_init1' in scope
 67 |     /// Creates a new instance.
 68 |     public init() throws {
 69 |         guard case let fd = inotify_init1(0), fd != -1 else { throw Errno(rawValue: errno) }
    |                             `- error: cannot find 'inotify_init1' in scope
 70 |         fileDescriptor = .init(rawValue: fd)
 71 |     }
/host/spi-builder-workspace/Sources/Inotify/Inotifier.swift:69:85: error: cannot find 'errno' in scope
 67 |     /// Creates a new instance.
 68 |     public init() throws {
 69 |         guard case let fd = inotify_init1(0), fd != -1 else { throw Errno(rawValue: errno) }
    |                                                                                     `- error: cannot find 'errno' in scope
 70 |         fileDescriptor = .init(rawValue: fd)
 71 |     }
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:44:75: error: cannot find 'IN_ACCESS' in scope
42 | extension InotifyEvent.Flags {
43 |     /// File was accessed.
44 |     public static let accessed = InotifyEvent.Flags(rawValue: numericCast(IN_ACCESS))
   |                                                                           `- error: cannot find 'IN_ACCESS' in scope
45 |     /// File was modified.
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:46:75: error: cannot find 'IN_MODIFY' in scope
44 |     public static let accessed = InotifyEvent.Flags(rawValue: numericCast(IN_ACCESS))
45 |     /// File was modified.
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
   |                                                                           `- error: cannot find 'IN_MODIFY' in scope
47 |     /// Metadata changed.
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:48:84: error: cannot find 'IN_ATTRIB' in scope
46 |     public static let modified = InotifyEvent.Flags(rawValue: numericCast(IN_MODIFY))
47 |     /// Metadata changed.
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
   |                                                                                    `- error: cannot find 'IN_ATTRIB' in scope
49 |     /// A writeable file was closed.
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:50:85: error: cannot find 'IN_CLOSE_WRITE' in scope
48 |     public static let attributesChanged = InotifyEvent.Flags(rawValue: numericCast(IN_ATTRIB))
49 |     /// A writeable file was closed.
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
   |                                                                                     `- error: cannot find 'IN_CLOSE_WRITE' in scope
51 |     /// A non-writable file was closed.
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:52:88: error: cannot find 'IN_CLOSE_NOWRITE' in scope
50 |     public static let writableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_WRITE))
51 |     /// A non-writable file was closed.
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
   |                                                                                        `- error: cannot find 'IN_CLOSE_NOWRITE' in scope
53 |     /// File was opened.
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:54:73: error: cannot find 'IN_OPEN' in scope
52 |     public static let nonWritableFileClosed = InotifyEvent.Flags(rawValue: numericCast(IN_CLOSE_NOWRITE))
53 |     /// File was opened.
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
   |                                                                         `- error: cannot find 'IN_OPEN' in scope
55 |     /// File was moved from X.
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:56:76: error: cannot find 'IN_MOVED_FROM' in scope
54 |     public static let opened = InotifyEvent.Flags(rawValue: numericCast(IN_OPEN))
55 |     /// File was moved from X.
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
   |                                                                            `- error: cannot find 'IN_MOVED_FROM' in scope
57 |     /// File was moved to Y.
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:58:74: error: cannot find 'IN_MOVED_TO' in scope
56 |     public static let movedFrom = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_FROM))
57 |     /// File was moved to Y.
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
   |                                                                          `- error: cannot find 'IN_MOVED_TO' in scope
59 |     /// File was created inside the watched path.
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:60:78: error: cannot find 'IN_CREATE' in scope
58 |     public static let movedTo = InotifyEvent.Flags(rawValue: numericCast(IN_MOVED_TO))
59 |     /// File was created inside the watched path.
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
   |                                                                              `- error: cannot find 'IN_CREATE' in scope
61 |     /// File was deleted inside the watched path.
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:62:78: error: cannot find 'IN_DELETE' in scope
60 |     public static let fileCreated = InotifyEvent.Flags(rawValue: numericCast(IN_CREATE))
61 |     /// File was deleted inside the watched path.
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
   |                                                                              `- error: cannot find 'IN_DELETE' in scope
63 |     /// The watched path was deleted.
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:64:78: error: cannot find 'IN_DELETE_SELF' in scope
62 |     public static let fileDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE))
63 |     /// The watched path was deleted.
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
   |                                                                              `- error: cannot find 'IN_DELETE_SELF' in scope
65 |     /// The watched path was moved.
66 |     public static let selfMoved = InotifyEvent.Flags(rawValue: numericCast(IN_MOVE_SELF))
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:66:76: error: cannot find 'IN_MOVE_SELF' in scope
64 |     public static let selfDeleted = InotifyEvent.Flags(rawValue: numericCast(IN_DELETE_SELF))
65 |     /// The watched path was moved.
66 |     public static let selfMoved = InotifyEvent.Flags(rawValue: numericCast(IN_MOVE_SELF))
   |                                                                            `- error: cannot find 'IN_MOVE_SELF' in scope
67 |
68 |     /// Event occurred against a directory.
/host/spi-builder-workspace/Sources/Inotify/InotifyEvent.swift:69:78: error: cannot find 'IN_ISDIR' in scope
67 |
68 |     /// Event occurred against a directory.
69 |     public static let isDirectory = InotifyEvent.Flags(rawValue: numericCast(IN_ISDIR))
   |                                                                              `- error: cannot find 'IN_ISDIR' in scope
70 | }
71 |
BUILD FAILURE 6.3 android