The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build BuildEnvironment, reference master (be3551), with Swift 6.1 for Linux on 29 Apr 2025 15:22:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DimaRU/BuildEnvironment.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/DimaRU/BuildEnvironment
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at be3551b Fix README issues
Cloned https://github.com/DimaRU/BuildEnvironment.git
Revision (git rev-parse @):
be3551bd2b2d63e72426c4693c25f6f36108da63
SUCCESS checkout https://github.com/DimaRU/BuildEnvironment.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/DimaRU/BuildEnvironment.git
https://github.com/DimaRU/BuildEnvironment.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "BuildEnvironment",
  "name" : "BuildEnvironment",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "BuildEnvPlugin",
      "targets" : [
        "BuildEnvPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BuildEnvGenerator",
      "targets" : [
        "BuildEnvGenerator"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BuildEnvExample",
      "targets" : [
        "BuildEnvExample"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BuildEnvPlugin",
      "module_type" : "PluginTarget",
      "name" : "BuildEnvPlugin",
      "path" : "Plugins/BuildEnvPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "BuildEnvPlugin",
        "BuildEnvExample"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "BuildEnvGenerator"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "BuildEnvGenerator",
      "module_type" : "SwiftTarget",
      "name" : "BuildEnvGenerator",
      "path" : "Sources/BuildEnvGenerator",
      "product_memberships" : [
        "BuildEnvPlugin",
        "BuildEnvGenerator",
        "BuildEnvExample"
      ],
      "sources" : [
        "BuildEnvGenerator.swift",
        "DictionaryExtensions.swift",
        "GetArgument.swift",
        "stderror.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BuildEnvExample",
      "module_type" : "SwiftTarget",
      "name" : "BuildEnvExample",
      "path" : "Sources/BuildEnvExample",
      "product_memberships" : [
        "BuildEnvExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "BuildEnvPlugin"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/5] Write sources
[1/5] Write swift-version-24593BA9C3E375BF.txt
[3/10] Emitting module BuildEnvGenerator
/host/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[4/10] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[5/10] Compiling BuildEnvGenerator stderror.swift
/host/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[6/10] Compiling BuildEnvGenerator DictionaryExtensions.swift
[7/10] Compiling BuildEnvGenerator GetArgument.swift
[8/11] Wrapping AST for BuildEnvGenerator for debugging
[9/11] Write Objects.LinkFileList
[10/11] Linking BuildEnvGenerator-tool
[1/1] Compiling plugin BuildEnvPlugin
Building for debugging...
[1/15] Write sources
[3/15] Write swift-version-24593BA9C3E375BF.txt
[5/21] Emitting module BuildEnvGenerator
/host/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[6/22] Compiling BuildEnvGenerator GetArgument.swift
[7/22] Compiling BuildEnvGenerator stderror.swift
/host/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[8/22] Compiling BuildEnvGenerator DictionaryExtensions.swift
[9/22] Wrapping AST for BuildEnvGenerator for debugging
[10/22] Write Objects.LinkFileList
[12/22] Emitting module BuildEnvGenerator
/host/spi-builder-workspace/Sources/BuildEnvGenerator/stderror.swift:8:5: warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 6 | import Foundation
 7 |
 8 | var stderror = FileHandle.standardError
   |     |- warning: var 'stderror' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: convert 'stderror' to a 'let' constant to make 'Sendable' shared state immutable
   |     |- note: add '@MainActor' to make var 'stderror' part of global actor 'MainActor'
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |
10 | extension FileHandle: @retroactive TextOutputStream {
[13/22] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[14/23] Linking BuildEnvGenerator-tool
Error in line 12 of /host/spi-builder-workspace/buildenv.config: no environment variable USER
[15/23] Generating BuildEnvPlugin
[15/23] Wrapping AST for BuildEnvGenerator for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/4] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling BuildEnvGenerator DictionaryExtensions.swift
[3/9] Compiling BuildEnvGenerator stderror.swift
[4/9] Compiling BuildEnvGenerator GetArgument.swift
[5/9] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[6/9] Emitting module BuildEnvGenerator
[7/10] Wrapping AST for BuildEnvGenerator for debugging
[8/10] Write Objects.LinkFileList
[9/10] Linking BuildEnvGenerator-tool
[0/1] Planning build
[1/1] Compiling plugin BuildEnvPlugin
Building for debugging...
[1/13] Write swift-version-24593BA9C3E375BF.txt
[3/19] Emitting module BuildEnvGenerator
[4/20] Compiling BuildEnvGenerator GetArgument.swift
[5/20] Compiling BuildEnvGenerator DictionaryExtensions.swift
[6/20] Compiling BuildEnvGenerator stderror.swift
[7/20] Wrapping AST for BuildEnvGenerator for debugging
[8/20] Write Objects.LinkFileList
[10/20] Emitting module BuildEnvGenerator
[11/20] Compiling BuildEnvGenerator BuildEnvGenerator.swift
[12/21] Linking BuildEnvGenerator-tool
Error in line 12 of /host/spi-builder-workspace/buildenv.config: no environment variable USER
[13/21] Generating BuildEnvPlugin
[13/21] Wrapping AST for BuildEnvGenerator for debugging
BUILD FAILURE 6.1 linux