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

Successful build of Symbolic, reference 0.0.2 (c5f4d0), with Swift 6.1 for Linux on 25 Apr 2025 12:09:19 UTC.

Swift 6 data race errors: 4

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/llvm-swift/symbolic.git
Reference: 0.0.2
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/llvm-swift/symbolic
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at c5f4d0f Always dlopen the handle for the current object
Cloned https://github.com/llvm-swift/symbolic.git
Revision (git rev-parse @):
c5f4d0fcc699c4a72fdb2478ea17ff4722bf229b
SUCCESS checkout https://github.com/llvm-swift/symbolic.git at 0.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/llvm-swift/symbolic.git
https://github.com/llvm-swift/symbolic.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Symbolic",
  "name" : "Symbolic",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Symbolic",
      "targets" : [
        "Symbolic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SymbolicTests",
      "module_type" : "SwiftTarget",
      "name" : "SymbolicTests",
      "path" : "Tests/SymbolicTests",
      "sources" : [
        "SymbolicTests.swift"
      ],
      "target_dependencies" : [
        "Symbolic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Symbolic",
      "module_type" : "SwiftTarget",
      "name" : "Symbolic",
      "path" : "Sources/Symbolic",
      "product_memberships" : [
        "Symbolic"
      ],
      "sources" : [
        "Symbolic.swift"
      ],
      "target_dependencies" : [
        "GlibcDlfcnShim"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GlibcDlfcnShim",
      "module_type" : "ClangTarget",
      "name" : "GlibcDlfcnShim",
      "path" : "Sources/GlibcDlfcnShim",
      "product_memberships" : [
        "Symbolic"
      ],
      "sources" : [
        "src/GlibcDlfcnShim.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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
Building for debugging...
[0/3] Write sources
[1/3] Compiling GlibcDlfcnShim.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/5] Compiling Symbolic Symbolic.swift
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:44:23: warning: static property 'local' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 42 |     /// specified. Symbols defined in this library are not made available to
 43 |     /// resolve references in subsequently loaded libraries.
 44 |     public static let local = LoadFlags(rawValue: RTLD_LOCAL)
    |                       |- warning: static property 'local' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'local' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |
 46 |     /// The symbols defined by this library will be made available for symbol
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:48:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 46 |     /// The symbols defined by this library will be made available for symbol
 47 |     /// resolution of subsequently loaded libraries.
 48 |     public static let global = LoadFlags(rawValue: RTLD_GLOBAL)
    |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |
 50 |     /// Don't load the library. This can be used to test if the library is
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:56:23: warning: static property 'noLoad' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 54 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 55 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 56 |     public static let noLoad = LoadFlags(rawValue: RTLD_NOLOAD)
    |                       |- warning: static property 'noLoad' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'noLoad' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Do not unload the library during dlclose(). Consequently, the library's
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:61:23: warning: static property 'noDelete' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 59 |     /// static variables are not reinitialized if the library is reloaded with
 60 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 61 |     public static let noDelete = LoadFlags(rawValue: RTLD_NODELETE)
    |                       |- warning: static property 'noDelete' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'noDelete' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |
 63 |     /// Initalizes a set of flags with a given raw integer value.
[5/5] Emitting module Symbolic
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:44:23: warning: static property 'local' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 42 |     /// specified. Symbols defined in this library are not made available to
 43 |     /// resolve references in subsequently loaded libraries.
 44 |     public static let local = LoadFlags(rawValue: RTLD_LOCAL)
    |                       |- warning: static property 'local' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'local' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 45 |
 46 |     /// The symbols defined by this library will be made available for symbol
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:48:23: warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 46 |     /// The symbols defined by this library will be made available for symbol
 47 |     /// resolution of subsequently loaded libraries.
 48 |     public static let global = LoadFlags(rawValue: RTLD_GLOBAL)
    |                       |- warning: static property 'global' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'global' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 49 |
 50 |     /// Don't load the library. This can be used to test if the library is
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:56:23: warning: static property 'noLoad' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 54 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 55 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 56 |     public static let noLoad = LoadFlags(rawValue: RTLD_NOLOAD)
    |                       |- warning: static property 'noLoad' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'noLoad' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 57 |
 58 |     /// Do not unload the library during dlclose(). Consequently, the library's
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:61:23: warning: static property 'noDelete' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
 36 |   }
 37 |
 38 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 39 |     public let rawValue: Int32
 40 |
    :
 59 |     /// static variables are not reinitialized if the library is reloaded with
 60 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 61 |     public static let noDelete = LoadFlags(rawValue: RTLD_NODELETE)
    |                       |- warning: static property 'noDelete' is not concurrency-safe because non-'Sendable' type 'SharedObject.LoadFlags' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'noDelete' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 62 |
 63 |     /// Initalizes a set of flags with a given raw integer value.
Build complete! (7.60s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Symbolic",
  "name" : "Symbolic",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Symbolic",
      "targets" : [
        "Symbolic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SymbolicTests",
      "module_type" : "SwiftTarget",
      "name" : "SymbolicTests",
      "path" : "Tests/SymbolicTests",
      "sources" : [
        "SymbolicTests.swift"
      ],
      "target_dependencies" : [
        "Symbolic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Symbolic",
      "module_type" : "SwiftTarget",
      "name" : "Symbolic",
      "path" : "Sources/Symbolic",
      "product_memberships" : [
        "Symbolic"
      ],
      "sources" : [
        "Symbolic.swift"
      ],
      "target_dependencies" : [
        "GlibcDlfcnShim"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GlibcDlfcnShim",
      "module_type" : "ClangTarget",
      "name" : "GlibcDlfcnShim",
      "path" : "Sources/GlibcDlfcnShim",
      "product_memberships" : [
        "Symbolic"
      ],
      "sources" : [
        "src/GlibcDlfcnShim.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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
Done.