The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SourceMapper, reference main (b5073d), with Swift 6.2 for Android on 5 Nov 2025 18:04:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnfairh/SourceMapper.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/johnfairh/SourceMapper
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b5073d9 Update Swift version for docker linux test
Cloned https://github.com/johnfairh/SourceMapper.git
Revision (git rev-parse @):
b5073d9d63b8bd5377d4e7e65274c86b0a5403e6
SUCCESS checkout https://github.com/johnfairh/SourceMapper.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/johnfairh/SourceMapper.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version--11D90AFD9DD3AB2.txt
[4/14] Emitting module SourceMapper
[5/14] Compiling SourceMapper Errors.swift
[6/14] Compiling SourceMapper JSON.swift
[7/14] Compiling SourceMapper UnpackedSourceMap.swift
[8/14] Compiling SourceMapper VLQ.swift
[9/14] Compiling SourceMapper Mappings.swift
[10/14] Compiling SourceMapper SourceMap.swift
[11/15] Wrapping AST for SourceMapper for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/17] Emitting module Cli
/host/spi-builder-workspace/Sources/Cli/main.swift:17:48: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
15 | let args = ProcessInfo.processInfo.arguments
16 | guard args.count == 2 else {
17 |     fputs("Syntax: srcmapcat <srcmap file>\n", stderr)
   |                                                `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
18 |     exit(1)
19 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.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/Sources/Cli/main.swift:31:32: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
29 |     print(unpacked.segmentsDescription)
30 | } catch {
31 |     fputs("Error: \(error)\n", stderr)
   |                                `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
32 |     exit(2)
33 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.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. */
[14/17] Compiling Cli main.swift
/host/spi-builder-workspace/Sources/Cli/main.swift:17:48: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
15 | let args = ProcessInfo.processInfo.arguments
16 | guard args.count == 2 else {
17 |     fputs("Syntax: srcmapcat <srcmap file>\n", stderr)
   |                                                `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
18 |     exit(1)
19 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.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/Sources/Cli/main.swift:31:32: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
29 |     print(unpacked.segmentsDescription)
30 | } catch {
31 |     fputs("Error: \(error)\n", stderr)
   |                                `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
32 |     exit(2)
33 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.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. */
BUILD FAILURE 6.2 android