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 sebbu-bitstream, reference main (eba458), with Swift 6.0 for Linux on 5 Nov 2024 12:11:01 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/MarSe32m/sebbu-bitstream.git
Reference: main
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/MarSe32m/sebbu-bitstream
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eba458d Update windows.yml
Cloned https://github.com/MarSe32m/sebbu-bitstream.git
Revision (git rev-parse @):
eba458d316493346284ebc797e4a24683939a0fa
SUCCESS checkout https://github.com/MarSe32m/sebbu-bitstream.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/MarSe32m/sebbu-bitstream.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling SebbuBitStream Utilities.swift
/host/spi-builder-workspace/Sources/SebbuBitStream/Utilities.swift:2:14: warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | @usableFromInline
 2 | internal let crcTable: UnsafeBufferPointer<UInt32> = {
   |              |- warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'crcTable' 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
 3 |     let buffer = UnsafeMutableBufferPointer<UInt32>.allocate(capacity: 256)
 4 |     for i in 0...255 {
Swift.UnsafeBufferPointer:1:23: note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafePointer<Element>?, count: Int)
[5/9] Compiling SebbuBitStream Compressors.swift
[6/9] Compiling SebbuBitStream BitStream.swift
[7/9] Compiling SebbuBitStream BitStreamCodable.swift
[8/9] Emitting module SebbuBitStream
/host/spi-builder-workspace/Sources/SebbuBitStream/Utilities.swift:2:14: warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | @usableFromInline
 2 | internal let crcTable: UnsafeBufferPointer<UInt32> = {
   |              |- warning: let 'crcTable' is not concurrency-safe because non-'Sendable' type 'UnsafeBufferPointer<UInt32>' may have shared mutable state; this is an error in the Swift 6 language mode
   |              |- note: annotate 'crcTable' 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
 3 |     let buffer = UnsafeMutableBufferPointer<UInt32>.allocate(capacity: 256)
 4 |     for i in 0...255 {
Swift.UnsafeBufferPointer:1:23: note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
1 | @frozen public struct UnsafeBufferPointer<Element> : Copyable where Element : ~Copyable {
  |                       `- note: generic struct 'UnsafeBufferPointer' does not conform to the 'Sendable' protocol
2 |     public let count: Int
3 |     @inlinable public init(start: UnsafePointer<Element>?, count: Int)
[9/9] Compiling SebbuBitStream BitStream + Optionals.swift
[11/12] Emitting module SebbuBitStreamFoundation
[12/12] Compiling SebbuBitStreamFoundation BitStream + Foundation.swift
Build complete! (10.49s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "sebbu-bitstream",
  "name" : "sebbu-bitstream",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SebbuBitStream",
      "targets" : [
        "SebbuBitStream"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "SebbuBitStreamFoundation",
      "targets" : [
        "SebbuBitStreamFoundation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SebbuBitStreamTests",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStreamTests",
      "path" : "Tests/SebbuBitStreamTests",
      "sources" : [
        "SebbuBitStreamTests.swift"
      ],
      "target_dependencies" : [
        "SebbuBitStream",
        "SebbuBitStreamFoundation"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SebbuBitStreamFoundation",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStreamFoundation",
      "path" : "Sources/SebbuBitStreamFoundation",
      "product_memberships" : [
        "SebbuBitStreamFoundation"
      ],
      "sources" : [
        "BitStream + Foundation.swift"
      ],
      "target_dependencies" : [
        "SebbuBitStream"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SebbuBitStream",
      "module_type" : "SwiftTarget",
      "name" : "SebbuBitStream",
      "path" : "Sources/SebbuBitStream",
      "product_memberships" : [
        "SebbuBitStream",
        "SebbuBitStreamFoundation"
      ],
      "sources" : [
        "BitStream + Optionals.swift",
        "BitStream.swift",
        "BitStreamCodable.swift",
        "Compressors.swift",
        "Utilities.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.6"
}
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.