Build Information
Failed to build FileUtils, reference 1.3.2 (596947
), with Swift 6.2 (beta) for Android on 21 Jun 2025 13:04:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerzh/SwiftFileUtils.git
Reference: 1.3.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/nerzh/SwiftFileUtils
* tag 1.3.2 -> FETCH_HEAD
HEAD is now at 596947e ref2
Cloned https://github.com/nerzh/SwiftFileUtils.git
Revision (git rev-parse @):
596947ed909050f61fa0d342df4b5959bf48342c
SUCCESS checkout https://github.com/nerzh/SwiftFileUtils.git at 1.3.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/nerzh/SwiftFileUtils.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/nerzh/swift-regular-expression.git
[1/61] Fetching swift-regular-expression
Fetched https://github.com/nerzh/swift-regular-expression.git from cache (0.53s)
Computing version for https://github.com/nerzh/swift-regular-expression.git
Computed https://github.com/nerzh/swift-regular-expression.git at 0.2.4 (1.49s)
Creating working copy for https://github.com/nerzh/swift-regular-expression.git
Working copy of https://github.com/nerzh/swift-regular-expression.git resolved at 0.2.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-8C5A4AE7A8CE2BA.txt
[4/5] Emitting module SwiftRegularExpression
[5/5] Compiling SwiftRegularExpression String+Regexp.swift
[7/12] Compiling FileUtils WriteFile.swift
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:42: error: cannot find 'O_TRUNC' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_TRUNC' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:52: error: cannot find 'O_WRONLY' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_WRONLY' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:63: error: cannot find 'O_CREAT' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_CREAT' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:61: error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:48: error: cannot find 'O_TRUNC' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_TRUNC' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:58: error: cannot find 'O_WRONLY' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_WRONLY' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:69: error: cannot find 'O_CREAT' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_CREAT' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:67: error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:68:37: error: cannot find 'open' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
68 | let fileDescriptor: Int32 = open(to, oflag, mode)
| `- error: cannot find 'open' in scope
69 | if fileDescriptor < 0 {
70 | perror("could not open \(to)")
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:73:13: error: cannot find 'write' in scope
71 | } else {
72 | guard let size: Int = text.data(using: encoding)?.count else { return }
73 | write(fileDescriptor, text, size)
| `- error: cannot find 'write' in scope
74 | close(fileDescriptor)
75 | }
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:74:13: error: cannot find 'close' in scope
72 | guard let size: Int = text.data(using: encoding)?.count else { return }
73 | write(fileDescriptor, text, size)
74 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
75 | }
76 | }
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:83:37: error: cannot find 'open' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
83 | let fileDescriptor: Int32 = open(to, oflag, mode)
| `- error: cannot find 'open' in scope
84 | if fileDescriptor < 0 {
85 | perror("could not open \(to)")
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:90:17: error: cannot find 'write' in scope
88 | var data = data
89 | withUnsafePointer(to: &data!) { (pointer: UnsafePointer<Data>) -> Void in
90 | write(fileDescriptor, pointer, size)
| `- error: cannot find 'write' in scope
91 | }
92 | close(fileDescriptor)
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:92:13: error: cannot find 'close' in scope
90 | write(fileDescriptor, pointer, size)
91 | }
92 | close(fileDescriptor)
| `- error: cannot find 'close' in scope
93 | }
94 | }
[8/12] Compiling FileUtils Mode.swift
[9/12] Compiling FileUtils ReadFile.swift
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 | let fileURL: URL
13 | private var file: UnsafeMutablePointer<FILE>? = nil
| `- error: cannot find type 'FILE' in scope
14 |
15 | init(fileURL: URL) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/12] Compiling FileUtils FileUtils.swift
/host/spi-builder-workspace/Sources/FileUtils/FileUtils.swift:53:29: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
51 | class func createFile(_ path: String?) {
52 | guard let path = path else { return }
53 | FileManager.default.createFile(atPath: path, contents: nil, attributes: nil)
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
54 | }
55 |
/host/spi-builder-workspace/Sources/FileUtils/FileUtils.swift:133:16: warning: will never be executed
131 | guard
132 | let cStringPointer: UnsafeMutablePointer<Int8> = pointer
133 | else { throw fatalError("unknown error for path: \(path)\nPlease, check your path.\n") }
| | `- note: a call to a never-returning function
| `- warning: will never be executed
134 | defer { free(cStringPointer) }
135 |
[11/12] Emitting module FileUtils
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 | let fileURL: URL
13 | private var file: UnsafeMutablePointer<FILE>? = nil
| `- error: cannot find type 'FILE' in scope
14 |
15 | init(fileURL: URL) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:42: error: cannot find 'O_TRUNC' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_TRUNC' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:52: error: cannot find 'O_WRONLY' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_WRONLY' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:63: error: cannot find 'O_CREAT' in scope
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_CREAT' in scope
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:65:61: error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
63 | _ text: String,
64 | _ encoding: String.Encoding = .utf8,
65 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
66 | _ mode: mode_t = 0o755
67 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:48: error: cannot find 'O_TRUNC' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_TRUNC' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:58: error: cannot find 'O_WRONLY' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_WRONLY' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:69: error: cannot find 'O_CREAT' in scope
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: cannot find 'O_CREAT' in scope
81 | _ mode: mode_t = 0o755
82 | ) {
/host/spi-builder-workspace/Sources/FileUtils/WriteFile.swift:80:67: error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
78 | class func writeFilePosix(to: String,
79 | _ data: Data?,
80 | _ oflag: Int32 = O_TRUNC | O_WRONLY | O_CREAT,
| `- error: default argument value of type 'UInt8' cannot be converted to type 'Int32'
81 | _ mode: mode_t = 0o755
82 | ) {
[12/12] Compiling FileUtils FileReader.swift
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:13:44: error: cannot find type 'FILE' in scope
11 |
12 | let fileURL: URL
13 | private var file: UnsafeMutablePointer<FILE>? = nil
| `- error: cannot find type 'FILE' in scope
14 |
15 | init(fileURL: URL) {
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:30:65: error: cannot find 'errno' in scope
28 | func open() throws {
29 | guard let descriptor = fopen(fileURL.path, "r") else {
30 | throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno), userInfo: nil)
| `- error: cannot find 'errno' in scope
31 | }
32 | self.file = descriptor
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:52:69: error: cannot find 'errno' in scope
50 | return nil
51 | } else {
52 | throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno), userInfo: nil)
| `- error: cannot find 'errno' in scope
53 | }
54 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileUtils/FileReader.swift:68:69: error: cannot find 'errno' in scope
66 | return nil
67 | } else {
68 | throw NSError(domain: NSPOSIXErrorDomain, code: Int(errno), userInfo: nil)
| `- error: cannot find 'errno' in scope
69 | }
70 | }
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-15-a-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
BUILD FAILURE 6.2 android