The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-file-system, reference main (b72227), with Swift 6.2 for Wasm on 3 Oct 2026 22:44:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:582:34: error: cannot find 'O_APPEND' in scope
580 |
581 |             if truncate { flags |= O_TRUNC }
582 |             if append { flags |= O_APPEND }
    |                                  `- error: cannot find 'O_APPEND' in scope
583 |             #if canImport(Darwin)       // Darwin: O_SYMLINK opens the link itself with any access mode
584 |             if !followSymlink { flags |= O_SYMLINK }
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:26: error: cannot find 'O_ACCMODE' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                          `- error: cannot find 'O_ACCMODE' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:38:9: note: macro 'O_ACCMODE' unavailable: structure not supported
36 |
37 | #define O_RDWR (O_RDONLY | O_WRONLY)
38 | #define O_ACCMODE (O_EXEC | O_RDWR | O_SEARCH)
   |         `- note: macro 'O_ACCMODE' unavailable: structure not supported
39 |
40 | #define POSIX_FADV_DONTNEED __WASI_ADVICE_DONTNEED
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:38: error: cannot find 'O_PATH' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                      `- error: cannot find 'O_PATH' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:47: error: cannot find 'O_CREAT' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                               `- error: cannot find 'O_CREAT' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:57: error: cannot find 'O_EXCL' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                                         `- error: cannot find 'O_EXCL' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:641:36: error: cannot find 'O_CREAT' in scope
639 |             }
640 |             #else
641 |             return creationFlags & O_CREAT != 0
    |                                    `- error: cannot find 'O_CREAT' in scope
642 |             #endif
643 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[276/330] Compiling FileSystemCore UnsafeSystemHandle.swift
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:267:56: error: cannot find type 'LinuxInodeFlags' in scope
265 |
266 |
267 |     package func inodeFlags() throws(LowLevelError) -> LinuxInodeFlags {
    |                                                        `- error: cannot find type 'LinuxInodeFlags' in scope
