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-package-factory, reference master (babb16), with Swift 6.2 (beta) for Android on 20 Jun 2025 03:05:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/tayloraswift/swift-package-factory.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-package-factory
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at babb16e swift-DEVELOPMENT-SNAPSHOT-2022-12-17-a
Cloned https://github.com/tayloraswift/swift-package-factory.git
Revision (git rev-parse @):
babb16e83198e53da6541cb19978d3e3356a3ab8
SUCCESS checkout https://github.com/tayloraswift/swift-package-factory.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/tayloraswift/swift-package-factory.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apple/swift-syntax.git
[1/70906] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.93s)
Fetching https://github.com/kelvin13/swift-system-extras.git
[1/40] Fetching swift-system-extras
Fetched https://github.com/kelvin13/swift-system-extras.git from cache (0.35s)
Computing version for https://github.com/kelvin13/swift-system-extras.git
Computed https://github.com/kelvin13/swift-system-extras.git at 0.2.0 (1.22s)
Fetching https://github.com/apple/swift-system.git
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.63s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.29s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at swift-DEVELOPMENT-SNAPSHOT-2022-12-17-a (e048c1c)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/kelvin13/swift-system-extras.git
Working copy of https://github.com/kelvin13/swift-system-extras.git resolved at 0.2.0
warning: 'spi-builder-workspace': found 8 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/ValidExamples/Basic.spf
    /host/spi-builder-workspace/Examples/ValidExamples/Zip.spf
    /host/spi-builder-workspace/Examples/ValidExamples/Scopes.spf
    /host/spi-builder-workspace/Examples/ValidExamples/OtherAttributes.spf
    /host/spi-builder-workspace/Examples/ValidExamples/ContainerTypes.spf
    /host/spi-builder-workspace/Examples/ValidExamples/Nested.spf
    /host/spi-builder-workspace/Examples/ValidExamples/DocComments.spf
    /host/spi-builder-workspace/Examples/ValidExamples/PrimaryAssociatedtypeDowngrade.spf
warning: 'spi-builder-workspace': found 7 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasisSyntax.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/InvalidRetroProtocol.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/InvalidRetro.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/InvalidBasis.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/IdentifierSafety.spf
    /host/spi-builder-workspace/Examples/InvalidExamples/UndefinedBasis.spf
[1/1] Compiling plugin FactoryPlugin
Building for debugging...
[1/66] Write sources
[25/66] Compiling CSystem shims.c
[27/66] Write swift-version-8C5A4AE7A8CE2BA.txt
[29/209] Emitting module SystemPackage
[30/212] Emitting module ValidExamples
[31/212] Compiling SwiftSyntax AbsolutePosition.swift
[32/212] Compiling SwiftSyntax BumpPtrAllocator.swift
[33/213] Compiling SwiftSyntax SyntaxBaseNodes.swift
[34/213] Compiling SwiftSyntax SyntaxEnum.swift
[35/213] Compiling SwiftSyntax SyntaxKind.swift
[36/213] Compiling ValidExamples Scopes.spf.swift
[37/213] Compiling ValidExamples OtherAttributes.spf.swift
[38/213] Compiling ValidExamples PrimaryAssociatedtypeDowngrade.spf.swift
[39/213] Compiling SystemPackage Util+StringArray.swift
[40/213] Compiling SystemPackage Util.swift
[41/213] Compiling SystemPackage UtilConsumers.swift
[42/213] Emitting module InvalidExamples
[43/213] Compiling InvalidExamples InvalidMatrix.spf.swift
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:5:9: warning: variable 'x' was never used; consider replacing with '_' or removing it [#no-usage]
 3 |
 4 |     // this works because this is a declaration
 5 |     var x:Int = 0
   |         `- warning: variable 'x' was never used; consider replacing with '_' or removing it [#no-usage]
 6 |
 7 |     // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:8:9: warning: variable 'y' was never used; consider replacing with '_' or removing it [#no-usage]
 6 |
 7 |     // this works because this is a declaration
 8 |     var y:Int = 0
   |         `- warning: variable 'y' was never used; consider replacing with '_' or removing it [#no-usage]
 9 |
10 |     // this works because this is a declaration
/host/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf.swift:11:9: warning: variable 'z' was never used; consider replacing with '_' or removing it [#no-usage]
 9 |
10 |     // this works because this is a declaration
11 |     var z:Int = 0
   |         `- warning: variable 'z' was never used; consider replacing with '_' or removing it [#no-usage]
12 |
13 |     #if NEVER
[46/214] Compiling ValidExamples Empty.swift
[47/214] Compiling SwiftSyntax CommonAncestor.swift
[48/214] Compiling ValidExamples DocComments.spf.swift
[49/214] Compiling SwiftSyntax IncrementalParseTransition.swift
[50/214] Compiling ValidExamples Nested.spf.swift
[51/214] Compiling SwiftSyntax SourceLocation.swift
[52/214] Compiling SwiftSyntax SourcePresence.swift
[53/214] Compiling SwiftSyntax Syntax.swift
[54/214] Compiling SwiftSyntax SyntaxArena.swift
[55/214] Compiling SwiftSyntax MemoryLayout.swift
[56/214] Compiling SwiftSyntax RawSyntax.swift
[57/214] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[58/214] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[59/214] Compiling SwiftSyntax RawSyntaxTokenView.swift
[60/214] Compiling SwiftSyntax RawSyntaxNodes.swift
[61/214] Compiling SwiftSyntax RawSyntaxValidation.swift
[62/214] Compiling SwiftSyntax SourceLength.swift
[64/214] Compiling ValidExamples Zip.spf.swift
[82/223] Emitting module SystemPackage
[87/223] Compiling SystemPackage Util+StringArray.swift
[88/223] Compiling SystemPackage Util.swift
[89/223] Compiling SystemPackage UtilConsumers.swift
[94/223] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[95/223] Compiling SwiftSyntax Utils.swift
[96/223] Compiling SwiftSyntax Misc.swift
[97/223] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[98/223] Compiling SwiftSyntax SyntaxChildren.swift
[99/223] Compiling SwiftSyntax SyntaxData.swift
[100/223] Compiling SwiftSyntax SyntaxOtherNodes.swift
[101/223] Compiling SwiftSyntax SyntaxText.swift
[111/225] Wrapping AST for SystemPackage for debugging
[114/231] Compiling SystemExtras FilePath.swift
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/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 |
[115/231] Compiling SystemExtras FilePath.DirectoryView.swift
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[116/231] Emitting module SystemExtras
/host/spi-builder-workspace/.build/checkouts/swift-system-extras/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/.build/checkouts/swift-system-extras/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
BUILD FAILURE 6.2 android