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 master (076fbd), with Swift 6.0 for macOS (SPM) on 31 Oct 2024 06:58:48 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: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/llvm-swift/symbolic
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 076fbd3 Merge pull request #1 from segiddins/patch-1
Cloned https://github.com/llvm-swift/symbolic.git
Revision (git rev-parse @):
076fbd317c880af5ee622633c0b1a9386e2e16bc
SUCCESS checkout https://github.com/llvm-swift/symbolic.git at master
========================================
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.68s)
Creating working copy for https://github.com/llvm-swift/symbolic.git
Working copy of https://github.com/llvm-swift/symbolic.git resolved at master (076fbd3)
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] Compiling Symbolic Symbolic.swift
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:36: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 34 |     /// specified. Symbols defined in this library are not made available to
 35 |     /// resolve references in subsequently loaded libraries.
 36 |     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
 37 |
 38 |     /// The symbols defined by this library will be made available for symbol
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:40: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 38 |     /// The symbols defined by this library will be made available for symbol
 39 |     /// resolution of subsequently loaded libraries.
 40 |     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
 41 |
 42 |     /// 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:48: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 46 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 47 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 48 |     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
 49 |
 50 |     /// Do not unload the library during dlclose(). Consequently, the library's
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:53: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 51 |     /// static variables are not reinitialized if the library is reloaded with
 52 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 53 |     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
 54 |
 55 |     /// Initalizes a set of flags with a given raw integer value.
[5/5] Emitting module Symbolic
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:36: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 34 |     /// specified. Symbols defined in this library are not made available to
 35 |     /// resolve references in subsequently loaded libraries.
 36 |     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
 37 |
 38 |     /// The symbols defined by this library will be made available for symbol
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:40: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 38 |     /// The symbols defined by this library will be made available for symbol
 39 |     /// resolution of subsequently loaded libraries.
 40 |     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
 41 |
 42 |     /// 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:48: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 46 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 47 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 48 |     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
 49 |
 50 |     /// Do not unload the library during dlclose(). Consequently, the library's
/Users/admin/builder/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:53: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
 28 |   }
 29 |
 30 |   public struct LoadFlags: OptionSet {
    |                 `- note: consider making struct 'LoadFlags' conform to the 'Sendable' protocol
 31 |     public let rawValue: Int32
 32 |
    :
 51 |     /// static variables are not reinitialized if the library is reloaded with
 52 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 53 |     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
 54 |
 55 |     /// Initalizes a set of flags with a given raw integer value.
Build complete! (5.76s)
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.