Build Information
Failed to build swift-log-playground, reference main (2d6aef), with Swift 6.3 for Android on 22 Apr 2026 19:48:14 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/kkebo/swift-log-playground.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2d6aef3 Merge pull request #48 from kkebo/dependabot/github_actions/actions/cache-5.0.5
Cloned https://github.com/kkebo/swift-log-playground.git
Revision (git rev-parse @):
2d6aef3c8a2e3235904cbdd6ceade80f47e3babc
SUCCESS checkout https://github.com/kkebo/swift-log-playground.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/kkebo/swift-log-playground.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-log
[1/6636] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.54s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.7.0 (0.94s)
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--4F562202D5529B1.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging LogHandler.swift
[6/8] Compiling Logging Locks.swift
[7/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.3-RELEASE_android.artifactbundle/swift-android/ndk-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.3-RELEASE_android.artifactbundle/swift-android/ndk-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 |
[8/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.3-RELEASE_android.artifactbundle/swift-android/ndk-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.3-RELEASE_android.artifactbundle/swift-android/ndk-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.3 android