The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of UncommonCrypto, reference 0.2.1 (075344), with Swift 6.0 for Linux on 30 Nov 2024 06:43:35 UTC.

Swift 6 data race errors: 4

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tesseract-one/UncommonCrypto.swift.git
Reference: 0.2.1
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/tesseract-one/UncommonCrypto.swift
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 075344f fixed warning
Cloned https://github.com/tesseract-one/UncommonCrypto.swift.git
Revision (git rev-parse @):
075344faec47dadba98bef6a319e310c98be0820
SUCCESS checkout https://github.com/tesseract-one/UncommonCrypto.swift.git at 0.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/tesseract-one/UncommonCrypto.swift.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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/7] Write sources
[1/7] Compiling CUncommonCrypto hmac.c
[2/7] Compiling CUncommonCrypto pbkdf2.c
[3/7] Compiling CUncommonCrypto sha3.c
[4/7] Compiling CUncommonCrypto sha2.c
[5/7] Compiling CUncommonCrypto memzero.c
[5/7] Write swift-version-24593BA9C3E375BF.txt
[8/14] Compiling UncommonCrypto SHA3.swift
[9/14] Compiling UncommonCrypto SHA1.swift
[10/14] Compiling UncommonCrypto PBKDF2.swift
[11/14] Compiling UncommonCrypto SHA2.swift
/host/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:192:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |     }
191 |
192 |     static var outSize: Int = Int(SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
193 | }
194 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:219:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 |     }
218 |
219 |     static var outSize: Int = Int(SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
220 | }
221 | #endif
[12/14] Compiling UncommonCrypto SecureRandom.swift
[13/14] Compiling UncommonCrypto HMAC.swift
/host/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:188:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
186 |     }
187 |
188 |     static var outSize: Int = Int(SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
189 | }
190 |
/host/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:215:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
213 |     }
214 |
215 |     static var outSize: Int = Int(SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
216 | }
217 | #endif
[14/14] Emitting module UncommonCrypto
/host/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:188:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
186 |     }
187 |
188 |     static var outSize: Int = Int(SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
189 | }
190 |
/host/spi-builder-workspace/Sources/UncommonCrypto/HMAC.swift:215:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
213 |     }
214 |
215 |     static var outSize: Int = Int(SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
216 | }
217 | #endif
/host/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:192:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
190 |     }
191 |
192 |     static var outSize: Int = Int(SHA256_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
193 | }
194 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SHA2.swift:219:16: warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
217 |     }
218 |
219 |     static var outSize: Int = Int(SHA512_DIGEST_LENGTH)
    |                |- warning: static property 'outSize' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'outSize' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'outSize' 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
220 | }
221 | #endif
Build complete! (10.12s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "UncommonCrypto",
  "name" : "UncommonCrypto",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "UncommonCrypto",
      "targets" : [
        "UncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CUncommonCrypto",
      "targets" : [
        "CUncommonCrypto"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UncommonCryptoTests",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCryptoTests",
      "path" : "Tests/UncommonCryptoTests",
      "sources" : [
        "Hex.swift",
        "SHA1.swift",
        "SHA2.swift"
      ],
      "target_dependencies" : [
        "UncommonCrypto"
      ],
      "type" : "test"
    },
    {
      "c99name" : "UncommonCrypto",
      "module_type" : "SwiftTarget",
      "name" : "UncommonCrypto",
      "path" : "Sources/UncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto"
      ],
      "sources" : [
        "HMAC.swift",
        "PBKDF2.swift",
        "SHA1.swift",
        "SHA2.swift",
        "SHA3.swift",
        "SecureRandom.swift"
      ],
      "target_dependencies" : [
        "CUncommonCrypto"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CUncommonCrypto",
      "module_type" : "ClangTarget",
      "name" : "CUncommonCrypto",
      "path" : "Sources/CUncommonCrypto",
      "product_memberships" : [
        "UncommonCrypto",
        "CUncommonCrypto"
      ],
      "sources" : [
        "hmac.c",
        "memzero.c",
        "pbkdf2.c",
        "sha2.c",
        "sha3.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
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.