The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftCardanoCore, reference main (24c384), with Swift 6.1 for Android on 10 Nov 2026 15:35:01 UTC.

Build Command

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

Build Log

 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[474/616] Compiling SwiftCardanoCore SlotTimeline.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[475/616] Compiling SwiftCardanoCore StakeAddressInfo.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[476/616] Compiling SwiftCardanoCore Tuple.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[477/616] Compiling SwiftCardanoCore TypeAliases.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[478/616] Compiling SwiftCardanoCore Url.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[479/616] Compiling SwiftCardanoCore Errors.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[480/616] Compiling SwiftCardanoCore Extensions.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[481/616] Compiling SwiftCardanoCore FileHash.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[482/616] Compiling SwiftCardanoCore Logging.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[483/616] Compiling SwiftCardanoCore OwnerOnlyFile.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[484/616] Compiling SwiftCardanoCore Utils.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[485/616] Compiling SwiftCardanoCore Version.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[486/616] Compiling SwiftCardanoCore embedded_resources.swift
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:18: error: cannot find 'open' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                  `- error: cannot find 'open' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:29: error: cannot find 'O_WRONLY' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                             `- error: cannot find 'O_WRONLY' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:40: error: cannot find 'O_CREAT' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                        `- error: cannot find 'O_CREAT' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:50: error: cannot find 'O_EXCL' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                  `- error: cannot find 'O_EXCL' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:59: error: cannot find 'O_NOFOLLOW' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                           `- error: cannot find 'O_NOFOLLOW' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:40:72: error: cannot find 'O_CLOEXEC' in scope
 38 |     #else
 39 |     if !overwrite {
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                        `- error: cannot find 'O_CLOEXEC' in scope
 41 |         guard fd >= 0 else {
 42 |             let code = errno
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:42:24: error: cannot find 'errno' in scope
 40 |         let fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
 41 |         guard fd >= 0 else {
 42 |             let code = errno
    |                        `- error: cannot find 'errno' in scope
 43 |             if code == EEXIST {
 44 |                 throw CardanoCoreError.ioError("File already exists: \(path)")
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:51:13: error: cannot find 'unlink' in scope
 49 |             try writeAll(data, to: fd, path: path)
 50 |         } catch {
 51 |             unlink(path)
    |             `- error: cannot find 'unlink' in scope
 52 |             throw error
 53 |         }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:14: error: cannot find 'open' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |              `- error: cannot find 'open' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:30: error: cannot find 'O_WRONLY' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                              `- error: cannot find 'O_WRONLY' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:41: error: cannot find 'O_CREAT' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                         `- error: cannot find 'O_CREAT' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:51: error: cannot find 'O_EXCL' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                   `- error: cannot find 'O_EXCL' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:60: error: cannot find 'O_NOFOLLOW' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                            `- error: cannot find 'O_NOFOLLOW' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:60:73: error: cannot find 'O_CLOEXEC' in scope
 58 |     let temporary = url.deletingLastPathComponent()
 59 |         .appendingPathComponent(".\(url.lastPathComponent).\(UUID().uuidString).tmp").path
 60 |     let fd = open(temporary, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0o600)
    |                                                                         `- error: cannot find 'O_CLOEXEC' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:63:89: error: cannot find 'errno' in scope
 61 |     guard fd >= 0 else {
 62 |         throw CardanoCoreError.ioError(
 63 |             "Cannot create a temporary file next to \(path): \(String(cString: strerror(errno)))")
    |                                                                                         `- error: cannot find 'errno' in scope
 64 |     }
 65 |     do {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:68:96: error: cannot find 'errno' in scope
 66 |         try writeAll(data, to: fd, path: path)
 67 |         guard rename(temporary, path) == 0 else {
 68 |             throw CardanoCoreError.ioError("Cannot replace \(path): \(String(cString: strerror(errno)))")
    |                                                                                                `- error: cannot find 'errno' in scope
 69 |         }
 70 |     } catch {
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:71:9: error: cannot find 'unlink' in scope
 69 |         }
 70 |     } catch {
 71 |         unlink(temporary)
    |         `- error: cannot find 'unlink' in scope
 72 |         throw error
 73 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:83:13: error: cannot find 'close' in scope
 81 | /// `fd` is closed whether or not this throws.
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
    |             `- error: cannot find 'close' in scope
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:84:11: error: cannot find 'fchmod' in scope
 82 | private func writeAll(_ data: Data, to fd: Int32, path: String) throws {
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
    |           `- error: cannot find 'fchmod' in scope
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
 86 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:85:100: error: cannot find 'errno' in scope
 83 |     defer { close(fd) }
 84 |     guard fchmod(fd, 0o600) == 0 else {
 85 |         throw CardanoCoreError.ioError("Cannot set the mode of \(path): \(String(cString: strerror(errno)))")
    |                                                                                                    `- error: cannot find 'errno' in scope
 86 |     }
 87 |     try data.withUnsafeBytes { (buffer: UnsafeRawBufferPointer) in
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:91:27: error: cannot find 'write' in scope
 89 |         var remaining = buffer.count
 90 |         while remaining > 0 {
 91 |             let written = write(fd, pointer, remaining)
    |                           `- error: cannot find 'write' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:93:20: error: cannot find 'errno' in scope
 91 |             let written = write(fd, pointer, remaining)
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
    |                    `- error: cannot find 'errno' in scope
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
 95 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:94:98: error: cannot find 'errno' in scope
 92 |             if written < 0 {
 93 |                 if errno == EINTR { continue }
 94 |                 throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                                  `- error: cannot find 'errno' in scope
 95 |             }
 96 |             pointer += written
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:100:11: error: cannot find 'fsync' in scope
 98 |         }
 99 |     }
100 |     guard fsync(fd) == 0 else {
    |           `- error: cannot find 'fsync' in scope
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
102 |     }
/host/spi-builder-workspace/Sources/SwiftCardanoCore/Utils/OwnerOnlyFile.swift:101:90: error: cannot find 'errno' in scope
 99 |     }
100 |     guard fsync(fd) == 0 else {
101 |         throw CardanoCoreError.ioError("Cannot write \(path): \(String(cString: strerror(errno)))")
    |                                                                                          `- error: cannot find 'errno' in scope
102 |     }
103 | }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[487/616] Compiling SwiftCardanoCore JSONSerializable.swift
[488/616] Compiling SwiftCardanoCore LedgerDuplicateRules.swift
[489/616] Compiling SwiftCardanoCore LedgerFields.swift
[490/616] Compiling SwiftCardanoCore PayloadCBORSerializable.swift
[491/616] Compiling SwiftCardanoCore PayloadSerializable.swift
[492/616] Compiling SwiftCardanoCore Serializable.swift
[493/616] Compiling SwiftCardanoCore TextEnvelopable.swift
[494/616] Compiling SwiftCardanoCore Signature.swift
[495/616] Compiling SwiftCardanoCore OperationalCertificate.swift
[496/616] Compiling SwiftCardanoCore OperationalCertificateIssueCounter.swift
[497/616] Compiling SwiftCardanoCore PoolMetadata.swift
[498/616] Compiling SwiftCardanoCore PoolOperator.swift
[499/616] Compiling SwiftCardanoCore MultiHostName.swift
[500/616] Compiling SwiftCardanoCore PoolParams.swift
[501/616] Compiling SwiftCardanoCore Relay.swift
[502/616] Compiling SwiftCardanoCore SingleHostAddr.swift
[503/616] Compiling SwiftCardanoCore SingleHostName.swift
[504/616] Compiling SwiftCardanoCore Asset.swift
[505/616] Compiling SwiftCardanoCore Datum.swift
[506/616] Compiling SwiftCardanoCore MultiAsset.swift
[507/616] Compiling SwiftCardanoCore Script.swift
[508/616] Compiling SwiftCardanoCore GovernanceCredential.swift
[509/616] Compiling SwiftCardanoCore Bech32.swift
[510/616] Compiling SwiftCardanoCore Bip32.swift
[511/616] Compiling SwiftCardanoCore Committee.swift
[512/616] Compiling SwiftCardanoCore DRep.swift
[513/616] Compiling SwiftCardanoCore Governance.swift
[514/616] Compiling SwiftCardanoCore HardForkInitiationAction.swift
[515/616] Compiling SwiftCardanoCore InfoAction.swift
[516/616] Compiling SwiftCardanoCore NewConstitution.swift
[517/616] Compiling SwiftCardanoCore NoConfidence.swift
[518/616] Compiling SwiftCardanoCore ParameterChangeAction.swift
[519/616] Compiling SwiftCardanoCore TreasuryWithdrawalsAction.swift
[520/616] Compiling SwiftCardanoCore UpdateCommittee.swift
[521/616] Compiling SwiftCardanoCore ProposalProcedure.swift
[522/616] Compiling SwiftCardanoCore Voting.swift
[523/616] Compiling SwiftCardanoCore Hash.swift
[524/616] Compiling SwiftCardanoCore CommitteeKey.swift
[525/616] Compiling SwiftCardanoCore DRepKey.swift
[526/616] Compiling SwiftCardanoCore KESKey.swift
[527/616] Compiling SwiftCardanoCore PaymentKey.swift
[528/616] Compiling SwiftCardanoCore SigningKey.swift
[529/616] Compiling SwiftCardanoCore StakeKey.swift
[530/616] Compiling SwiftCardanoCore Address.swift
[531/616] Compiling SwiftCardanoCore AddressTypes.swift
[532/616] Compiling SwiftCardanoCore ByronAddress.swift
[533/616] Compiling SwiftCardanoCore DecodingEra.swift
[534/616] Compiling SwiftCardanoCore PointerAddress.swift
[535/616] Compiling SwiftCardanoCore Block.swift
[536/616] Compiling SwiftCardanoCore ByronBlock.swift
[537/616] Compiling SwiftCardanoCore ByronBlockBody.swift
[538/616] Compiling SwiftCardanoCore ByronBlockHeader.swift
[539/616] Compiling SwiftCardanoCore ByronCBOR.swift
[540/616] Compiling SwiftCardanoCore ByronTransaction.swift
[541/616] Compiling SwiftCardanoCore EraBlock.swift
[542/616] Compiling SwiftCardanoCore EraBlockHeader.swift
[543/616] Compiling SwiftCardanoCore Header.swift
[544/616] Compiling SwiftCardanoCore HeaderBody.swift
[545/616] Compiling SwiftCardanoCore KESSignature.swift
[546/616] Compiling SwiftCardanoCore VRFCert.swift
[547/616] Compiling SwiftCardanoCore AuthCommitteeHot.swift
[548/616] Compiling SwiftCardanoCore Certificate.swift
[549/616] Compiling SwiftCardanoCore CertificateFields.swift
[550/616] Compiling SwiftCardanoCore PoolRegistration.swift
[551/616] Compiling SwiftCardanoCore PoolRetirement.swift
[552/616] Compiling SwiftCardanoCore Transaction.swift
[553/616] Compiling SwiftCardanoCore TransactionBody.swift
[554/616] Compiling SwiftCardanoCore TransactionInput.swift
[555/616] Compiling SwiftCardanoCore BabbageTransactionOutput.swift
[556/616] Compiling SwiftCardanoCore ShelleyTransactionOutput.swift
[557/616] Compiling SwiftCardanoCore TransactionOutput.swift
[558/616] Compiling SwiftCardanoCore UTxO.swift
[559/616] Compiling SwiftCardanoCore Value.swift
[560/616] Compiling SwiftCardanoCore Withdrawals.swift
[561/616] Compiling SwiftCardanoCore Witness.swift
[562/616] Compiling SwiftCardanoCore Anchor.swift
[563/616] Compiling SwiftCardanoCore ByteString.swift
[564/616] Compiling SwiftCardanoCore CBORTag.swift
[565/616] Compiling SwiftCardanoCore ChainTip.swift
[566/616] Compiling SwiftCardanoCore Era.swift
[567/616] Compiling SwiftCardanoCore ExUnits.swift
[568/616] Compiling SwiftCardanoCore Fraction.swift
[569/616] Compiling SwiftCardanoCore IPAddress.swift
[570/616] Compiling SwiftCardanoCore IndefiniteList.swift
[571/616] Compiling SwiftCardanoCore Interval.swift
[572/616] Compiling SwiftCardanoCore ListOrSet.swift
[573/616] Compiling SwiftCardanoCore ProtocolParameters.swift
[574/616] Compiling SwiftCardanoCore CostModels.swift
[575/616] Compiling SwiftCardanoCore ExecutionUnits.swift
[576/616] Compiling SwiftCardanoCore BigInteger.swift
[577/616] Compiling SwiftCardanoCore Bytes.swift
[578/616] Compiling SwiftCardanoCore Constr.swift
[579/616] Compiling SwiftCardanoCore PlutusData.swift
[580/616] Compiling SwiftCardanoCore PlutusDataEquality.swift
[581/616] Compiling SwiftCardanoCore PlutusDataProtocol.swift
[582/616] Compiling SwiftCardanoCore PlutusDataReader.swift
[583/616] Compiling SwiftCardanoCore PlutusDataTree.swift
[584/616] Compiling SwiftCardanoCore PlutusDataWriter.swift
[585/616] Compiling SwiftCardanoCore Unit.swift
[586/616] Compiling SwiftCardanoCore PlutusHelpers.swift
[587/616] Compiling SwiftCardanoCore PlutusTypes.swift
[588/616] Compiling SwiftCardanoCore RawPlutusData.swift
[589/616] Compiling SwiftCardanoCore Redeemer.swift
[590/616] Compiling SwiftCardanoCore CBORCodableCompat.swift
[591/616] Compiling SwiftCardanoCore CBORItemScanner.swift
[592/616] Compiling SwiftCardanoCore CBORSerializable.swift
[593/616] Compiling SwiftCardanoCore JSONLoadable.swift
[594/616] Compiling SwiftCardanoCore Register.swift
[595/616] Compiling SwiftCardanoCore RegisterDRep.swift
[596/616] Compiling SwiftCardanoCore ResignCommitteeCold.swift
[597/616] Compiling SwiftCardanoCore StakeDelegation.swift
[598/616] Compiling SwiftCardanoCore StakeDeregistration.swift
[599/616] Compiling SwiftCardanoCore StakeRegisterDelegate.swift
[600/616] Compiling SwiftCardanoCore StakeRegistration.swift
[601/616] Compiling SwiftCardanoCore StakeVoteDelegate.swift
[602/616] Compiling SwiftCardanoCore StakeVoteRegisterDelegate.swift
[603/616] Compiling SwiftCardanoCore Unregister.swift
[604/616] Compiling SwiftCardanoCore UnregisterDRep.swift
[605/616] Compiling SwiftCardanoCore UpdateDRep.swift
[606/616] Compiling SwiftCardanoCore VoteDelegate.swift
[607/616] Compiling SwiftCardanoCore VoteRegisterDelegate.swift
[608/616] Compiling SwiftCardanoCore AlonzoGenesis.swift
[609/616] Compiling SwiftCardanoCore ByronGenesis.swift
[610/616] Compiling SwiftCardanoCore ConwayGenesis.swift
[611/616] Compiling SwiftCardanoCore NodeConfig.swift
[612/616] Compiling SwiftCardanoCore ShelleyGenesis.swift
[613/616] Compiling SwiftCardanoCore Topology.swift
[614/616] Compiling SwiftCardanoCore Credential.swift
[615/616] Compiling SwiftCardanoCore CredentialType.swift
[616/616] Emitting module SwiftCardanoCore
BUILD FAILURE 6.1 android