Build Information
Failed to build SwiftOgmios, reference 0.4.3 (f4539c), with Swift 6.3 for Android on 9 Nov 2026 00:14:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344846-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
[1762/1923] 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
[1763/1923] 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
[1764/1923] 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
[1765/1923] 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
[1766/1923] 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
[1767/1923] 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
[1768/1923] 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
[1769/1923] 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
[1770/1923] 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
[1771/1923] 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
[1772/1923] 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
[1773/1923] 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
[1774/1923] Compiling SwiftCardanoCore GovernanceCredential.swift
[1775/1923] Compiling SwiftCardanoCore Bech32.swift
[1776/1923] Compiling SwiftCardanoCore Bip32.swift
[1777/1923] Compiling SwiftCardanoCore Committee.swift
[1778/1923] Compiling SwiftCardanoCore DRep.swift
[1779/1923] Compiling SwiftCardanoCore Governance.swift
[1780/1923] Compiling SwiftCardanoCore HardForkInitiationAction.swift
[1781/1923] Compiling SwiftCardanoCore InfoAction.swift
[1782/1923] Compiling SwiftCardanoCore NewConstitution.swift
[1783/1923] Compiling SwiftCardanoCore NoConfidence.swift
[1784/1923] Compiling SwiftCardanoCore ParameterChangeAction.swift
[1785/1923] Compiling SwiftCardanoCore TreasuryWithdrawalsAction.swift
[1786/1923] Compiling SwiftCardanoCore UpdateCommittee.swift
[1787/1923] Compiling SwiftCardanoCore ProposalProcedure.swift
[1788/1923] Compiling SwiftCardanoCore Voting.swift
[1789/1923] Compiling SwiftCardanoCore Hash.swift
[1790/1923] Compiling SwiftCardanoCore CommitteeKey.swift
[1791/1923] Compiling SwiftCardanoCore DRepKey.swift
[1792/1923] Compiling SwiftCardanoCore KESKey.swift
[1793/1923] Compiling SwiftCardanoCore PaymentKey.swift
[1794/1923] Compiling SwiftCardanoCore SigningKey.swift
[1795/1923] Compiling SwiftCardanoCore StakeKey.swift
[1796/1923] Compiling SwiftCardanoCore ProtocolParameters.swift
[1797/1923] Compiling SwiftCardanoCore CostModels.swift
[1798/1923] Compiling SwiftCardanoCore ExecutionUnits.swift
[1799/1923] Compiling SwiftCardanoCore BigInteger.swift
[1800/1923] Compiling SwiftCardanoCore Bytes.swift
[1801/1923] Compiling SwiftCardanoCore Constr.swift
[1802/1923] Compiling SwiftCardanoCore PlutusData.swift
[1803/1923] Compiling SwiftCardanoCore PlutusDataEquality.swift
[1804/1923] Compiling SwiftCardanoCore PlutusDataProtocol.swift
[1805/1923] Compiling SwiftCardanoCore PlutusDataReader.swift
[1806/1923] Compiling SwiftCardanoCore PlutusDataTree.swift
[1807/1923] Compiling SwiftCardanoCore PlutusDataWriter.swift
[1808/1923] Compiling SwiftCardanoCore Unit.swift
[1809/1923] Compiling SwiftCardanoCore PlutusHelpers.swift
[1810/1923] Compiling SwiftCardanoCore PlutusTypes.swift
[1811/1923] Compiling SwiftCardanoCore RawPlutusData.swift
[1812/1923] Compiling SwiftCardanoCore Redeemer.swift
[1813/1923] Compiling SwiftCardanoCore CBORCodableCompat.swift
[1814/1923] Compiling SwiftCardanoCore CBORItemScanner.swift
[1815/1923] Compiling SwiftCardanoCore CBORSerializable.swift
[1816/1923] Compiling SwiftCardanoCore JSONLoadable.swift
[1817/1923] Compiling SwiftCardanoCore JSONSerializable.swift
[1818/1923] Compiling SwiftCardanoCore LedgerDuplicateRules.swift
[1819/1923] Compiling SwiftCardanoCore LedgerFields.swift
[1820/1923] Compiling SwiftCardanoCore PayloadCBORSerializable.swift
[1821/1923] Compiling SwiftCardanoCore PayloadSerializable.swift
[1822/1923] Compiling SwiftCardanoCore Serializable.swift
[1823/1923] Compiling SwiftCardanoCore TextEnvelopable.swift
[1824/1923] Compiling SwiftCardanoCore Signature.swift
[1825/1923] Compiling SwiftCardanoCore OperationalCertificate.swift
[1826/1923] Compiling SwiftCardanoCore OperationalCertificateIssueCounter.swift
[1827/1923] Compiling SwiftCardanoCore PoolMetadata.swift
[1828/1923] Compiling SwiftCardanoCore PoolOperator.swift
[1829/1923] Compiling SwiftCardanoCore MultiHostName.swift
[1830/1923] Compiling SwiftCardanoCore PoolParams.swift
[1831/1923] Compiling SwiftCardanoCore Relay.swift
[1832/1923] Compiling SwiftCardanoCore SingleHostAddr.swift
[1833/1923] Compiling SwiftCardanoCore SingleHostName.swift
[1834/1923] Compiling SwiftCardanoCore Asset.swift
[1835/1923] Compiling SwiftCardanoCore Datum.swift
[1836/1923] Compiling SwiftCardanoCore MultiAsset.swift
[1837/1923] Compiling SwiftCardanoCore Script.swift
[1838/1923] Compiling SwiftCardanoCore Transaction.swift
[1839/1923] Compiling SwiftCardanoCore TransactionBody.swift
[1840/1923] Compiling SwiftCardanoCore TransactionInput.swift
[1841/1923] Compiling SwiftCardanoCore BabbageTransactionOutput.swift
[1842/1923] Compiling SwiftCardanoCore ShelleyTransactionOutput.swift
[1843/1923] Compiling SwiftCardanoCore TransactionOutput.swift
[1844/1923] Compiling SwiftCardanoCore UTxO.swift
[1845/1923] Compiling SwiftCardanoCore Value.swift
[1846/1923] Compiling SwiftCardanoCore Withdrawals.swift
[1847/1923] Compiling SwiftCardanoCore Witness.swift
[1848/1923] Compiling SwiftCardanoCore Anchor.swift
[1849/1923] Compiling SwiftCardanoCore ByteString.swift
[1850/1923] Compiling SwiftCardanoCore CBORTag.swift
[1851/1923] Compiling SwiftCardanoCore ChainTip.swift
[1852/1923] Compiling SwiftCardanoCore Era.swift
[1853/1923] Compiling SwiftCardanoCore ExUnits.swift
[1854/1923] Compiling SwiftCardanoCore Fraction.swift
[1855/1923] Compiling SwiftCardanoCore IPAddress.swift
[1856/1923] Compiling SwiftCardanoCore IndefiniteList.swift
[1857/1923] Compiling SwiftCardanoCore Interval.swift
[1858/1923] Compiling SwiftCardanoCore ListOrSet.swift
[1859/1923] Compiling SwiftCardanoCore StakePoolKey.swift
[1860/1923] Compiling SwiftCardanoCore VRFKey.swift
[1861/1923] Compiling SwiftCardanoCore VerificationKey.swift
[1862/1923] Compiling SwiftCardanoCore BootstrapWitness.swift
[1863/1923] Compiling SwiftCardanoCore GenesisKeyDelegation.swift
[1864/1923] Compiling SwiftCardanoCore MoveInstantaneousRewards.swift
[1865/1923] Compiling SwiftCardanoCore Update.swift
[1866/1923] Compiling SwiftCardanoCore Metadata.swift
[1867/1923] Compiling SwiftCardanoCore MetadatumReader.swift
[1868/1923] Compiling SwiftCardanoCore MetadatumTree.swift
[1869/1923] Compiling SwiftCardanoCore AfterScript.swift
[1870/1923] Compiling SwiftCardanoCore BeforeScript.swift
[1871/1923] Compiling SwiftCardanoCore NativeScript.swift
[1872/1923] Compiling SwiftCardanoCore NativeScriptTree.swift
[1873/1923] Compiling SwiftCardanoCore ScriptAll.swift
[1874/1923] Compiling SwiftCardanoCore ScriptAny.swift
[1875/1923] Compiling SwiftCardanoCore ScriptNofK.swift
[1876/1923] Compiling SwiftCardanoCore ScriptPubkey.swift
[1877/1923] Compiling SwiftCardanoCore Network.swift
[1878/1923] Compiling SwiftCardanoCore GenesisParameters.swift
[1879/1923] Compiling SwiftCardanoCore LedgerRational.swift
[1880/1923] Compiling SwiftCardanoCore Address.swift
[1881/1923] Compiling SwiftCardanoCore AddressTypes.swift
[1882/1923] Compiling SwiftCardanoCore ByronAddress.swift
[1883/1923] Compiling SwiftCardanoCore DecodingEra.swift
[1884/1923] Compiling SwiftCardanoCore PointerAddress.swift
[1885/1923] Compiling SwiftCardanoCore Block.swift
[1886/1923] Compiling SwiftCardanoCore ByronBlock.swift
[1887/1923] Compiling SwiftCardanoCore ByronBlockBody.swift
[1888/1923] Compiling SwiftCardanoCore ByronBlockHeader.swift
[1889/1923] Compiling SwiftCardanoCore ByronCBOR.swift
[1890/1923] Compiling SwiftCardanoCore ByronTransaction.swift
[1891/1923] Compiling SwiftCardanoCore EraBlock.swift
[1892/1923] Compiling SwiftCardanoCore EraBlockHeader.swift
[1893/1923] Compiling SwiftCardanoCore Header.swift
[1894/1923] Compiling SwiftCardanoCore HeaderBody.swift
[1895/1923] Compiling SwiftCardanoCore KESSignature.swift
[1896/1923] Compiling SwiftCardanoCore VRFCert.swift
[1897/1923] Compiling SwiftCardanoCore AuthCommitteeHot.swift
[1898/1923] Compiling SwiftCardanoCore Certificate.swift
[1899/1923] Compiling SwiftCardanoCore CertificateFields.swift
[1900/1923] Compiling SwiftCardanoCore PoolRegistration.swift
[1901/1923] Compiling SwiftCardanoCore PoolRetirement.swift
[1902/1923] Compiling SwiftCardanoCore Register.swift
[1903/1923] Compiling SwiftCardanoCore RegisterDRep.swift
[1904/1923] Compiling SwiftCardanoCore ResignCommitteeCold.swift
[1905/1923] Compiling SwiftCardanoCore StakeDelegation.swift
[1906/1923] Compiling SwiftCardanoCore StakeDeregistration.swift
[1907/1923] Compiling SwiftCardanoCore StakeRegisterDelegate.swift
[1908/1923] Compiling SwiftCardanoCore StakeRegistration.swift
[1909/1923] Compiling SwiftCardanoCore StakeVoteDelegate.swift
[1910/1923] Compiling SwiftCardanoCore StakeVoteRegisterDelegate.swift
[1911/1923] Compiling SwiftCardanoCore Unregister.swift
[1912/1923] Compiling SwiftCardanoCore UnregisterDRep.swift
[1913/1923] Compiling SwiftCardanoCore UpdateDRep.swift
[1914/1923] Compiling SwiftCardanoCore VoteDelegate.swift
[1915/1923] Compiling SwiftCardanoCore VoteRegisterDelegate.swift
[1916/1923] Compiling SwiftCardanoCore AlonzoGenesis.swift
[1917/1923] Compiling SwiftCardanoCore ByronGenesis.swift
[1918/1923] Compiling SwiftCardanoCore ConwayGenesis.swift
[1919/1923] Compiling SwiftCardanoCore NodeConfig.swift
[1920/1923] Compiling SwiftCardanoCore ShelleyGenesis.swift
[1921/1923] Compiling SwiftCardanoCore Topology.swift
[1922/1923] Compiling SwiftCardanoCore Credential.swift
[1923/1923] Compiling SwiftCardanoCore CredentialType.swift
BUILD FAILURE 6.3 android