Build Information
Failed to build UncommonCrypto, reference 0.2.1 (075344
), with Swift 6.1 for Android on 30 May 2025 00:31:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/tesseract-one/UncommonCrypto.swift.git
https://github.com/tesseract-one/UncommonCrypto.swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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 memzero.c
[5/7] Write swift-version-24593BA9C3E375BF.txt
[6/7] Compiling CUncommonCrypto sha2.c
[8/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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 | }
221 | #endif
[9/14] Compiling UncommonCrypto SecureRandom.swift
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
| `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:20:20: error: cannot find 'native' in scope
18 | throw Error.invalidSize
19 | }
20 | return try native(size: size)
| `- error: cannot find 'native' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:24:25: error: cannot find 'native' in scope
22 |
23 | public static func number<T: BinaryInteger>(of type: T) throws -> T {
24 | let bytes = try native(size: MemoryLayout<T>.size)
| `- error: cannot find 'native' in scope
25 | return bytes.withUnsafeBytes { $0.load(as: T.self) }
26 | }
[10/14] Compiling UncommonCrypto SHA1.swift
[11/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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
216 | }
217 | #endif
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'outSize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
220 | }
221 | #endif
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
| `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
[13/14] Compiling UncommonCrypto PBKDF2.swift
[14/14] Compiling UncommonCrypto SHA3.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling UncommonCrypto SecureRandom.swift
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
| `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:20:20: error: cannot find 'native' in scope
18 | throw Error.invalidSize
19 | }
20 | return try native(size: size)
| `- error: cannot find 'native' in scope
21 | }
22 |
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:24:25: error: cannot find 'native' in scope
22 |
23 | public static func number<T: BinaryInteger>(of type: T) throws -> T {
24 | let bytes = try native(size: MemoryLayout<T>.size)
| `- error: cannot find 'native' in scope
25 | return bytes.withUnsafeBytes { $0.load(as: T.self) }
26 | }
[3/8] Compiling UncommonCrypto SHA3.swift
[4/8] Compiling UncommonCrypto PBKDF2.swift
[5/8] Compiling UncommonCrypto SHA1.swift
[6/8] Compiling UncommonCrypto HMAC.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/8] Emitting module UncommonCrypto
/host/spi-builder-workspace/Sources/UncommonCrypto/SecureRandom.swift:55:8: error: SecureRandom isn't implemented for this platform
53 | }
54 | #else
55 | #error("SecureRandom isn't implemented for this platform")
| `- error: SecureRandom isn't implemented for this platform
56 | #endif
57 |
[8/8] Compiling UncommonCrypto SHA2.swift
BUILD FAILURE 6.1 android