Build Information
Failed to build SwiftCompilationDatabase, reference master (810f04), with Swift 6.1 for Android on 27 May 2025 18:35:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jerrymarino/SwiftCompilationDatabase.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/jerrymarino/SwiftCompilationDatabase
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 810f040 Spartan Message Parser library
Cloned https://github.com/jerrymarino/SwiftCompilationDatabase.git
Revision (git rev-parse @):
810f040e97ebe97210d64a644d8d386e35a6358d
SUCCESS checkout https://github.com/jerrymarino/SwiftCompilationDatabase.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/jerrymarino/SwiftCompilationDatabase.git
https://github.com/jerrymarino/SwiftCompilationDatabase.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "SwiftCompilationDatabase",
"name" : "SwiftCompilationDatabase",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LogParser",
"targets" : [
"SwiftCompilationDatabase"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftCompilationDatabase",
"targets" : [
"SwiftCompilationDatabase"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftCompilationDatabase",
"module_type" : "SwiftTarget",
"name" : "SwiftCompilationDatabase",
"path" : "Sources/SwiftCompilationDatabase",
"product_memberships" : [
"LogParser",
"SwiftCompilationDatabase"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"LogParser"
],
"type" : "executable"
},
{
"c99name" : "LogParser",
"module_type" : "SwiftTarget",
"name" : "LogParser",
"path" : "Sources/LogParser",
"product_memberships" : [
"LogParser",
"SwiftCompilationDatabase"
],
"sources" : [
"LogParser.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/9] Emitting module LogParser
[5/9] Compiling LogParser LogParser.swift
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:30:10: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
28 | return LogParser
29 | .readInput(logPath: logPath)
30 | .flatMap { try? JSONDecoder().decode(Message.self, from: $0 ) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
31 | }
32 |
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:36:28: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
34 | public func renderCompileCommands(messages: [Message],
35 | dir: String = FileManager.default.currentDirectoryPath) -> String {
36 | let entries = messages.flatMap {
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
37 | msg -> String? in
38 | // Load compile inputs
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:68:8: error: cannot find 'fcntl' in scope
66 |
67 | let standardInput = FileHandle.standardInput
68 | if fcntl(standardInput.fileDescriptor, F_GETFL) == 0 {
| `- error: cannot find 'fcntl' in scope
69 | var lines = [String]()
70 | repeat {
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:68:44: error: cannot find 'F_GETFL' in scope
66 |
67 | let standardInput = FileHandle.standardInput
68 | if fcntl(standardInput.fileDescriptor, F_GETFL) == 0 {
| `- error: cannot find 'F_GETFL' in scope
69 | var lines = [String]()
70 | repeat {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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/5] Write swift-version-24593BA9C3E375BF.txt
[2/7] Emitting module LogParser
[3/7] Compiling LogParser LogParser.swift
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:30:10: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
28 | return LogParser
29 | .readInput(logPath: logPath)
30 | .flatMap { try? JSONDecoder().decode(Message.self, from: $0 ) }
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
31 | }
32 |
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:36:28: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
34 | public func renderCompileCommands(messages: [Message],
35 | dir: String = FileManager.default.currentDirectoryPath) -> String {
36 | let entries = messages.flatMap {
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
37 | msg -> String? in
38 | // Load compile inputs
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:68:8: error: cannot find 'fcntl' in scope
66 |
67 | let standardInput = FileHandle.standardInput
68 | if fcntl(standardInput.fileDescriptor, F_GETFL) == 0 {
| `- error: cannot find 'fcntl' in scope
69 | var lines = [String]()
70 | repeat {
/host/spi-builder-workspace/Sources/LogParser/LogParser.swift:68:44: error: cannot find 'F_GETFL' in scope
66 |
67 | let standardInput = FileHandle.standardInput
68 | if fcntl(standardInput.fileDescriptor, F_GETFL) == 0 {
| `- error: cannot find 'F_GETFL' in scope
69 | var lines = [String]()
70 | repeat {
BUILD FAILURE 6.1 android