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.1 for Android on 5 Nov 2025 18:04:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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

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.1
Building package at path:  $PWD
https://github.com/johnfairh/SourceMapper.git
https://github.com/johnfairh/SourceMapper.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SourceMapper",
  "name" : "SourceMapper",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SourceMapper",
      "targets" : [
        "SourceMapper"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "srcmapcat",
      "targets" : [
        "Cli"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SourceMapperTests",
      "module_type" : "SwiftTarget",
      "name" : "SourceMapperTests",
      "path" : "Tests/SourceMapperTests",
      "sources" : [
        "TestBasics.swift",
        "TestHelpers.swift",
        "TestJSON.swift",
        "TestMappings.swift",
        "TestVLQ.swift"
      ],
      "target_dependencies" : [
        "SourceMapper"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SourceMapper",
      "module_type" : "SwiftTarget",
      "name" : "SourceMapper",
      "path" : "Sources/SourceMapper",
      "product_memberships" : [
        "SourceMapper",
        "srcmapcat"
      ],
      "sources" : [
        "Errors.swift",
        "JSON.swift",
        "Mappings.swift",
        "SourceMap.swift",
        "UnpackedSourceMap.swift",
        "VLQ.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Cli",
      "module_type" : "SwiftTarget",
      "name" : "Cli",
      "path" : "Sources/Cli",
      "product_memberships" : [
        "srcmapcat"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "SourceMapper"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
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/14] Compiling SourceMapper VLQ.swift
[5/14] Compiling SourceMapper SourceMap.swift
[6/14] Compiling SourceMapper UnpackedSourceMap.swift
[7/14] Compiling SourceMapper Mappings.swift
[8/14] Compiling SourceMapper JSON.swift
[9/14] Compiling SourceMapper Errors.swift
[10/14] Emitting module SourceMapper
[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.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/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.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. */
[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.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/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.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. */
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:496d77b037d0552dd779110e0d7093275ebb8376a63c7a364a5a4acca11a4ff5
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/12] Compiling SourceMapper UnpackedSourceMap.swift
[3/12] Compiling SourceMapper SourceMap.swift
[4/12] Compiling SourceMapper JSON.swift
[5/12] Emitting module SourceMapper
[6/12] Compiling SourceMapper Errors.swift
[7/12] Compiling SourceMapper Mappings.swift
[8/12] Compiling SourceMapper VLQ.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/14] 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.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/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.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. */
[11/14] 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.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/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.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. */
BUILD FAILURE 6.1 android