268 |         var flags: PlatformInteropTypes.PosixInodeFlags = 0
269 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:281:41: error: cannot find type 'LinuxInodeFlags' in scope
279 |
280 |
281 |     package func setInodeFlags(_ flags: LinuxInodeFlags) throws(LowLevelError) {
    |                                         `- error: cannot find type 'LinuxInodeFlags' in scope
282 |         var flags = flags.rawValue
283 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:224:37: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
222 |         return .init(rawValue: fileBasicInfo.FileAttributes)
223 |         #else
224 |         .init(rawValue: try fstat().st_flags)
    |                                     `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
225 |         #endif
226 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:270:36: error: cannot find 'FS_IOC_GETFLAGS' in scope
268 |         var flags: PlatformInteropTypes.PosixInodeFlags = 0
269 |         try execThrowingCFunction {
270 |             ioctl(unsafeRawHandle, FS_IOC_GETFLAGS, &flags)
    |                                    `- error: cannot find 'FS_IOC_GETFLAGS' in scope
271 |         } onError: { () throws(LowLevelError) in
272 |             // Filesystems without this ioctl report ENOTTY. Classify it here, retaining
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:284:43: error: cannot find 'FS_IOC_SETFLAGS' in scope
282 |         var flags = flags.rawValue
283 |         try execThrowingCFunction {
284 |             return ioctl(unsafeRawHandle, FS_IOC_SETFLAGS, &flags)
    |                                           `- error: cannot find 'FS_IOC_SETFLAGS' in scope
285 |         } onError: { () throws(LowLevelError) in
286 |             let error = LowLevelError.fromLastError() ?? .unknown
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:425:13: error: module 'PlatformCLib' has no member named 'fchown'
423 |
424 |         try execThrowingCFunction {
425 |             PlatformCLib.fchown(unsafeRawHandle, owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1))
    |             `- error: module 'PlatformCLib' has no member named 'fchown'
426 |         }
427 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+InternalUtils.swift:37:65: error: cannot find 'O_DIRECTORY' in scope
35 |         #else
36 |
37 |         let newHandle = openat(unsafeRawHandle, ".", O_RDONLY | O_DIRECTORY | O_CLOEXEC)
   |                                                                 `- error: cannot find 'O_DIRECTORY' in scope
38 |         guard newHandle >= 0 else {
39 |             try LowLevelError.assertError()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:17:71: error: cannot find 'POLLPRI' in scope
 15 |     public static let pollIn: PosixPollEvent = .init(rawValue: .init(POLLIN))
 16 |     /// There is some exceptional condition on the file descriptor (`POLLPRI`).
 17 |     public static let pollPri: PosixPollEvent = .init(rawValue: .init(POLLPRI))
    |                                                                       `- error: cannot find 'POLLPRI' in scope
 18 |     /// The file descriptor is writable (`POLLOUT`).
 19 |     public static let pollOut: PosixPollEvent = .init(rawValue: .init(POLLOUT))
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:29:74: error: cannot find 'POLLRDBAND' in scope
 27 |     public static let pollRdNorm: PosixPollEvent = .init(rawValue: .init(POLLRDNORM))
 28 |     /// Priority band data can be read (`POLLRDBAND`).
 29 |     public static let pollRdBand: PosixPollEvent = .init(rawValue: .init(POLLRDBAND))
    |                                                                          `- error: cannot find 'POLLRDBAND' in scope
 30 |     /// The file descriptor is writable (`POLLWRNORM`).
 31 |     public static let pollWrNorm: PosixPollEvent = .init(rawValue: .init(POLLWRNORM))
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:33:74: error: cannot find 'POLLWRBAND' in scope
 31 |     public static let pollWrNorm: PosixPollEvent = .init(rawValue: .init(POLLWRNORM))
 32 |     /// Priority band data can be written (`POLLWRBAND`).
 33 |     public static let pollWrBand: PosixPollEvent = .init(rawValue: .init(POLLWRBAND))
    |                                                                          `- error: cannot find 'POLLWRBAND' in scope
 34 | }
 35 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:96:13: error: cannot find '_statx' in scope
 94 |         #else
 95 |         try execThrowingCFunction {
 96 |             _statx(unsafeRawHandle, "", AT_EMPTY_PATH, &st)
    |             `- error: cannot find '_statx' in scope
 97 |         }
 98 |         #endif
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:96:41: error: cannot find 'AT_EMPTY_PATH' in scope
 94 |         #else
 95 |         try execThrowingCFunction {
 96 |             _statx(unsafeRawHandle, "", AT_EMPTY_PATH, &st)
    |                                         `- error: cannot find 'AT_EMPTY_PATH' in scope
 97 |         }
 98 |         #endif
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:244:48: error: cannot find 'O_DIRECTORY' in scope
242 |
243 |         let handle = path.withPlatformString { cStr in
244 |             PlatformCLib.open(cStr, O_RDONLY | O_DIRECTORY | O_CLOEXEC)
    |                                                `- error: cannot find 'O_DIRECTORY' in scope
245 |         }
246 |         guard handle >= 0 else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:704:25: error: cannot find 'dup' in scope
702 |         #else
703 |
704 |         let newHandle = dup(self.unsafeRawHandle)
    |                         `- error: cannot find 'dup' in scope
705 |         guard newHandle >= 0 else {
706 |             try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:758:21: error: module 'PlatformCLib' has no member named 'pipe'
756 |         let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
757 |             ptr.initialize(repeating: 0)
758 |             return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
    |                     `- error: module 'PlatformCLib' has no member named 'pipe'
759 |         }
760 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:804:25: error: cannot find 'dup' in scope
802 |         #else
803 |
804 |         let newHandle = dup(self.unsafeRawHandle)
    |                         `- error: cannot find 'dup' in scope
805 |         guard newHandle >= 0 else {
806 |             try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:88:22: error: cannot find 'O_NONBLOCK' in scope
 86 |
 87 |         if value {
 88 |             flags |= O_NONBLOCK
    |                      `- error: cannot find 'O_NONBLOCK' in scope
 89 |         } else {
 90 |             flags &= ~O_NONBLOCK
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:90:23: error: cannot find 'O_NONBLOCK' in scope
 88 |             flags |= O_NONBLOCK
 89 |         } else {
 90 |             flags &= ~O_NONBLOCK
    |                       `- error: cannot find 'O_NONBLOCK' in scope
 91 |         }
 92 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:187:80: error: cannot find 'O_CREAT' in scope
185 |                 ///
186 |                 /// Mapped to `O_CREAT`.
187 |                 public static var create: NativeCreationFlag { .init(rawValue: O_CREAT) }
    |                                                                                `- error: cannot find 'O_CREAT' in scope
188 |                 /// Create a file if it does not exist, and fail if it exists.
189 |                 ///
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:89: error: cannot find 'O_EXCL' in scope
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                         `- error: cannot find 'O_EXCL' in scope
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:98: error: cannot find 'O_CREAT' in scope
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                                  `- error: cannot find 'O_CREAT' in scope
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:96: error: cannot convert value of type 'UInt8' to expected argument type 'UnsafeSystemHandle.OpenOptions.FlagType' (aka 'Int32')
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                                `- error: cannot convert value of type 'UInt8' to expected argument type 'UnsafeSystemHandle.OpenOptions.FlagType' (aka 'Int32')
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:257:78: error: cannot find 'O_TRUNC' in scope
255 |                 ///
256 |                 /// Mapped to `O_TRUNC`.
257 |                 public static var truncate: NativeOpenFlag { .init(rawValue: O_TRUNC) }
    |                                                                              `- error: cannot find 'O_TRUNC' in scope
258 |                 /// Write operations will append to the end of the file.
259 |                 ///
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:261:76: error: cannot find 'O_APPEND' in scope
259 |                 ///
260 |                 /// Mapped to `O_APPEND`.
261 |                 public static var append: NativeOpenFlag { .init(rawValue: O_APPEND) }
    |                                                                            `- error: cannot find 'O_APPEND' in scope
262 |                 /// Forbid symbolic links at the final path component.
263 |                 ///
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:273:81: error: cannot find 'O_NONBLOCK' in scope
271 |                 ///
272 |                 /// Mapped to `O_NONBLOCK`.
273 |                 public static var nonBlocking: NativeOpenFlag { .init(rawValue: O_NONBLOCK) }
    |                                                                                 `- error: cannot find 'O_NONBLOCK' in scope
274 |                 /// Do not assign a controlling terminal to the opened file.
275 |                 ///
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:281:79: error: cannot find 'O_DIRECTORY' in scope
279 |                 ///
280 |                 /// Mapped to `O_DIRECTORY`.
281 |                 public static var directory: NativeOpenFlag { .init(rawValue: O_DIRECTORY) }
    |                                                                               `- error: cannot find 'O_DIRECTORY' in scope
282 |                 #else
283 |                 /// Truncate the file to zero length after opening it.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:521:34: error: cannot find 'O_PATH' in scope
519 |             return switch access {
520 |                 #if !(canImport(Darwin) || os(OpenBSD))      // O_PATH is not available on OpenBSD or macOS
521 |                 case .none:      O_PATH
    |                                  `- error: cannot find 'O_PATH' in scope
522 |                 #else
523 |                 case .none:      O_RDONLY
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:66: error: cannot find 'O_EXCL' in scope
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                  `- error: cannot find 'O_EXCL' in scope
555 |             }
556 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:75: error: cannot find 'O_CREAT' in scope
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                           `- error: cannot find 'O_CREAT' in scope
555 |             }
556 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:73: error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                         `- error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
555 |             }
556 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:559:41: error: cannot find 'O_CREAT' in scope
557 |             return switch creation {
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
    |                                         `- error: cannot find 'O_CREAT' in scope
