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 swift-system-extras, reference master (42f297), with Swift 6.1 for Android on 28 May 2025 14:25:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/tayloraswift/swift-system-extras.git
Reference: master
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/tayloraswift/swift-system-extras
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 42f297a add license and readme
Cloned https://github.com/tayloraswift/swift-system-extras.git
Revision (git rev-parse @):
42f297a3191e668ed072878d5db3890db8eada50
SUCCESS checkout https://github.com/tayloraswift/swift-system-extras.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tayloraswift/swift-system-extras.git
https://github.com/tayloraswift/swift-system-extras.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    }
  ],
  "manifest_display_name" : "swift-system-extras",
  "name" : "swift-system-extras",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "SystemExtras",
      "targets" : [
        "SystemExtras"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SystemExtras",
      "module_type" : "SwiftTarget",
      "name" : "SystemExtras",
      "path" : "Sources/SystemExtras",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "SystemExtras"
      ],
      "sources" : [
        "FilePath.DirectoryView.swift",
        "FilePath.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/apple/swift-system.git
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.46s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.93s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-24593BA9C3E375BF.txt
[3/4] Compiling CSystem shims.c
[5/32] Emitting module SystemPackage
[6/35] Compiling SystemPackage MachPort.swift
[7/35] Compiling SystemPackage PlatformString.swift
[8/35] Compiling SystemPackage SystemString.swift
[9/35] Compiling SystemPackage FileOperations.swift
[10/35] Compiling SystemPackage FilePath.swift
[11/35] Compiling SystemPackage FilePathComponentView.swift
[12/35] Compiling SystemPackage FilePathComponents.swift
[13/35] Compiling SystemPackage Errno.swift
[14/35] Compiling SystemPackage ErrnoWindows.swift
[15/35] Compiling SystemPackage FileDescriptor.swift
[16/35] Compiling SystemPackage FileHelpers.swift
[17/35] Compiling SystemPackage FilePathParsing.swift
[18/35] Compiling SystemPackage FilePathString.swift
[19/35] Compiling SystemPackage FilePathSyntax.swift
[20/35] Compiling SystemPackage FilePathTemp.swift
[21/35] Compiling SystemPackage Util+StringArray.swift
[22/35] Compiling SystemPackage Util.swift
[23/35] Compiling SystemPackage UtilConsumers.swift
[24/35] Compiling SystemPackage FilePathTempPosix.swift
[25/35] Compiling SystemPackage FilePathTempWindows.swift
[26/35] Compiling SystemPackage FilePathWindows.swift
[27/35] Compiling SystemPackage FilePermissions.swift
[28/35] Compiling SystemPackage Mocking.swift
[29/35] Compiling SystemPackage RawBuffer.swift
[30/35] Compiling SystemPackage Syscalls.swift
[31/35] Compiling SystemPackage WindowsSyscallAdapters.swift
[32/35] Compiling SystemPackage Backcompat.swift
[33/35] Compiling SystemPackage CInterop.swift
[34/35] Compiling SystemPackage Constants.swift
[35/35] Compiling SystemPackage Exports.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/39] Compiling SystemExtras FilePath.swift
[38/39] Emitting module SystemExtras
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
[39/39] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: cannot find 'opendir' in scope
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: cannot find 'opendir' in scope
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:63:30: error: cannot find type 'StreamPointer' in scope
 61 |         func next() -> Component?
 62 |         {
 63 |             guard let stream:StreamPointer = self.stream
    |                              `- error: cannot find type 'StreamPointer' in scope
 64 |             else
 65 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:63:51: error: type of expression is ambiguous without a type annotation
 61 |         func next() -> Component?
 62 |         {
 63 |             guard let stream:StreamPointer = self.stream
    |                                                   `- error: type of expression is ambiguous without a type annotation
 64 |             else
 65 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:49: error: cannot find type 'dirent' in scope
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                 `- error: cannot find type 'dirent' in scope
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:68: error: cannot infer key path type from context; consider explicitly specifying a root type
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                                    `- error: cannot infer key path type from context; consider explicitly specifying a root type
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:50: error: cannot find type 'dirent' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                  `- error: cannot find type 'dirent' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: cannot find 'readdir' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                            `- error: cannot find 'readdir' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: type of expression is ambiguous without a type annotation
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                            `- error: type of expression is ambiguous without a type annotation
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:94:13: error: cannot find 'closedir' in scope
 92 |             }
 93 |
 94 |             closedir(stream)
    |             `- error: cannot find 'closedir' in scope
 95 |             self.stream = nil
 96 |             return nil
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/29] Emitting module SystemPackage
[3/32] Compiling SystemPackage Mocking.swift
[4/32] Compiling SystemPackage RawBuffer.swift
[5/32] Compiling SystemPackage Syscalls.swift
[6/32] Compiling SystemPackage WindowsSyscallAdapters.swift
[7/32] Compiling SystemPackage Errno.swift
[8/32] Compiling SystemPackage ErrnoWindows.swift
[9/32] Compiling SystemPackage FileDescriptor.swift
[10/32] Compiling SystemPackage FileHelpers.swift
[11/32] Compiling SystemPackage Backcompat.swift
[12/32] Compiling SystemPackage CInterop.swift
[13/32] Compiling SystemPackage Constants.swift
[14/32] Compiling SystemPackage Exports.swift
[15/32] Compiling SystemPackage MachPort.swift
[16/32] Compiling SystemPackage PlatformString.swift
[17/32] Compiling SystemPackage SystemString.swift
[18/32] Compiling SystemPackage FilePathTempPosix.swift
[19/32] Compiling SystemPackage FilePathTempWindows.swift
[20/32] Compiling SystemPackage FilePathWindows.swift
[21/32] Compiling SystemPackage FilePermissions.swift
[22/32] Compiling SystemPackage FilePathParsing.swift
[23/32] Compiling SystemPackage FilePathString.swift
[24/32] Compiling SystemPackage FilePathSyntax.swift
[25/32] Compiling SystemPackage FilePathTemp.swift
[26/32] Compiling SystemPackage FileOperations.swift
[27/32] Compiling SystemPackage FilePath.swift
[28/32] Compiling SystemPackage FilePathComponentView.swift
[29/32] Compiling SystemPackage FilePathComponents.swift
[30/32] Compiling SystemPackage Util+StringArray.swift
[31/32] Compiling SystemPackage Util.swift
[32/32] Compiling SystemPackage UtilConsumers.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[34/36] Compiling SystemExtras FilePath.swift
[35/36] Emitting module SystemExtras
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
[36/36] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:10:8: error: unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("unsupported platform")
    |        `- error: unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:51:20: error: cannot find type 'StreamPointer' in scope
 49 |
 50 |         public
 51 |         var stream:StreamPointer?
    |                    `- error: cannot find type 'StreamPointer' in scope
 52 |
 53 |         /// - Parameter path: The file system path to provide directory entries for, should reference a directory
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: cannot find 'opendir' in scope
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: cannot find 'opendir' in scope
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:57:51: error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 55 |         init(_ path:FilePath)
 56 |         {
 57 |             self.stream = path.withPlatformString(opendir(_:))
    |                                                   `- error: converting non-escaping value to '(UnsafePointer<CInterop.PlatformChar>) throws -> Result' (aka '(UnsafePointer<Int8>) throws -> Result') may allow it to escape
 58 |         }
 59 |
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:63:30: error: cannot find type 'StreamPointer' in scope
 61 |         func next() -> Component?
 62 |         {
 63 |             guard let stream:StreamPointer = self.stream
    |                              `- error: cannot find type 'StreamPointer' in scope
 64 |             else
 65 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:63:51: error: type of expression is ambiguous without a type annotation
 61 |         func next() -> Component?
 62 |         {
 63 |             guard let stream:StreamPointer = self.stream
    |                                                   `- error: type of expression is ambiguous without a type annotation
 64 |             else
 65 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:49: error: cannot find type 'dirent' in scope
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                 `- error: cannot find type 'dirent' in scope
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:68:68: error: cannot infer key path type from context; consider explicitly specifying a root type
 66 |                 return nil
 67 |             }
 68 |             guard let offset:Int = MemoryLayout<dirent>.offset(of: \.d_name)
    |                                                                    `- error: cannot infer key path type from context; consider explicitly specifying a root type
 69 |             else
 70 |             {
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:50: error: cannot find type 'dirent' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                  `- error: cannot find type 'dirent' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: cannot find 'readdir' in scope
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                            `- error: cannot find 'readdir' in scope
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:73:60: error: type of expression is ambiguous without a type annotation
 71 |                 fatalError("invalid `dirent` layout")
 72 |             }
 73 |             while let entry:UnsafeMutablePointer<dirent> = readdir(stream)
    |                                                            `- error: type of expression is ambiguous without a type annotation
 74 |             {
 75 |                 // `entry` is likely statically-allocated, and has variable-length layout.
/host/spi-builder-workspace/Sources/SystemExtras/FilePath.DirectoryView.swift:94:13: error: cannot find 'closedir' in scope
 92 |             }
 93 |
 94 |             closedir(stream)
    |             `- error: cannot find 'closedir' in scope
 95 |             self.stream = nil
 96 |             return nil
BUILD FAILURE 6.1 android