Build Information
Failed to build swift-system-extras, reference v0.2.0 (42f297), with Swift 6.3 for Android on 21 Apr 2026 10:37:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-system-extras.git
Reference: v0.2.0
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
* tag v0.2.0 -> FETCH_HEAD
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 v0.2.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/tayloraswift/swift-system-extras.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.81s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (1.74s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Building for debugging...
[0/4] Write sources
[2/4] Compiling CSystem shims.c
[3/4] Write swift-version--4F562202D5529B1.txt
[5/35] Emitting module SystemPackage
[6/39] Compiling SystemPackage IORing.swift
[7/39] Compiling SystemPackage RawIORequest.swift
[8/39] Compiling SystemPackage Backcompat.swift
[9/39] Compiling SystemPackage CInterop.swift
[10/39] Compiling SystemPackage FilePathWindows.swift
[11/39] Compiling SystemPackage FilePermissions.swift
[12/39] Compiling SystemPackage IOCompletion.swift
[13/39] Compiling SystemPackage IORequest.swift
[14/39] Compiling SystemPackage Errno.swift
[15/39] Compiling SystemPackage ErrnoWindows.swift
[16/39] Compiling SystemPackage FileDescriptor.swift
[17/39] Compiling SystemPackage FileHelpers.swift
[18/39] Compiling SystemPackage FileOperations.swift
[19/39] Compiling SystemPackage FilePath.swift
[20/39] Compiling SystemPackage FilePathComponentView.swift
[21/39] Compiling SystemPackage FilePathComponents.swift
[22/39] Compiling SystemPackage FilePathParsing.swift
[23/39] Compiling SystemPackage FilePathString.swift
[24/39] Compiling SystemPackage SystemString.swift
[25/39] Compiling SystemPackage Util+StringArray.swift
[26/39] Compiling SystemPackage Util.swift
[27/39] Compiling SystemPackage UtilConsumers.swift
[28/39] Compiling SystemPackage FilePathSyntax.swift
[29/39] Compiling SystemPackage FilePathTemp.swift
[30/39] Compiling SystemPackage FilePathTempPosix.swift
[31/39] Compiling SystemPackage FilePathTempWindows.swift
[32/39] Compiling SystemPackage Syscalls.swift
[33/39] Compiling SystemPackage WindowsSyscallAdapters.swift
[34/39] Compiling SystemPackage MachPort.swift
[35/39] Compiling SystemPackage PlatformString.swift
[36/39] Compiling SystemPackage Constants.swift
[37/39] Compiling SystemPackage Exports.swift
[38/39] Compiling SystemPackage Mocking.swift
[39/39] Compiling SystemPackage RawBuffer.swift
[41/43] Compiling SystemExtras FilePath.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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/43] 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
[43/43] 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: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: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.3 android