560 |                 case .assertMissing:    O_EXCL | O_CREAT
561 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:560:41: error: cannot find 'O_EXCL' in scope
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
560 |                 case .assertMissing:    O_EXCL | O_CREAT
    |                                         `- error: cannot find 'O_EXCL' in scope
561 |             }
562 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:560:50: error: cannot find 'O_CREAT' in scope
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
560 |                 case .assertMissing:    O_EXCL | O_CREAT
    |                                                  `- error: cannot find 'O_CREAT' in scope
561 |             }
562 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:581:36: error: cannot find 'O_TRUNC' in scope
579 |             #else
580 |
581 |             if truncate { flags |= O_TRUNC }
    |                                    `- error: cannot find 'O_TRUNC' in scope
582 |             if append { flags |= O_APPEND }
583 |             #if canImport(Darwin)       // Darwin: O_SYMLINK opens the link itself with any access mode
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:582:34: error: cannot find 'O_APPEND' in scope
580 |
581 |             if truncate { flags |= O_TRUNC }
582 |             if append { flags |= O_APPEND }
    |                                  `- error: cannot find 'O_APPEND' in scope
583 |             #if canImport(Darwin)       // Darwin: O_SYMLINK opens the link itself with any access mode
584 |             if !followSymlink { flags |= O_SYMLINK }
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:26: error: cannot find 'O_ACCMODE' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                          `- error: cannot find 'O_ACCMODE' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:38:9: note: macro 'O_ACCMODE' unavailable: structure not supported
36 |
37 | #define O_RDWR (O_RDONLY | O_WRONLY)
38 | #define O_ACCMODE (O_EXEC | O_RDWR | O_SEARCH)
   |         `- note: macro 'O_ACCMODE' unavailable: structure not supported
39 |
40 | #define POSIX_FADV_DONTNEED __WASI_ADVICE_DONTNEED
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:38: error: cannot find 'O_PATH' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                      `- error: cannot find 'O_PATH' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:47: error: cannot find 'O_CREAT' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                               `- error: cannot find 'O_CREAT' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:57: error: cannot find 'O_EXCL' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                                         `- error: cannot find 'O_EXCL' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:641:36: error: cannot find 'O_CREAT' in scope
639 |             }
640 |             #else
641 |             return creationFlags & O_CREAT != 0
    |                                    `- error: cannot find 'O_CREAT' in scope
