Build Information
Failed to build SwiftCardanoTxValidator, reference 0.6.5 (126a94), with Swift 6.3 for Android on 20 Nov 2026 19:42:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2818/2979] Compiling SwiftCardanoCore StakeAddressInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2819/2979] Compiling SwiftCardanoCore Tuple.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2820/2979] Compiling SwiftCardanoCore TypeAliases.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2821/2979] Compiling SwiftCardanoCore Url.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2822/2979] Compiling SwiftCardanoCore Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2823/2979] Compiling SwiftCardanoCore Extensions.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2824/2979] Compiling SwiftCardanoCore FileHash.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2825/2979] Compiling SwiftCardanoCore Logging.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2826/2979] Compiling SwiftCardanoCore OwnerOnlyFile.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2827/2979] Compiling SwiftCardanoCore Utils.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2828/2979] Compiling SwiftCardanoCore Version.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2829/2979] Compiling SwiftCardanoCore embedded_resources.swift
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/.build/checkouts/swift-cardano-core/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/.build/checkouts/swift-cardano-core/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.3.2-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[2830/2979] Compiling SwiftCardanoCore JSONSerializable.swift
[2831/2979] Compiling SwiftCardanoCore LedgerDuplicateRules.swift
[2832/2979] Compiling SwiftCardanoCore LedgerFields.swift
[2833/2979] Compiling SwiftCardanoCore PayloadCBORSerializable.swift
[2834/2979] Compiling SwiftCardanoCore PayloadSerializable.swift
[2835/2979] Compiling SwiftCardanoCore Serializable.swift
[2836/2979] Compiling SwiftCardanoCore TextEnvelopable.swift
[2837/2979] Compiling SwiftCardanoCore Signature.swift
[2838/2979] Compiling SwiftCardanoCore OperationalCertificate.swift
[2839/2979] Compiling SwiftCardanoCore OperationalCertificateIssueCounter.swift
[2840/2979] Compiling SwiftCardanoCore PoolMetadata.swift
[2841/2979] Compiling SwiftCardanoCore PoolOperator.swift
[2842/2979] Compiling SwiftCardanoCore MultiHostName.swift
[2843/2979] Compiling SwiftCardanoCore PoolParams.swift
[2844/2979] Compiling SwiftCardanoCore Relay.swift
[2845/2979] Compiling SwiftCardanoCore SingleHostAddr.swift
[2846/2979] Compiling SwiftCardanoCore SingleHostName.swift
[2847/2979] Compiling SwiftCardanoCore Asset.swift
[2848/2979] Compiling SwiftCardanoCore Datum.swift
[2849/2979] Compiling SwiftCardanoCore MultiAsset.swift
[2850/2979] Compiling SwiftCardanoCore Script.swift
[2851/2979] Compiling SwiftCardanoCore GovernanceCredential.swift
[2852/2979] Compiling SwiftCardanoCore Bech32.swift
[2853/2979] Compiling SwiftCardanoCore Bip32.swift
[2854/2979] Compiling SwiftCardanoCore Committee.swift
[2855/2979] Compiling SwiftCardanoCore DRep.swift
[2856/2979] Compiling SwiftCardanoCore Governance.swift
[2857/2979] Compiling SwiftCardanoCore HardForkInitiationAction.swift
[2858/2979] Compiling SwiftCardanoCore InfoAction.swift
[2859/2979] Compiling SwiftCardanoCore NewConstitution.swift
[2860/2979] Compiling SwiftCardanoCore NoConfidence.swift
[2861/2979] Compiling SwiftCardanoCore ParameterChangeAction.swift
[2862/2979] Compiling SwiftCardanoCore TreasuryWithdrawalsAction.swift
[2863/2979] Compiling SwiftCardanoCore UpdateCommittee.swift
[2864/2979] Compiling SwiftCardanoCore ProposalProcedure.swift
[2865/2979] Compiling SwiftCardanoCore Voting.swift
[2866/2979] Compiling SwiftCardanoCore Hash.swift
[2867/2979] Compiling SwiftCardanoCore CommitteeKey.swift
[2868/2979] Compiling SwiftCardanoCore DRepKey.swift
[2869/2979] Compiling SwiftCardanoCore KESKey.swift
[2870/2979] Compiling SwiftCardanoCore PaymentKey.swift
[2871/2979] Compiling SwiftCardanoCore SigningKey.swift
[2872/2979] Compiling SwiftCardanoCore StakeKey.swift
[2873/2979] Compiling SwiftCardanoCore ProtocolParameters.swift
[2874/2979] Compiling SwiftCardanoCore CostModels.swift
[2875/2979] Compiling SwiftCardanoCore ExecutionUnits.swift
[2876/2979] Compiling SwiftCardanoCore BigInteger.swift
[2877/2979] Compiling SwiftCardanoCore Bytes.swift
[2878/2979] Compiling SwiftCardanoCore Constr.swift
[2879/2979] Compiling SwiftCardanoCore PlutusData.swift
[2880/2979] Compiling SwiftCardanoCore PlutusDataEquality.swift
[2881/2979] Compiling SwiftCardanoCore PlutusDataProtocol.swift
[2882/2979] Compiling SwiftCardanoCore PlutusDataReader.swift
[2883/2979] Compiling SwiftCardanoCore PlutusDataTree.swift
[2884/2979] Compiling SwiftCardanoCore PlutusDataWriter.swift
[2885/2979] Compiling SwiftCardanoCore Unit.swift
[2886/2979] Compiling SwiftCardanoCore PlutusHelpers.swift
[2887/2979] Compiling SwiftCardanoCore PlutusTypes.swift
[2888/2979] Compiling SwiftCardanoCore RawPlutusData.swift
[2889/2979] Compiling SwiftCardanoCore Redeemer.swift
[2890/2979] Compiling SwiftCardanoCore CBORCodableCompat.swift
[2891/2979] Compiling SwiftCardanoCore CBORItemScanner.swift
[2892/2979] Compiling SwiftCardanoCore CBORSerializable.swift
[2893/2979] Compiling SwiftCardanoCore JSONLoadable.swift
[2894/2979] Compiling SwiftCardanoCore Transaction.swift
[2895/2979] Compiling SwiftCardanoCore TransactionBody.swift
[2896/2979] Compiling SwiftCardanoCore TransactionInput.swift
[2897/2979] Compiling SwiftCardanoCore BabbageTransactionOutput.swift
[2898/2979] Compiling SwiftCardanoCore ShelleyTransactionOutput.swift
[2899/2979] Compiling SwiftCardanoCore TransactionOutput.swift
[2900/2979] Compiling SwiftCardanoCore UTxO.swift
[2901/2979] Compiling SwiftCardanoCore Value.swift
[2902/2979] Compiling SwiftCardanoCore Withdrawals.swift
[2903/2979] Compiling SwiftCardanoCore Witness.swift
[2904/2979] Compiling SwiftCardanoCore Anchor.swift
[2905/2979] Compiling SwiftCardanoCore ByteString.swift
[2906/2979] Compiling SwiftCardanoCore CBORTag.swift
[2907/2979] Compiling SwiftCardanoCore ChainTip.swift
[2908/2979] Compiling SwiftCardanoCore Era.swift
[2909/2979] Compiling SwiftCardanoCore ExUnits.swift
[2910/2979] Compiling SwiftCardanoCore Fraction.swift
[2911/2979] Compiling SwiftCardanoCore IPAddress.swift
[2912/2979] Compiling SwiftCardanoCore IndefiniteList.swift
[2913/2979] Compiling SwiftCardanoCore Interval.swift
[2914/2979] Compiling SwiftCardanoCore ListOrSet.swift
[2915/2979] Compiling SwiftCardanoCore Address.swift
[2916/2979] Compiling SwiftCardanoCore AddressTypes.swift
[2917/2979] Compiling SwiftCardanoCore ByronAddress.swift
[2918/2979] Compiling SwiftCardanoCore DecodingEra.swift
[2919/2979] Compiling SwiftCardanoCore PointerAddress.swift
[2920/2979] Compiling SwiftCardanoCore Block.swift
[2921/2979] Compiling SwiftCardanoCore ByronBlock.swift
[2922/2979] Compiling SwiftCardanoCore ByronBlockBody.swift
[2923/2979] Compiling SwiftCardanoCore ByronBlockHeader.swift
[2924/2979] Compiling SwiftCardanoCore ByronCBOR.swift
[2925/2979] Compiling SwiftCardanoCore ByronTransaction.swift
[2926/2979] Compiling SwiftCardanoCore EraBlock.swift
[2927/2979] Compiling SwiftCardanoCore EraBlockHeader.swift
[2928/2979] Compiling SwiftCardanoCore Header.swift
[2929/2979] Compiling SwiftCardanoCore HeaderBody.swift
[2930/2979] Compiling SwiftCardanoCore KESSignature.swift
[2931/2979] Compiling SwiftCardanoCore VRFCert.swift
[2932/2979] Compiling SwiftCardanoCore AuthCommitteeHot.swift
[2933/2979] Compiling SwiftCardanoCore Certificate.swift
[2934/2979] Compiling SwiftCardanoCore CertificateFields.swift
[2935/2979] Compiling SwiftCardanoCore PoolRegistration.swift
[2936/2979] Compiling SwiftCardanoCore PoolRetirement.swift
[2937/2979] Compiling SwiftCardanoCore Register.swift
[2938/2979] Compiling SwiftCardanoCore RegisterDRep.swift
[2939/2979] Compiling SwiftCardanoCore ResignCommitteeCold.swift
[2940/2979] Compiling SwiftCardanoCore StakeDelegation.swift
[2941/2979] Compiling SwiftCardanoCore StakeDeregistration.swift
[2942/2979] Compiling SwiftCardanoCore StakeRegisterDelegate.swift
[2943/2979] Compiling SwiftCardanoCore StakeRegistration.swift
[2944/2979] Compiling SwiftCardanoCore StakeVoteDelegate.swift
[2945/2979] Compiling SwiftCardanoCore StakeVoteRegisterDelegate.swift
[2946/2979] Compiling SwiftCardanoCore Unregister.swift
[2947/2979] Compiling SwiftCardanoCore UnregisterDRep.swift
[2948/2979] Compiling SwiftCardanoCore UpdateDRep.swift
[2949/2979] Compiling SwiftCardanoCore VoteDelegate.swift
[2950/2979] Compiling SwiftCardanoCore VoteRegisterDelegate.swift
[2951/2979] Compiling SwiftCardanoCore AlonzoGenesis.swift
[2952/2979] Compiling SwiftCardanoCore ByronGenesis.swift
[2953/2979] Compiling SwiftCardanoCore ConwayGenesis.swift
[2954/2979] Compiling SwiftCardanoCore NodeConfig.swift
[2955/2979] Compiling SwiftCardanoCore ShelleyGenesis.swift
[2956/2979] Compiling SwiftCardanoCore Topology.swift
[2957/2979] Compiling SwiftCardanoCore Credential.swift
[2958/2979] Compiling SwiftCardanoCore CredentialType.swift
[2959/2979] Compiling SwiftCardanoCore StakePoolKey.swift
[2960/2979] Compiling SwiftCardanoCore VRFKey.swift
[2961/2979] Compiling SwiftCardanoCore VerificationKey.swift
[2962/2979] Compiling SwiftCardanoCore BootstrapWitness.swift
[2963/2979] Compiling SwiftCardanoCore GenesisKeyDelegation.swift
[2964/2979] Compiling SwiftCardanoCore MoveInstantaneousRewards.swift
[2965/2979] Compiling SwiftCardanoCore Update.swift
[2966/2979] Compiling SwiftCardanoCore Metadata.swift
[2967/2979] Compiling SwiftCardanoCore MetadatumReader.swift
[2968/2979] Compiling SwiftCardanoCore MetadatumTree.swift
[2969/2979] Compiling SwiftCardanoCore AfterScript.swift
[2970/2979] Compiling SwiftCardanoCore BeforeScript.swift
[2971/2979] Compiling SwiftCardanoCore NativeScript.swift
[2972/2979] Compiling SwiftCardanoCore NativeScriptTree.swift
[2973/2979] Compiling SwiftCardanoCore ScriptAll.swift
[2974/2979] Compiling SwiftCardanoCore ScriptAny.swift
[2975/2979] Compiling SwiftCardanoCore ScriptNofK.swift
[2976/2979] Compiling SwiftCardanoCore ScriptPubkey.swift
[2977/2979] Compiling SwiftCardanoCore Network.swift
[2978/2979] Compiling SwiftCardanoCore GenesisParameters.swift
[2979/2979] Compiling SwiftCardanoCore LedgerRational.swift
BUILD FAILURE 6.3 android