Build Information
Failed to build swift-file-system, reference 0.1.0 (31dd96), with Swift 6.2 for Wasm on 4 Oct 2026 02:43:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-2":/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>&1Build Log
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)
[286/330] Compiling FileSystemCore UnsafeSystemHandle+PosixSyscall.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:243:64: error: cannot find 'O_DIRECTORY' in scope
241 | #else
242 |
243 | let handle = PlatformCLib.open(path.string, O_RDONLY | O_DIRECTORY)
| `- error: cannot find 'O_DIRECTORY' in scope
244 | guard handle >= 0 else {
245 | 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+Syscall.swift:702:25: error: cannot find 'dup' in scope
700 | #else
701 |
702 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
703 | guard newHandle >= 0 else {
704 | try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:756:21: error: module 'PlatformCLib' has no member named 'pipe'
754 | let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
755 | ptr.initialize(repeating: 0)
756 | return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
| `- error: module 'PlatformCLib' has no member named 'pipe'
757 | }
758 | guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:802:25: error: cannot find 'dup' in scope
800 | #else
801 |
802 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
803 | guard newHandle >= 0 else {
804 | 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)
[287/330] Compiling FileSystemCore UnsafeSystemHandle+Syscall.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:243:64: error: cannot find 'O_DIRECTORY' in scope
241 | #else
242 |
243 | let handle = PlatformCLib.open(path.string, O_RDONLY | O_DIRECTORY)
| `- error: cannot find 'O_DIRECTORY' in scope
244 | guard handle >= 0 else {
245 | 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+Syscall.swift:702:25: error: cannot find 'dup' in scope
700 | #else
701 |
702 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
703 | guard newHandle >= 0 else {
704 | try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:756:21: error: module 'PlatformCLib' has no member named 'pipe'
754 | let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
755 | ptr.initialize(repeating: 0)
756 | return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
| `- error: module 'PlatformCLib' has no member named 'pipe'
757 | }
758 | guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:802:25: error: cannot find 'dup' in scope
800 | #else
801 |
802 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
803 | guard newHandle >= 0 else {
804 | 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)
[288/330] Compiling FileSystemCore UnsafeSystemHandle+WindowsOverlappedSyscall.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:243:64: error: cannot find 'O_DIRECTORY' in scope
241 | #else
242 |
243 | let handle = PlatformCLib.open(path.string, O_RDONLY | O_DIRECTORY)
| `- error: cannot find 'O_DIRECTORY' in scope
244 | guard handle >= 0 else {
245 | 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+Syscall.swift:702:25: error: cannot find 'dup' in scope
700 | #else
701 |
702 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
703 | guard newHandle >= 0 else {
704 | try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:756:21: error: module 'PlatformCLib' has no member named 'pipe'
754 | let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
755 | ptr.initialize(repeating: 0)
756 | return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
| `- error: module 'PlatformCLib' has no member named 'pipe'
757 | }
758 | guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:802:25: error: cannot find 'dup' in scope
800 | #else
801 |
802 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
803 | guard newHandle >= 0 else {
804 | 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)
[289/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:243:64: error: cannot find 'O_DIRECTORY' in scope
241 | #else
242 |
243 | let handle = PlatformCLib.open(path.string, O_RDONLY | O_DIRECTORY)
| `- error: cannot find 'O_DIRECTORY' in scope
244 | guard handle >= 0 else {
245 | 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+Syscall.swift:702:25: error: cannot find 'dup' in scope
700 | #else
701 |
702 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
703 | guard newHandle >= 0 else {
704 | try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:756:21: error: module 'PlatformCLib' has no member named 'pipe'
754 | let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
755 | ptr.initialize(repeating: 0)
756 | return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
| `- error: module 'PlatformCLib' has no member named 'pipe'
757 | }
758 | guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:802:25: error: cannot find 'dup' in scope
800 | #else
801 |
802 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
803 | guard newHandle >= 0 else {
804 | 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)
[290/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:243:64: error: cannot find 'O_DIRECTORY' in scope
241 | #else
242 |
243 | let handle = PlatformCLib.open(path.string, O_RDONLY | O_DIRECTORY)
| `- error: cannot find 'O_DIRECTORY' in scope
244 | guard handle >= 0 else {
245 | 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+Syscall.swift:702:25: error: cannot find 'dup' in scope
700 | #else
701 |
702 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
703 | guard newHandle >= 0 else {
704 | try LowLevelError.assertError()
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:756:21: error: module 'PlatformCLib' has no member named 'pipe'
754 | let (result, readFd, writeFd) = withUnsafeTemporaryAllocation(of: CInt.self, capacity: 2) { ptr in
755 | ptr.initialize(repeating: 0)
756 | return (PlatformCLib.pipe(ptr.baseAddress!), ptr[0], ptr[1])
| `- error: module 'PlatformCLib' has no member named 'pipe'
757 | }
758 | guard result == 0 else {
/host/spi-builder-workspace/Sources/FileSystemCore/UnsafeSystemHandle/UnsafeSystemHandle+Syscall.swift:802:25: error: cannot find 'dup' in scope
800 | #else
801 |
802 | let newHandle = dup(self.unsafeRawHandle)
| `- error: cannot find 'dup' in scope
803 | guard newHandle >= 0 else {
804 | 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)
[291/330] Compiling FileSystemCore WindowsRawAcl.swift
[292/330] Compiling FileSystemCore WindowsRawAclState.swift
[293/330] Compiling FileSystemCore WindowsSecurityDescriptor.swift
[294/330] Compiling FileSystemCore WindowsSecurityDescriptorTypes.swift
[295/330] Compiling FileSystemCore WindowsSecurityDescriptorView.swift
[301/330] Compiling FileSystemCore WindowsSelfRelativeSecurityDescriptor.swift
[302/330] Compiling FileSystemCore WindowsSid.swift
[303/330] Compiling FileSystemCore FileOperationOptions.swift
[304/330] 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 |
[305/330] 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 |
[306/330] 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 |
[307/330] 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 |
[308/330] 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 |
[309/330] 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 |
[310/330] 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 |
[311/330] 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