642 |             #endif
643 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[277/330] Compiling FileSystemCore Utils.swift
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:267:56: error: cannot find type 'LinuxInodeFlags' in scope
265 |
266 |
267 |     package func inodeFlags() throws(LowLevelError) -> LinuxInodeFlags {
    |                                                        `- error: cannot find type 'LinuxInodeFlags' in scope
268 |         var flags: PlatformInteropTypes.PosixInodeFlags = 0
269 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:281:41: error: cannot find type 'LinuxInodeFlags' in scope
279 |
280 |
281 |     package func setInodeFlags(_ flags: LinuxInodeFlags) throws(LowLevelError) {
    |                                         `- error: cannot find type 'LinuxInodeFlags' in scope
282 |         var flags = flags.rawValue
283 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:224:37: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
222 |         return .init(rawValue: fileBasicInfo.FileAttributes)
223 |         #else
224 |         .init(rawValue: try fstat().st_flags)
    |                                     `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
225 |         #endif
226 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:270:36: error: cannot find 'FS_IOC_GETFLAGS' in scope
268 |         var flags: PlatformInteropTypes.PosixInodeFlags = 0
269 |         try execThrowingCFunction {
270 |             ioctl(unsafeRawHandle, FS_IOC_GETFLAGS, &flags)
    |                                    `- error: cannot find 'FS_IOC_GETFLAGS' in scope
271 |         } onError: { () throws(LowLevelError) in
272 |             // Filesystems without this ioctl report ENOTTY. Classify it here, retaining
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:284:43: error: cannot find 'FS_IOC_SETFLAGS' in scope
282 |         var flags = flags.rawValue
283 |         try execThrowingCFunction {
284 |             return ioctl(unsafeRawHandle, FS_IOC_SETFLAGS, &flags)
    |                                           `- error: cannot find 'FS_IOC_SETFLAGS' in scope
285 |         } onError: { () throws(LowLevelError) in
286 |             let error = LowLevelError.fromLastError() ?? .unknown
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+FileInfo.swift:425:13: error: module 'PlatformCLib' has no member named 'fchown'
423 |
424 |         try execThrowingCFunction {
425 |             PlatformCLib.fchown(unsafeRawHandle, owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1))
    |             `- error: module 'PlatformCLib' has no member named 'fchown'
426 |         }
427 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+InternalUtils.swift:37:65: error: cannot find 'O_DIRECTORY' in scope
35 |         #else
36 |
37 |         let newHandle = openat(unsafeRawHandle, ".", O_RDONLY | O_DIRECTORY | O_CLOEXEC)
   |                                                                 `- error: cannot find 'O_DIRECTORY' in scope
38 |         guard newHandle >= 0 else {
39 |             try LowLevelError.assertError()
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:17:71: error: cannot find 'POLLPRI' in scope
 15 |     public static let pollIn: PosixPollEvent = .init(rawValue: .init(POLLIN))
 16 |     /// There is some exceptional condition on the file descriptor (`POLLPRI`).
 17 |     public static let pollPri: PosixPollEvent = .init(rawValue: .init(POLLPRI))
    |                                                                       `- error: cannot find 'POLLPRI' in scope
 18 |     /// The file descriptor is writable (`POLLOUT`).
 19 |     public static let pollOut: PosixPollEvent = .init(rawValue: .init(POLLOUT))
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:29:74: error: cannot find 'POLLRDBAND' in scope
 27 |     public static let pollRdNorm: PosixPollEvent = .init(rawValue: .init(POLLRDNORM))
 28 |     /// Priority band data can be read (`POLLRDBAND`).
 29 |     public static let pollRdBand: PosixPollEvent = .init(rawValue: .init(POLLRDBAND))
    |                                                                          `- error: cannot find 'POLLRDBAND' in scope
 30 |     /// The file descriptor is writable (`POLLWRNORM`).
 31 |     public static let pollWrNorm: PosixPollEvent = .init(rawValue: .init(POLLWRNORM))
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:33:74: error: cannot find 'POLLWRBAND' in scope
 31 |     public static let pollWrNorm: PosixPollEvent = .init(rawValue: .init(POLLWRNORM))
 32 |     /// Priority band data can be written (`POLLWRBAND`).
 33 |     public static let pollWrBand: PosixPollEvent = .init(rawValue: .init(POLLWRBAND))
    |                                                                          `- error: cannot find 'POLLWRBAND' in scope
 34 | }
 35 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:96:13: error: cannot find '_statx' in scope
 94 |         #else
 95 |         try execThrowingCFunction {
 96 |             _statx(unsafeRawHandle, "", AT_EMPTY_PATH, &st)
    |             `- error: cannot find '_statx' in scope
 97 |         }
 98 |         #endif
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+PosixSyscall.swift:96:41: error: cannot find 'AT_EMPTY_PATH' in scope
 94 |         #else
 95 |         try execThrowingCFunction {
 96 |             _statx(unsafeRawHandle, "", AT_EMPTY_PATH, &st)
    |                                         `- error: cannot find 'AT_EMPTY_PATH' in scope
 97 |         }
 98 |         #endif
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:244:48: error: cannot find 'O_DIRECTORY' in scope
242 |
243 |         let handle = path.withPlatformString { cStr in
244 |             PlatformCLib.open(cStr, O_RDONLY | O_DIRECTORY | O_CLOEXEC)
    |                                                `- error: cannot find 'O_DIRECTORY' in scope
245 |         }
246 |         guard handle >= 0 else {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:704:25: error: cannot find 'dup' in scope
702 |         #else
703 |
704 |         let newHandle = dup(self.unsafeRawHandle)
    |                         `- error: cannot find 'dup' in scope
705 |         guard newHandle >= 0 else {
706 |             try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:758:21: error: module 'PlatformCLib' has no member named 'pipe'
756 |         let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
757 |             ptr.initialize(repeating: 0)
758 |             return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
    |                     `- error: module 'PlatformCLib' has no member named 'pipe'
759 |         }
760 |         guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:804:25: error: cannot find 'dup' in scope
802 |         #else
803 |
804 |         let newHandle = dup(self.unsafeRawHandle)
    |                         `- error: cannot find 'dup' in scope
805 |         guard newHandle >= 0 else {
806 |             try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:88:22: error: cannot find 'O_NONBLOCK' in scope
 86 |
 87 |         if value {
 88 |             flags |= O_NONBLOCK
    |                      `- error: cannot find 'O_NONBLOCK' in scope
 89 |         } else {
 90 |             flags &= ~O_NONBLOCK
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:90:23: error: cannot find 'O_NONBLOCK' in scope
 88 |             flags |= O_NONBLOCK
 89 |         } else {
 90 |             flags &= ~O_NONBLOCK
    |                       `- error: cannot find 'O_NONBLOCK' in scope
 91 |         }
 92 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:187:80: error: cannot find 'O_CREAT' in scope
185 |                 ///
186 |                 /// Mapped to `O_CREAT`.
187 |                 public static var create: NativeCreationFlag { .init(rawValue: O_CREAT) }
    |                                                                                `- error: cannot find 'O_CREAT' in scope
188 |                 /// Create a file if it does not exist, and fail if it exists.
189 |                 ///
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:89: error: cannot find 'O_EXCL' in scope
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                         `- error: cannot find 'O_EXCL' in scope
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:98: error: cannot find 'O_CREAT' in scope
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                                  `- error: cannot find 'O_CREAT' in scope
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:191:96: error: cannot convert value of type 'UInt8' to expected argument type 'UnsafeSystemHandle.OpenOptions.FlagType' (aka 'Int32')
189 |                 ///
190 |                 /// Mapped to `O_EXCL | O_CREAT`.
191 |                 public static var exclusiveCreate: NativeCreationFlag { .init(rawValue: O_EXCL | O_CREAT) }
    |                                                                                                `- error: cannot convert value of type 'UInt8' to expected argument type 'UnsafeSystemHandle.OpenOptions.FlagType' (aka 'Int32')
192 |                 #else
193 |                 /// Create a file if it does not exist, and open it if it exists.
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:257:78: error: cannot find 'O_TRUNC' in scope
255 |                 ///
256 |                 /// Mapped to `O_TRUNC`.
257 |                 public static var truncate: NativeOpenFlag { .init(rawValue: O_TRUNC) }
    |                                                                              `- error: cannot find 'O_TRUNC' in scope
258 |                 /// Write operations will append to the end of the file.
259 |                 ///
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:261:76: error: cannot find 'O_APPEND' in scope
259 |                 ///
260 |                 /// Mapped to `O_APPEND`.
261 |                 public static var append: NativeOpenFlag { .init(rawValue: O_APPEND) }
    |                                                                            `- error: cannot find 'O_APPEND' in scope
262 |                 /// Forbid symbolic links at the final path component.
263 |                 ///
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:273:81: error: cannot find 'O_NONBLOCK' in scope
271 |                 ///
272 |                 /// Mapped to `O_NONBLOCK`.
273 |                 public static var nonBlocking: NativeOpenFlag { .init(rawValue: O_NONBLOCK) }
    |                                                                                 `- error: cannot find 'O_NONBLOCK' in scope
274 |                 /// Do not assign a controlling terminal to the opened file.
275 |                 ///
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:281:79: error: cannot find 'O_DIRECTORY' in scope
279 |                 ///
280 |                 /// Mapped to `O_DIRECTORY`.
281 |                 public static var directory: NativeOpenFlag { .init(rawValue: O_DIRECTORY) }
    |                                                                               `- error: cannot find 'O_DIRECTORY' in scope
282 |                 #else
283 |                 /// Truncate the file to zero length after opening it.
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:14:9: note: macro 'O_DIRECTORY' unavailable: structure not supported
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
   |         `- note: macro 'O_DIRECTORY' unavailable: structure not supported
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:521:34: error: cannot find 'O_PATH' in scope
519 |             return switch access {
520 |                 #if !(canImport(Darwin) || os(OpenBSD))      // O_PATH is not available on OpenBSD or macOS
521 |                 case .none:      O_PATH
    |                                  `- error: cannot find 'O_PATH' in scope
522 |                 #else
523 |                 case .none:      O_RDONLY
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:66: error: cannot find 'O_EXCL' in scope
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                  `- error: cannot find 'O_EXCL' in scope
555 |             }
556 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:75: error: cannot find 'O_CREAT' in scope
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                           `- error: cannot find 'O_CREAT' in scope
555 |             }
556 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:554:73: error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
552 |
553 |             if let platformCreationFlagsOverride {
554 |                 return platformCreationFlagsOverride.rawValue & (O_EXCL | O_CREAT)
    |                                                                         `- error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
555 |             }
556 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:559:41: error: cannot find 'O_CREAT' in scope
557 |             return switch creation {
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
    |                                         `- error: cannot find 'O_CREAT' in scope
560 |                 case .assertMissing:    O_EXCL | O_CREAT
561 |             }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:560:41: error: cannot find 'O_EXCL' in scope
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
560 |                 case .assertMissing:    O_EXCL | O_CREAT
    |                                         `- error: cannot find 'O_EXCL' in scope
561 |             }
562 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:560:50: error: cannot find 'O_CREAT' in scope
558 |                 case .never:            0
559 |                 case .createIfMissing:  O_CREAT
560 |                 case .assertMissing:    O_EXCL | O_CREAT
    |                                                  `- error: cannot find 'O_CREAT' in scope
561 |             }
562 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:581:36: error: cannot find 'O_TRUNC' in scope
579 |             #else
580 |
581 |             if truncate { flags |= O_TRUNC }
    |                                    `- error: cannot find 'O_TRUNC' in scope
582 |             if append { flags |= O_APPEND }
583 |             #if canImport(Darwin)       // Darwin: O_SYMLINK opens the link itself with any access mode
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
   |         `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:582:34: error: cannot find 'O_APPEND' in scope
580 |
581 |             if truncate { flags |= O_TRUNC }
582 |             if append { flags |= O_APPEND }
    |                                  `- error: cannot find 'O_APPEND' in scope
583 |             #if canImport(Darwin)       // Darwin: O_SYMLINK opens the link itself with any access mode
584 |             if !followSymlink { flags |= O_SYMLINK }
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:26: error: cannot find 'O_ACCMODE' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                          `- error: cannot find 'O_ACCMODE' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:38:9: note: macro 'O_ACCMODE' unavailable: structure not supported
36 |
37 | #define O_RDWR (O_RDONLY | O_WRONLY)
38 | #define O_ACCMODE (O_EXEC | O_RDWR | O_SEARCH)
   |         `- note: macro 'O_ACCMODE' unavailable: structure not supported
39 |
40 | #define POSIX_FADV_DONTNEED __WASI_ADVICE_DONTNEED
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:38: error: cannot find 'O_PATH' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                      `- error: cannot find 'O_PATH' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:47: error: cannot find 'O_CREAT' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                               `- error: cannot find 'O_CREAT' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:591:57: error: cannot find 'O_EXCL' in scope
589 |
590 |             #if !(canImport(Darwin) || os(OpenBSD))
591 |             let mask = ~(O_ACCMODE | O_PATH | O_CREAT | O_EXCL)
    |                                                         `- error: cannot find 'O_EXCL' in scope
592 |             #else
593 |             let mask = ~(O_ACCMODE | O_CREAT | O_EXCL)
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:15:9: note: macro 'O_EXCL' unavailable: structure not supported
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
   |         `- note: macro 'O_EXCL' unavailable: structure not supported
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
17 |
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle.swift:641:36: error: cannot find 'O_CREAT' in scope
639 |             }
640 |             #else
641 |             return creationFlags & O_CREAT != 0
    |                                    `- error: cannot find 'O_CREAT' in scope
642 |             #endif
643 |         }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
   |         `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
[278/330] Compiling FileSystemCore RecursiveCopyError.swift
[279/330] Compiling FileSystemCore WindowsErrorCode.swift
[280/330] Compiling FileSystemCore Export.swift
[281/330] Compiling FileSystemCore FileIdentifier.swift
[282/330] Compiling FileSystemCore FileInfo.swift
[284/331] Compiling FileSystemCore WindowsRawAcl.swift
[285/331] Compiling FileSystemCore WindowsRawAclState.swift
[291/331] Compiling FileSystemCore FileOperationOptions.swift
[292/331] Compiling FileSystemCore PlatformAttribute+Windows.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[293/331] Compiling FileSystemCore PlatformAttributes+Linux.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[294/331] Compiling FileSystemCore PlatformAttributes.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[295/331] Compiling FileSystemCore PlatformIdentity.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[296/331] Compiling FileSystemCore TimeSpec.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[297/331] Compiling FileSystemCore WindowsAbsoluteSecurityDescriptor.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[298/331] Compiling FileSystemCore WindowsAclProtocol.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
[299/331] Compiling FileSystemCore WindowsExplicitAccess.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:40:45: error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 38 |     @inlinable
 39 |     public init(platformFileTime: timespec) {
 40 |         self.init(seconds: platformFileTime.tv_sec, nanoseconds: platformFileTime.tv_nsec)
    |                                             `- error: cannot convert value of type 'time_t' (aka 'Int64') to expected argument type 'Int'
 41 |     }
 42 |     #endif
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/TimeSpec.swift:54:30: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 52 |         return filetime
 53 |         #else
 54 |         return .init(tv_sec: seconds, tv_nsec: nanoseconds)
    |                              `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
 55 |         #endif
 56 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
[305/331] Compiling FileSystemCore FileKind.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
[306/331] Compiling FileSystemCore LinuxInodeFlags.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
[307/331] Compiling FileSystemCore PlatformAttribute+Darwin&BSD.swift
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:65:48: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
63 |         )
64 |
65 |         self.attributes = .init(rawValue: stat.st_flags)
   |                                                `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
