Build Information
Failed to build swift-system-extras, reference v0.2.0 (42f297
), with Swift 6.2 (beta) for Android on 20 Jun 2025 03:01:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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-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.2
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" 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-system.git
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.89s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.27s)
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
Building for debugging...
[0/4] Write sources
[2/4] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/4] Compiling CSystem shims.c
[5/32] Compiling SystemPackage Errno.swift
[6/32] Compiling SystemPackage ErrnoWindows.swift
[7/32] Compiling SystemPackage FileDescriptor.swift
[8/32] Compiling SystemPackage FileHelpers.swift
[9/35] Emitting module SystemPackage
[10/35] Compiling SystemPackage FileOperations.swift
[11/35] Compiling SystemPackage FilePath.swift
[12/35] Compiling SystemPackage FilePathComponentView.swift
[13/35] Compiling SystemPackage FilePathComponents.swift
[14/35] Compiling SystemPackage Util+StringArray.swift
[15/35] Compiling SystemPackage Util.swift
[16/35] Compiling SystemPackage UtilConsumers.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 FilePathTempPosix.swift
[22/35] Compiling SystemPackage FilePathTempWindows.swift
[23/35] Compiling SystemPackage FilePathWindows.swift
[24/35] Compiling SystemPackage FilePermissions.swift
[25/35] Compiling SystemPackage MachPort.swift
[26/35] Compiling SystemPackage PlatformString.swift
[27/35] Compiling SystemPackage SystemString.swift
[28/35] Compiling SystemPackage Backcompat.swift
[29/35] Compiling SystemPackage CInterop.swift
[30/35] Compiling SystemPackage Constants.swift
[31/35] Compiling SystemPackage Exports.swift
[32/35] Compiling SystemPackage Mocking.swift
[33/35] Compiling SystemPackage RawBuffer.swift
[34/35] Compiling SystemPackage Syscalls.swift
[35/35] Compiling SystemPackage WindowsSyscallAdapters.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/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
[38/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
[39/39] 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 |
BUILD FAILURE 6.2 android