Build Information
Failed to build SwiftCardanoExplorers, reference 0.1.5 (bcb553), with Swift 6.3 for Android on 9 Nov 2026 11:18:14 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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
[953/1114] 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
[954/1114] 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
[955/1114] 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
[956/1114] 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
[957/1114] 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
[958/1114] 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
[959/1114] 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
[960/1114] 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
[961/1114] 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
[962/1114] 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
[963/1114] 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
[964/1114] 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
[965/1114] Compiling SwiftCardanoCore JSONSerializable.swift
[966/1114] Compiling SwiftCardanoCore LedgerDuplicateRules.swift
[967/1114] Compiling SwiftCardanoCore LedgerFields.swift
[968/1114] Compiling SwiftCardanoCore PayloadCBORSerializable.swift
[969/1114] Compiling SwiftCardanoCore PayloadSerializable.swift
[970/1114] Compiling SwiftCardanoCore Serializable.swift
[971/1114] Compiling SwiftCardanoCore TextEnvelopable.swift
[972/1114] Compiling SwiftCardanoCore Signature.swift
[973/1114] Compiling SwiftCardanoCore OperationalCertificate.swift
[974/1114] Compiling SwiftCardanoCore OperationalCertificateIssueCounter.swift
[975/1114] Compiling SwiftCardanoCore PoolMetadata.swift
[976/1114] Compiling SwiftCardanoCore PoolOperator.swift
[977/1114] Compiling SwiftCardanoCore MultiHostName.swift
[978/1114] Compiling SwiftCardanoCore PoolParams.swift
[979/1114] Compiling SwiftCardanoCore Relay.swift
[980/1114] Compiling SwiftCardanoCore SingleHostAddr.swift
[981/1114] Compiling SwiftCardanoCore SingleHostName.swift
[982/1114] Compiling SwiftCardanoCore Asset.swift
[983/1114] Compiling SwiftCardanoCore Datum.swift
[984/1114] Compiling SwiftCardanoCore MultiAsset.swift
[985/1114] Compiling SwiftCardanoCore Script.swift
[986/1114] Compiling SwiftCardanoCore StakePoolKey.swift
[987/1114] Compiling SwiftCardanoCore VRFKey.swift
[988/1114] Compiling SwiftCardanoCore VerificationKey.swift
[989/1114] Compiling SwiftCardanoCore BootstrapWitness.swift
[990/1114] Compiling SwiftCardanoCore GenesisKeyDelegation.swift
[991/1114] Compiling SwiftCardanoCore MoveInstantaneousRewards.swift
[992/1114] Compiling SwiftCardanoCore Update.swift
[993/1114] Compiling SwiftCardanoCore Metadata.swift
[994/1114] Compiling SwiftCardanoCore MetadatumReader.swift
[995/1114] Compiling SwiftCardanoCore MetadatumTree.swift
[996/1114] Compiling SwiftCardanoCore AfterScript.swift
[997/1114] Compiling SwiftCardanoCore BeforeScript.swift
[998/1114] Compiling SwiftCardanoCore NativeScript.swift
[999/1114] Compiling SwiftCardanoCore NativeScriptTree.swift
[1000/1114] Compiling SwiftCardanoCore ScriptAll.swift
[1001/1114] Compiling SwiftCardanoCore ScriptAny.swift
[1002/1114] Compiling SwiftCardanoCore ScriptNofK.swift
[1003/1114] Compiling SwiftCardanoCore ScriptPubkey.swift
[1004/1114] Compiling SwiftCardanoCore Network.swift
[1005/1114] Compiling SwiftCardanoCore GenesisParameters.swift
[1006/1114] Compiling SwiftCardanoCore LedgerRational.swift
[1007/1114] Compiling SwiftCardanoCore Transaction.swift
[1008/1114] Compiling SwiftCardanoCore TransactionBody.swift
[1009/1114] Compiling SwiftCardanoCore TransactionInput.swift
[1010/1114] Compiling SwiftCardanoCore BabbageTransactionOutput.swift
[1011/1114] Compiling SwiftCardanoCore ShelleyTransactionOutput.swift
[1012/1114] Compiling SwiftCardanoCore TransactionOutput.swift
[1013/1114] Compiling SwiftCardanoCore UTxO.swift
[1014/1114] Compiling SwiftCardanoCore Value.swift
[1015/1114] Compiling SwiftCardanoCore Withdrawals.swift
[1016/1114] Compiling SwiftCardanoCore Witness.swift
[1017/1114] Compiling SwiftCardanoCore Anchor.swift
[1018/1114] Compiling SwiftCardanoCore ByteString.swift
[1019/1114] Compiling SwiftCardanoCore CBORTag.swift
[1020/1114] Compiling SwiftCardanoCore ChainTip.swift
[1021/1114] Compiling SwiftCardanoCore Era.swift
[1022/1114] Compiling SwiftCardanoCore ExUnits.swift
[1023/1114] Compiling SwiftCardanoCore Fraction.swift
[1024/1114] Compiling SwiftCardanoCore IPAddress.swift
[1025/1114] Compiling SwiftCardanoCore IndefiniteList.swift
[1026/1114] Compiling SwiftCardanoCore Interval.swift
[1027/1114] Compiling SwiftCardanoCore ListOrSet.swift
[1028/1114] Compiling SwiftCardanoCore GovernanceCredential.swift
[1029/1114] Compiling SwiftCardanoCore Bech32.swift
[1030/1114] Compiling SwiftCardanoCore Bip32.swift
[1031/1114] Compiling SwiftCardanoCore Committee.swift
[1032/1114] Compiling SwiftCardanoCore DRep.swift
[1033/1114] Compiling SwiftCardanoCore Governance.swift
[1034/1114] Compiling SwiftCardanoCore HardForkInitiationAction.swift
[1035/1114] Compiling SwiftCardanoCore InfoAction.swift
[1036/1114] Compiling SwiftCardanoCore NewConstitution.swift
[1037/1114] Compiling SwiftCardanoCore NoConfidence.swift
[1038/1114] Compiling SwiftCardanoCore ParameterChangeAction.swift
[1039/1114] Compiling SwiftCardanoCore TreasuryWithdrawalsAction.swift
[1040/1114] Compiling SwiftCardanoCore UpdateCommittee.swift
[1041/1114] Compiling SwiftCardanoCore ProposalProcedure.swift
[1042/1114] Compiling SwiftCardanoCore Voting.swift
[1043/1114] Compiling SwiftCardanoCore Hash.swift
[1044/1114] Compiling SwiftCardanoCore CommitteeKey.swift
[1045/1114] Compiling SwiftCardanoCore DRepKey.swift
[1046/1114] Compiling SwiftCardanoCore KESKey.swift
[1047/1114] Compiling SwiftCardanoCore PaymentKey.swift
[1048/1114] Compiling SwiftCardanoCore SigningKey.swift
[1049/1114] Compiling SwiftCardanoCore StakeKey.swift
[1050/1114] Compiling SwiftCardanoCore ProtocolParameters.swift
[1051/1114] Compiling SwiftCardanoCore CostModels.swift
[1052/1114] Compiling SwiftCardanoCore ExecutionUnits.swift
[1053/1114] Compiling SwiftCardanoCore BigInteger.swift
[1054/1114] Compiling SwiftCardanoCore Bytes.swift
[1055/1114] Compiling SwiftCardanoCore Constr.swift
[1056/1114] Compiling SwiftCardanoCore PlutusData.swift
[1057/1114] Compiling SwiftCardanoCore PlutusDataEquality.swift
[1058/1114] Compiling SwiftCardanoCore PlutusDataProtocol.swift
[1059/1114] Compiling SwiftCardanoCore PlutusDataReader.swift
[1060/1114] Compiling SwiftCardanoCore PlutusDataTree.swift
[1061/1114] Compiling SwiftCardanoCore PlutusDataWriter.swift
[1062/1114] Compiling SwiftCardanoCore Unit.swift
[1063/1114] Compiling SwiftCardanoCore PlutusHelpers.swift
[1064/1114] Compiling SwiftCardanoCore PlutusTypes.swift
[1065/1114] Compiling SwiftCardanoCore RawPlutusData.swift
[1066/1114] Compiling SwiftCardanoCore Redeemer.swift
[1067/1114] Compiling SwiftCardanoCore CBORCodableCompat.swift
[1068/1114] Compiling SwiftCardanoCore CBORItemScanner.swift
[1069/1114] Compiling SwiftCardanoCore CBORSerializable.swift
[1070/1114] Compiling SwiftCardanoCore JSONLoadable.swift
[1071/1114] Compiling SwiftCardanoCore Register.swift
[1072/1114] Compiling SwiftCardanoCore RegisterDRep.swift
[1073/1114] Compiling SwiftCardanoCore ResignCommitteeCold.swift
[1074/1114] Compiling SwiftCardanoCore StakeDelegation.swift
[1075/1114] Compiling SwiftCardanoCore StakeDeregistration.swift
[1076/1114] Compiling SwiftCardanoCore StakeRegisterDelegate.swift
[1077/1114] Compiling SwiftCardanoCore StakeRegistration.swift
[1078/1114] Compiling SwiftCardanoCore StakeVoteDelegate.swift
[1079/1114] Compiling SwiftCardanoCore StakeVoteRegisterDelegate.swift
[1080/1114] Compiling SwiftCardanoCore Unregister.swift
[1081/1114] Compiling SwiftCardanoCore UnregisterDRep.swift
[1082/1114] Compiling SwiftCardanoCore UpdateDRep.swift
[1083/1114] Compiling SwiftCardanoCore VoteDelegate.swift
[1084/1114] Compiling SwiftCardanoCore VoteRegisterDelegate.swift
[1085/1114] Compiling SwiftCardanoCore AlonzoGenesis.swift
[1086/1114] Compiling SwiftCardanoCore ByronGenesis.swift
[1087/1114] Compiling SwiftCardanoCore ConwayGenesis.swift
[1088/1114] Compiling SwiftCardanoCore NodeConfig.swift
[1089/1114] Compiling SwiftCardanoCore ShelleyGenesis.swift
[1090/1114] Compiling SwiftCardanoCore Topology.swift
[1091/1114] Compiling SwiftCardanoCore Credential.swift
[1092/1114] Compiling SwiftCardanoCore CredentialType.swift
[1093/1114] Compiling SwiftCardanoCore Address.swift
[1094/1114] Compiling SwiftCardanoCore AddressTypes.swift
[1095/1114] Compiling SwiftCardanoCore ByronAddress.swift
[1096/1114] Compiling SwiftCardanoCore DecodingEra.swift
[1097/1114] Compiling SwiftCardanoCore PointerAddress.swift
[1098/1114] Compiling SwiftCardanoCore Block.swift
[1099/1114] Compiling SwiftCardanoCore ByronBlock.swift
[1100/1114] Compiling SwiftCardanoCore ByronBlockBody.swift
[1101/1114] Compiling SwiftCardanoCore ByronBlockHeader.swift
[1102/1114] Compiling SwiftCardanoCore ByronCBOR.swift
[1103/1114] Compiling SwiftCardanoCore ByronTransaction.swift
[1104/1114] Compiling SwiftCardanoCore EraBlock.swift
[1105/1114] Compiling SwiftCardanoCore EraBlockHeader.swift
[1106/1114] Compiling SwiftCardanoCore Header.swift
[1107/1114] Compiling SwiftCardanoCore HeaderBody.swift
[1108/1114] Compiling SwiftCardanoCore KESSignature.swift
[1109/1114] Compiling SwiftCardanoCore VRFCert.swift
[1110/1114] Compiling SwiftCardanoCore AuthCommitteeHot.swift
[1111/1114] Compiling SwiftCardanoCore Certificate.swift
[1112/1114] Compiling SwiftCardanoCore CertificateFields.swift
[1113/1114] Compiling SwiftCardanoCore PoolRegistration.swift
[1114/1114] Compiling SwiftCardanoCore PoolRetirement.swift
BUILD FAILURE 6.3 android