66 |
67 |         #if canImport(Darwin) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/Sources/FileSystemCore/FileInfo/FileInfo.swift:70:57: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
68 |         self.supportedAttributes = .all
69 |         #else
70 |         self.supportedAttributes = .init(rawValue: stat.st_flags_mask)
   |                                                         `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
71 |         #endif
72 |     }
[308/331] Compiling FileSystemCore InternalFS+CommonPaths.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[309/331] Compiling FileSystemCore InternalFS+CopyItems.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[310/331] Compiling FileSystemCore InternalFS+Dir.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[311/331] Compiling FileSystemCore InternalFS+Permissions.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[312/331] Compiling FileSystemCore InternalFS+Rename.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:44:83: error: cannot find 'PATH_MAX' in scope
 42 |         #else
 43 |
 44 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: max(Int(PATH_MAX), 1024))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 45 |         defer { buffer.deallocate() }
 46 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:176:23: error: cannot find 'getuid' in scope
174 |         #endif
175 |
176 |         let currUid = getuid()
    |                       `- error: cannot find 'getuid' in scope
177 |
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:180:19: error: cannot find 'passwd' in scope
178 |         var size = max(sysconf(Int32(_SC_GETPW_R_SIZE_MAX)), 1024)
179 |
180 |         var pwd = passwd()
    |                   `- error: cannot find 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:183:50: error: cannot find type 'passwd' in scope
181 |         var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
182 |         defer { buffer.deallocate() }
183 |         var result = nil as UnsafeMutablePointer<passwd>?
    |                                                  `- error: cannot find type 'passwd' in scope
