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.0 for Linux on 31 Oct 2024 06:52:12 UTC.

Swift 6 data race errors: 4

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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.0
Building package at path:  $PWD
https://github.com/llvm-swift/symbolic.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[1/3] Compiling GlibcDlfcnShim.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/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: annotate 'local' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'global' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'noLoad' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'noDelete' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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] 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: annotate 'local' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'global' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'noLoad' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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: annotate 'noDelete' with '@MainActor' if property should only be accessed from the main actor
    |                       `- 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! (9.37s)
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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.