The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FileUtils, reference 1.3.2 (596947), with Swift 6.3 for Android on 14 Apr 2026 13:50:52 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path:  $PWD
https://github.com/nerzh/SwiftFileUtils.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-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.23s)
Computing version for https://github.com/nerzh/swift-regular-expression.git
Computed https://github.com/nerzh/swift-regular-expression.git at 0.2.4 (0.65s)
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--4F562202D5529B1.txt
[4/5] Compiling SwiftRegularExpression String+Regexp.swift
[5/5] Emitting module SwiftRegularExpression
[7/12] Compiling FileUtils Mode.swift
[8/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 |     }
[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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure 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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure 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.3-RELEASE_android.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: 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.3 android