Build Information
Failed to build swift-log-playground, reference 0.3.0 (248ae9), with Swift 6.1 for Android on 9 Dec 2025 01:23:51 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kkebo/swift-log-playground.git
Reference: 0.3.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/kkebo/swift-log-playground
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at 248ae97 Merge pull request #34 from kkebo/update-package-resolved
Cloned https://github.com/kkebo/swift-log-playground.git
Revision (git rev-parse @):
248ae97fa5d2687ed80d8cdd5c6b9b0c3ac4ff2c
SUCCESS checkout https://github.com/kkebo/swift-log-playground.git at 0.3.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/kkebo/swift-log-playground.git
https://github.com/kkebo/swift-log-playground.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.4",
"upper_bound" : "1.7.1"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log"
}
],
"manifest_display_name" : "swift-log-playground",
"name" : "swift-log-playground",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LoggingPlayground",
"targets" : [
"LoggingPlayground"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingPlayground",
"module_type" : "SwiftTarget",
"name" : "LoggingPlayground",
"path" : "Sources",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"LoggingPlayground"
],
"sources" : [
"PlaygroundHandler.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-log
[1/5718] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.83s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.7.0 (1.78s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.7.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Compiling Logging Locks.swift
[5/8] Compiling Logging Logging.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 | let systemStderr = Glibc.stderr!
1359 | #elseif canImport(Android)
1360 | let systemStderr = Android.stderr
| `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 | #elseif canImport(Musl)
1362 | let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
| `- note: var declared here
65 |
66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 | let systemStdout = Glibc.stdout!
1379 | #elseif canImport(Android)
1380 | let systemStdout = Android.stdout
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 | #elseif canImport(Musl)
1382 | let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 | let systemStderr = Glibc.stderr!
1359 | #elseif canImport(Android)
1360 | let systemStderr = Android.stderr
| `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 | #elseif canImport(Musl)
1362 | let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
| `- note: var declared here
65 |
66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 | let systemStdout = Glibc.stdout!
1379 | #elseif canImport(Android)
1380 | let systemStdout = Android.stdout
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 | #elseif canImport(Musl)
1382 | let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
[7/8] Compiling Logging MetadataProvider.swift
[8/8] Compiling Logging LogHandler.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Compiling Logging LogHandler.swift
[3/6] Compiling Logging Locks.swift
[4/6] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 | let systemStderr = Glibc.stderr!
1359 | #elseif canImport(Android)
1360 | let systemStderr = Android.stderr
| `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 | #elseif canImport(Musl)
1362 | let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
| `- note: var declared here
65 |
66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 | let systemStdout = Glibc.stdout!
1379 | #elseif canImport(Android)
1380 | let systemStdout = Android.stdout
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 | #elseif canImport(Musl)
1382 | let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
[5/6] Compiling Logging MetadataProvider.swift
[6/6] Compiling Logging Logging.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 | let systemStderr = Glibc.stderr!
1359 | #elseif canImport(Android)
1360 | let systemStderr = Android.stderr
| `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 | #elseif canImport(Musl)
1362 | let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:64:23: note: var declared here
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
| `- note: var declared here
65 |
66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 | let systemStdout = Glibc.stdout!
1379 | #elseif canImport(Android)
1380 | let systemStdout = Android.stdout
| `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 | #elseif canImport(Musl)
1382 | let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/stdio.h:63:23: note: var declared here
61 | #if __ANDROID_API__ >= 23
62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
| `- note: var declared here
64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
65 |
BUILD FAILURE 6.1 android