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 Kinzoku, reference main (1e35d3), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 09:38:35 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/obvgab/kinzoku.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/obvgab/kinzoku
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1e35d3d Merge pull request #2 from stackotter/triangle
Cloned https://github.com/obvgab/kinzoku.git
Revision (git rev-parse @):
1e35d3d2bb1c9cfd7cf7917c94fe19c6792ea0c3
SUCCESS checkout https://github.com/obvgab/kinzoku.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/obvgab/kinzoku.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[1/7] Copying x86_64.so
[1/7] Copying aarch64.so
[3/7] Copying aarch64.dylib
[4/7] Copying x86_64.dylib
[5/7] Compiling WgpuHeaders WgpuHeader.c
[6/7] Write swift-version-117DEE11B69C53C9.txt
[8/23] Compiling Kinzoku ShaderModule.swift
[9/23] Compiling Kinzoku Surface.swift
[10/24] Compiling Kinzoku resource_bundle_accessor.swift
[11/24] Compiling Kinzoku Queue.swift
[12/24] Compiling Kinzoku Kinzoku.swift
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:77:13: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
   :
75 | // MARK: - Selectors for WGPU methods
76 |
77 | private let loader = Loader()
   |             |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'loader' 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
78 |
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:34:12: warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer
32 | // Relies on stack deallocation to invalidate pointer
33 | func getDanglingPointer<T>(_ data: inout T) -> UnsafeMutablePointer<T> {
34 |     return UnsafeMutablePointer(&data)
   |            |                    |- note: implicit argument conversion from 'T' to 'UnsafeMutablePointer<T>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |            |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |            `- warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer
35 | }
36 |
[13/24] Compiling Kinzoku Pipeline.swift
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:77:13: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
   :
75 | // MARK: - Selectors for WGPU methods
76 |
77 | private let loader = Loader()
   |             |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'loader' 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
78 |
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:34:12: warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer
32 | // Relies on stack deallocation to invalidate pointer
33 | func getDanglingPointer<T>(_ data: inout T) -> UnsafeMutablePointer<T> {
34 |     return UnsafeMutablePointer(&data)
   |            |                    |- note: implicit argument conversion from 'T' to 'UnsafeMutablePointer<T>' produces a pointer valid only for the duration of the call to 'init(_:)'
   |            |                    `- note: use 'withUnsafeMutablePointer' in order to explicitly convert argument to pointer valid for a defined scope
   |            `- warning: initialization of 'UnsafeMutablePointer<T>' results in a dangling pointer
35 | }
36 |
[14/24] Compiling Kinzoku ComputePassEncoder.swift
[15/24] Compiling Kinzoku Device.swift
[16/24] Compiling Kinzoku Adapter.swift
[17/24] Compiling Kinzoku BindGroup.swift
[18/24] Emitting module Kinzoku
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Generated/Functions.swift:4:17: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | // edit this file directly. Edit the corresponding generator instead.
  3 |
  4 | fileprivate let loader = Loader()
    |                 |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'loader' 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
  5 | let wgpuCreateInstance: @convention(c) (UnsafePointer<WGPUInstanceDescriptor>?) -> WGPUInstance = loader.load("wgpuCreateInstance")
  6 | let wgpuGetProcAddress: @convention(c) (WGPUDevice, String) -> WGPUProc = loader.load("wgpuGetProcAddress")
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:40:7: note: class 'Loader' does not conform to the 'Sendable' protocol
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:77:13: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
   :
75 | // MARK: - Selectors for WGPU methods
76 |
77 | private let loader = Loader()
   |             |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: annotate 'loader' 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