184 |
185 |         while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+CommonPaths.swift:187:25: error: cannot find 'getpwuid_r' in scope
185 |         while true {
186 |
187 |             let error = getpwuid_r(currUid, &pwd, buffer, size, &result)
    |                         `- error: cannot find 'getpwuid_r' in scope
188 |
189 |             if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:288:17: error: module 'PlatformCLib' has no member named 'fchownat'
286 |         try execThrowingCFunction {
287 |             path.withPlatformString { pathPtr in
288 |                 PlatformCLib.fchownat(
    |                 `- error: module 'PlatformCLib' has no member named 'fchownat'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Permissions.swift:291:37: error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
289 |                     AT_FDCWD, pathPtr,
290 |                     owner?.rawId ?? .init(bitPattern: -1), group?.rawId ?? .init(bitPattern: -1),
291 |                     followSymlink ? 0 : AT_SYMLINK_NOFOLLOW
    |                                     `- error: result values in '? :' expression have mismatching types 'Int' and 'Int32'
292 |                 )
293 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:326:50: error: cannot find 'RENAME_NOREPLACE' in scope
324 |     ) throws(LowLevelError) {
325 |
326 |         let flags = replace ? UInt32(0) : UInt32(RENAME_NOREPLACE)
    |                                                  `- error: cannot find 'RENAME_NOREPLACE' in scope
327 |
328 |         try execThrowingCFunction {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+Rename.swift:331:21: error: cannot find 'renameat2' in scope
329 |             srcPath.withPlatformString { srcPtr in
330 |                 dstPath.withPlatformString { dstPtr in
331 |                     renameat2(AT_FDCWD, srcPtr, AT_FDCWD, dstPtr, flags)
    |                     `- error: cannot find 'renameat2' in scope
332 |                 }
333 |             }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:13:19: warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 11 |         let pid = GetCurrentProcessId()
 12 |         #else
 13 |         let pid = getpid()
    |                   `- warning: 'getpid()' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [#DeprecatedDeclaration]
 14 |         #endif
 15 |         // ASCII only: every character is a single code unit in both UTF-8 and UTF-16
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS+TmpFile.swift:78:22: error: cannot find 'mkstemp' in scope
 76 |
 77 |         let (fd, tmpPath) = withCString(dirPath.appending(prefix), appending: ".tmp-XXXXXX") { template in
 78 |             let fd = mkstemp(template)
    |                      `- error: cannot find 'mkstemp' in scope
 79 |             return (fd, fd >= 0 ? FilePath(platformString: template) : nil)
 80 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:62:83: error: cannot find 'PATH_MAX' in scope
 60 |         #else
 61 |
 62 |         var buffer = UnsafeMutableBufferPointer<CChar>.allocate(capacity: Int(max(PATH_MAX, 1024)))
    |                                                                                   `- error: cannot find 'PATH_MAX' in scope
 63 |         defer { buffer.deallocate() }
 64 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFS.swift:346:17: error: cannot find 'mkfifo' in scope
344 |         try execThrowingCFunction {
345 |             path.withPlatformString { pathPtr in
346 |                 mkfifo(pathPtr, permissions.rawValue)
    |                 `- error: cannot find 'mkfifo' in scope
347 |             }
348 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:28:17: error: cannot find '_statx' in scope
 26 |         try execThrowingCFunction {
 27 |             path.withPlatformString { pathStr in
 28 |                 _statx(AT_FDCWD, pathStr, 0, &st)
    |                 `- error: cannot find '_statx' in scope
 29 |             }
 30 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:52:17: error: cannot find '_statx' in scope
 50 |         try execThrowingCFunction {
 51 |             path.withPlatformString { pathPtr in
 52 |                 _statx(AT_FDCWD, pathPtr, AT_SYMLINK_NOFOLLOW, &st)
    |                 `- error: cannot find '_statx' in scope
 53 |             }
 54 |         }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/InternalFs+FileInfo.swift:362:43: error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
360 |         return .init(rawValue: attribubtes)
361 |         #else
362 |         .init(rawValue: try followSymlink ? ustat(path).st_flags : ulstat(path).st_flags)
    |                                           `- error: cannot convert value of type 'UInt64' to expected argument type 'PlatformInteropTypes.FileAttribute' (aka 'UInt32')
363 |         #endif
364 |     }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[318/331] Compiling FileSystemCore ErrorCapture.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[319/331] Compiling FileSystemCore ErrorCode.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[320/331] Compiling FileSystemCore LowLevelError.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[321/331] Compiling FileSystemCore PlatformError.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[322/331] Compiling FileSystemCore PlatformErrorKind.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[323/331] Compiling FileSystemCore PosixErrorCode.swift
/host/spi-builder-workspace/Sources/FileSystemCore/Error/PosixErrorCode.swift:31:78: error: cannot find 'ENOTBLK' in scope
 29 |     @inlinable public static var badAddress: Self { .init(rawValue: EFAULT) }
 30 |     /// `ENOTBLK`
 31 |     @inlinable public static var blockDeviceRequired: Self { .init(rawValue: ENOTBLK) }
    |                                                                              `- error: cannot find 'ENOTBLK' in scope
 32 |     /// `EBUSY`
 33 |     @inlinable public static var deviceOrResourceBusy: Self { .init(rawValue: EBUSY) }
[324/331] Compiling FileSystemCore PlatformInteropTypes.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[325/331] Compiling FileSystemCore InternalPlatformAPI.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[326/331] Compiling FileSystemCore WindowsProcessToken.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[327/331] Compiling FileSystemCore SendableBox.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[328/331] Compiling FileSystemCore UnsafeAutoBufferPointer.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[329/331] Compiling FileSystemCore UnsafeAutoPointer.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[330/331] Compiling FileSystemCore UnsafeAutoRawPointer.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
[331/331] Compiling FileSystemCore UnsafeAutoResource.swift
/host/spi-builder-workspace/Sources/FileSystemCore/InternalFS/PlatformInteropTypes.swift:59:42: error: cannot find type 'StatCompat' in scope
 57 |         package typealias PlatformStat = stat
 58 |         #else
 59 |         package typealias PlatformStat = StatCompat
    |                                          `- error: cannot find type 'StatCompat' in scope
 60 |         #endif
 61 |
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:48:27: error: cannot find 'passwd' in scope
 46 |                 if size <= 0 { size = 1024 }
 47 |
 48 |                 var pwd = passwd()
    |                           `- error: cannot find 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:51:58: error: cannot find type 'passwd' in scope
 49 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 50 |                 defer { buffer.deallocate() }
 51 |                 var result = nil as UnsafeMutablePointer<passwd>?
    |                                                          `- error: cannot find type 'passwd' in scope
 52 |
 53 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:55:33: error: cannot find 'getpwuid_r' in scope
 53 |                 while true {
 54 |
 55 |                     let error = getpwuid_r(identity.rawId, &pwd, buffer, size, &result)
    |                                 `- error: cannot find 'getpwuid_r' in scope
 56 |
 57 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:84:27: error: cannot find 'group' in scope
 82 |                 if size <= 0 { size = 1024 }
 83 |
 84 |                 var grp = group()
    |                           `- error: cannot find 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:87:58: error: cannot find type 'group' in scope
 85 |                 var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
 86 |                 defer { buffer.deallocate() }
 87 |                 var result = nil as UnsafeMutablePointer<group>?
    |                                                          `- error: cannot find type 'group' in scope
 88 |
 89 |                 while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:91:33: error: cannot find 'getgrgid_r' in scope
 89 |                 while true {
 90 |
 91 |                     let error = getgrgid_r(identity.rawId, &grp, buffer, size, &result)
    |                                 `- error: cannot find 'getgrgid_r' in scope
 92 |
 93 |                     if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:170:23: error: cannot find 'passwd' in scope
168 |         func queryUserIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
169 |
170 |             var pwd = passwd()
    |                       `- error: cannot find 'passwd' in scope
171 |             var size = sysconf(Int32(_SC_GETPW_R_SIZE_MAX))
172 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:176:54: error: cannot find type 'passwd' in scope
174 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
175 |             defer { buffer.deallocate() }
176 |             var result = nil as UnsafeMutablePointer<passwd>?
    |                                                      `- error: cannot find type 'passwd' in scope
177 |
178 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:180:29: error: cannot find 'getpwnam_r' in scope
178 |             while true {
179 |
180 |                 let error = getpwnam_r(name, &pwd, buffer, size, &result)
    |                             `- error: cannot find 'getpwnam_r' in scope
181 |
182 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:204:23: error: cannot find 'group' in scope
202 |         func queryGroupIdentity(_ name: String) throws(LowLevelError) -> PlatformIdentity? {
203 |
204 |             var grp = group()
    |                       `- error: cannot find 'group' in scope
205 |             var size = sysconf(Int32(_SC_GETGR_R_SIZE_MAX))
206 |             if size <= 0 { size = 1024 }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:210:54: error: cannot find type 'group' in scope
208 |             var buffer = UnsafeMutablePointer<CChar>.allocate(capacity: size)
209 |             defer { buffer.deallocate() }
210 |             var result = nil as UnsafeMutablePointer<group>?
    |                                                      `- error: cannot find type 'group' in scope
211 |
212 |             while true {
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:214:29: error: cannot find 'getgrnam_r' in scope
212 |             while true {
213 |
214 |                 let error = getgrnam_r(name, &grp, buffer, size, &result)
    |                             `- error: cannot find 'getgrnam_r' in scope
215 |
216 |                 if error == 0 { break }
/host/spi-builder-workspace/Sources/FileSystemCore/InternalPlatformAPI/InternalPlatformAPI.swift:275:19: error: cannot find 'getuid' in scope
273 |         #else
274 |
275 |         let uid = getuid()
    |                   `- error: cannot find 'getuid' in scope
276 |         return PlatformIdentity(rawId: uid, platformKind: .user)
277 |
BUILD FAILURE 6.2 wasm