The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build FileUtils, reference 1.3.2 (596947), with Swift 6.1 for Android on 29 May 2025 09:12:52 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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/nerzh/SwiftFileUtils.git
https://github.com/nerzh/SwiftFileUtils.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-regular-expression",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.2",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nerzh/swift-regular-expression.git"
    }
  ],
  "manifest_display_name" : "FileUtils",
  "name" : "FileUtils",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "FileUtils",
      "targets" : [
        "FileUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FileUtilsTests",
      "module_type" : "SwiftTarget",
      "name" : "FileUtilsTests",
      "path" : "Tests/FileUtilsTests",
      "sources" : [
        "FileUtilsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "FileUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileUtils",
      "module_type" : "SwiftTarget",
      "name" : "FileUtils",
      "path" : "Sources/FileUtils",
      "product_dependencies" : [
        "SwiftRegularExpression"
      ],
      "product_memberships" : [
        "FileUtils"
      ],
      "sources" : [
        "FileReader.swift",
        "FileUtils.swift",
        "Mode.swift",
        "ReadFile.swift",
        "WriteFile.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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.22s)
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.78s)
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-24593BA9C3E375BF.txt
[4/5] Compiling SwiftRegularExpression String+Regexp.swift
[5/5] Emitting module SwiftRegularExpression
[7/12] Compiling FileUtils Mode.swift
/host/spi-builder-workspace/Sources/FileUtils/Mode.swift:21:27: warning: static property 'append' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
   |                           |- warning: static property 'append' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'append' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'append' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
/host/spi-builder-workspace/Sources/FileUtils/Mode.swift:22:27: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
   |                           |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'clear' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |         public static var createFile = Mode(rawValue: 4)
24 |     }
/host/spi-builder-workspace/Sources/FileUtils/Mode.swift:23:27: warning: static property 'createFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
   |                           |- warning: static property 'createFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'createFile' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'createFile' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |     }
25 | }
[8/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) {
[9/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 |     }
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
 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
 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/Mode.swift:21:27: warning: static property 'append' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
19 |
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
   |                           |- warning: static property 'append' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'append' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'append' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
/host/spi-builder-workspace/Sources/FileUtils/Mode.swift:22:27: warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | //        public static var rewrite = Mode(rawValue: 1)
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
   |                           |- warning: static property 'clear' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'clear' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'clear' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |         public static var createFile = Mode(rawValue: 4)
24 |     }
/host/spi-builder-workspace/Sources/FileUtils/Mode.swift:23:27: warning: static property 'createFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 |         public static var append = Mode(rawValue: 2)
22 |         public static var clear = Mode(rawValue: 3)
23 |         public static var createFile = Mode(rawValue: 4)
   |                           |- warning: static property 'createFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'createFile' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: add '@MainActor' to make static property 'createFile' part of global actor 'MainActor'
   |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
24 |     }
25 | }
/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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module SwiftRegularExpression
[3/3] Compiling SwiftRegularExpression String+Regexp.swift
[5/10] 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 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/10] Compiling FileUtils Mode.swift
[7/10] 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
 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
 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 |
[8/10] 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 |     ) {
[9/10] 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: 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.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
[10/10] 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) {
BUILD FAILURE 6.1 android