78 |
[19/24] Compiling Kinzoku Structs.swift
[20/24] Compiling Kinzoku Instance.swift
[21/24] Compiling Kinzoku Chained.swift
[22/24] Compiling Kinzoku CommandEncoder.swift
[23/24] Compiling Kinzoku Enums.swift
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Generated/Functions.swift:4:17: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | // edit this file directly. Edit the corresponding generator instead.
  3 |
  4 | fileprivate let loader = Loader()
    |                 |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'loader' 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
  5 | let wgpuCreateInstance: @convention(c) (UnsafePointer<WGPUInstanceDescriptor>?) -> WGPUInstance = loader.load("wgpuCreateInstance")
  6 | let wgpuGetProcAddress: @convention(c) (WGPUDevice, String) -> WGPUProc = loader.load("wgpuGetProcAddress")
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:40:7: note: class 'Loader' does not conform to the 'Sendable' protocol
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
[24/24] Compiling Kinzoku Functions.swift
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Generated/Functions.swift:4:17: warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
  2 | // edit this file directly. Edit the corresponding generator instead.
  3 |
  4 | fileprivate let loader = Loader()
    |                 |- warning: let 'loader' is not concurrency-safe because non-'Sendable' type 'Loader' may have shared mutable state; this is an error in the Swift 6 language mode
    |                 |- note: annotate 'loader' 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
  5 | let wgpuCreateInstance: @convention(c) (UnsafePointer<WGPUInstanceDescriptor>?) -> WGPUInstance = loader.load("wgpuCreateInstance")
  6 | let wgpuGetProcAddress: @convention(c) (WGPUDevice, String) -> WGPUProc = loader.load("wgpuGetProcAddress")
/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Kinzoku.swift:40:7: note: class 'Loader' does not conform to the 'Sendable' protocol
38 | // Sourced from SourceKitten's dlopen and dlsym method
39 |
40 | class Loader {
   |       `- note: class 'Loader' does not conform to the 'Sendable' protocol
41 |     let handle: UnsafeMutableRawPointer
42 |
Build complete! (17.53s)
Fetching https://github.com/thepotatoking55/SwiftGLFW.git
[1/759] Fetching swiftglfw
Fetched https://github.com/thepotatoking55/SwiftGLFW.git from cache (0.95s)
Fetching https://github.com/thepotatoking55/CGLFW3.git
[1/250] Fetching cglfw3
Fetched https://github.com/thepotatoking55/CGLFW3.git from cache (1.11s)
Creating working copy for https://github.com/thepotatoking55/SwiftGLFW.git
Working copy of https://github.com/thepotatoking55/SwiftGLFW.git resolved at main (9c7391d)
Creating working copy for https://github.com/thepotatoking55/CGLFW3.git
Working copy of https://github.com/thepotatoking55/CGLFW3.git resolved at main (b179e80)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftglfw",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/thepotatoking55/SwiftGLFW.git"
    }
  ],
  "manifest_display_name" : "Kinzoku",
  "name" : "Kinzoku",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Kinzoku",
      "targets" : [
        "Kinzoku"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "WgpuHeaders",
      "module_type" : "ClangTarget",
      "name" : "WgpuHeaders",
      "path" : "Sources/WgpuHeaders",
      "product_memberships" : [
        "Kinzoku"
      ],
      "sources" : [
        "WgpuHeader.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "KinzokuTests",
      "module_type" : "SwiftTarget",
      "name" : "KinzokuTests",
      "path" : "Tests/KinzokuTests",
      "product_dependencies" : [
        "SwiftGLFW"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/KinzokuTests/Resources/compute.wgsl",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Tests/KinzokuTests/Resources/triangle.wgsl",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "KinzokuTests.swift"
      ],
      "target_dependencies" : [
        "Kinzoku"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Kinzoku",
      "module_type" : "SwiftTarget",
      "name" : "Kinzoku",
      "path" : "Sources/Kinzoku",
      "product_memberships" : [
        "Kinzoku"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Libraries/aarch64.dylib",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Libraries/aarch64.so",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Libraries/x86_64.dylib",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/Kinzoku/Libraries/x86_64.so",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Adapter.swift",
        "BindGroup.swift",
        "Chained.swift",
        "CommandEncoder.swift",
        "ComputePassEncoder.swift",
        "Device.swift",
        "Generated/Enums.swift",
        "Generated/Functions.swift",
        "Generated/Structs.swift",
        "Instance.swift",
        "Kinzoku.swift",
        "Pipeline.swift",
        "Queue.swift",
        "ShaderModule.swift",
        "Surface.swift"
      ],
      "target_dependencies" : [
        "WgpuHeaders"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.