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 macOS (SPM) on 31 Oct 2024 06:58:32 UTC.

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

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 /Users/admin/builder/spi-builder-workspace/.git/
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "symbolic",
      "name": "Symbolic",
      "url": "https://github.com/llvm-swift/symbolic.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/symbolic",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/llvm-swift/symbolic.git
[1/51] Fetching symbolic
Fetched https://github.com/llvm-swift/symbolic.git from cache (0.63s)
Creating working copy for https://github.com/llvm-swift/symbolic.git
Working copy of https://github.com/llvm-swift/symbolic.git resolved at 0.0.2 (c5f4d0f)
warning: '.resolve-product-dependencies': dependency 'symbolic' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/llvm-swift/symbolic.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/3] Write sources
[1/3] Compiling GlibcDlfcnShim.c
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/5] Emitting module Symbolic
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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
/Users/admin/builder/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! (5.74s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Symbolic",
  "name" : "Symbolic",
  "path" : "/Users/admin/builder/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"
}
Done.