Build Information
Successful build of Cryptor with Swift 6.0 for Linux.
Swift 6 data race errors: 5
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/BlueCryptor.git
Reference: master
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/Kitura/BlueCryptor
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at cec97c2 silence compiler warnings (#74)
Cloned https://github.com/Kitura/BlueCryptor.git
Revision (git rev-parse @):
cec97c24b111351e70e448972a7d3fe68a756d6d
SUCCESS checkout https://github.com/Kitura/BlueCryptor.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Kitura/BlueCryptor.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" 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
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.21s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (1.34s)
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling Cryptor Status.swift
[4/13] Compiling Cryptor Updatable.swift
[5/13] Compiling Cryptor StreamCryptor.swift
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:188:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'StreamCryptor.Options' may have shared mutable state; this is an error in the Swift 6 language mode
170 | /// Maps CommonCryptoOptions onto a Swift struct.
171 | ///
172 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
173 |
174 | public typealias RawValue = Int
:
186 |
187 | /// No options
188 | public static let none = Options([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'StreamCryptor.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:201:22: warning: static property 'pkcs7Padding' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// Use padding. Needed unless the input is a integral number of blocks long.
201 | public static var pkcs7Padding = Options(rawValue:0x0001)
| |- warning: static property 'pkcs7Padding' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pkcs7Padding' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pkcs7Padding' 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
202 |
203 | /// Electronic Code Book Mode. Don't use this.
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:204:22: warning: static property 'ecbMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
202 |
203 | /// Electronic Code Book Mode. Don't use this.
204 | public static var ecbMode = Options(rawValue:0x0002)
| |- warning: static property 'ecbMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ecbMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ecbMode' 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
205 |
206 | #endif
[6/14] Emitting module Cryptor
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:188:21: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'StreamCryptor.Options' may have shared mutable state; this is an error in the Swift 6 language mode
170 | /// Maps CommonCryptoOptions onto a Swift struct.
171 | ///
172 | public struct Options: OptionSet {
| `- note: consider making struct 'Options' conform to the 'Sendable' protocol
173 |
174 | public typealias RawValue = Int
:
186 |
187 | /// No options
188 | public static let none = Options([])
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'StreamCryptor.Options' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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 | #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:201:22: warning: static property 'pkcs7Padding' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
199 |
200 | /// Use padding. Needed unless the input is a integral number of blocks long.
201 | public static var pkcs7Padding = Options(rawValue:0x0001)
| |- warning: static property 'pkcs7Padding' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'pkcs7Padding' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'pkcs7Padding' 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
202 |
203 | /// Electronic Code Book Mode. Don't use this.
/host/spi-builder-workspace/Sources/Cryptor/StreamCryptor.swift:204:22: warning: static property 'ecbMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
202 |
203 | /// Electronic Code Book Mode. Don't use this.
204 | public static var ecbMode = Options(rawValue:0x0002)
| |- warning: static property 'ecbMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'ecbMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'ecbMode' 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
205 |
206 | #endif
/host/spi-builder-workspace/Sources/Cryptor/Utilities.swift:51:13: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
49 | struct FatalErrorUtil {
50 |
51 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fatalErrorClosure' 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
52 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
53 | static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Cryptor/Utilities.swift:52:21: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
50 |
51 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
52 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultFatalErrorClosure' 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
53 | static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
54 | fatalErrorClosure = closure
[7/14] Compiling Cryptor Digest.swift
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:50: warning: 'MD4_Init' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Init' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:68: warning: 'MD4_Update' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Update' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:90: warning: 'MD4_Final' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Final' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:50: warning: 'MD5_Init' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Init' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:68: warning: 'MD5_Update' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Update' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:90: warning: 'MD5_Final' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Final' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:50: warning: 'SHA1_Init' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Init' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:69: warning: 'SHA1_Update' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Update' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:92: warning: 'SHA1_Final' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Final' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:53: warning: 'SHA224_Init' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Init' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:74: warning: 'SHA224_Update' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Update' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:99: warning: 'SHA224_Final' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Final' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:54: warning: 'SHA256_Init' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Init' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:75: warning: 'SHA256_Update' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Update' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:100: warning: 'SHA256_Final' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Final' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:53: warning: 'SHA384_Init' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Init' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:74: warning: 'SHA384_Update' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Update' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:99: warning: 'SHA384_Final' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Final' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:53: warning: 'SHA512_Init' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Init' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:74: warning: 'SHA512_Update' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Update' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:99: warning: 'SHA512_Final' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Final' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/HMAC.swift:313:4: warning: 'HMAC_Update' is deprecated
311 | CCHmacUpdate(context, buffer, byteCount)
312 | #elseif os(Linux)
313 | HMAC_Update(context, buffer.assumingMemoryBound(to: UInt8.self), byteCount)
| `- warning: 'HMAC_Update' is deprecated
314 | #endif
315 | return self
/host/spi-builder-workspace/Sources/Cryptor/HMAC.swift:330:4: warning: 'HMAC_Final' is deprecated
328 | #elseif os(Linux)
329 | var length: UInt32 = 0
330 | HMAC_Final(context, &hmac, &length)
| `- warning: 'HMAC_Final' is deprecated
331 | #endif
332 | return hmac
[8/14] Compiling Cryptor HMAC.swift
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:50: warning: 'MD4_Init' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Init' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:68: warning: 'MD4_Update' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Update' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:100:90: warning: 'MD4_Final' is deprecated
98 | engine = DigestEngineCC<CC_MD4_CTX>(initializer:CC_MD4_Init, updater:CC_MD4_Update, finalizer:CC_MD4_Final, length:CC_MD4_DIGEST_LENGTH)
99 | #elseif os(Linux)
100 | engine = DigestEngineCC<MD4_CTX>(initializer:MD4_Init, updater:MD4_Update, finalizer:MD4_Final, length:MD4_DIGEST_LENGTH)
| `- warning: 'MD4_Final' is deprecated
101 | #endif
102 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:50: warning: 'MD5_Init' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Init' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:68: warning: 'MD5_Update' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Update' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:107:90: warning: 'MD5_Final' is deprecated
105 | engine = DigestEngineCC<CC_MD5_CTX>(initializer:CC_MD5_Init, updater:CC_MD5_Update, finalizer:CC_MD5_Final, length:CC_MD5_DIGEST_LENGTH)
106 | #elseif os(Linux)
107 | engine = DigestEngineCC<MD5_CTX>(initializer:MD5_Init, updater:MD5_Update, finalizer:MD5_Final, length:MD5_DIGEST_LENGTH)
| `- warning: 'MD5_Final' is deprecated
108 | #endif
109 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:50: warning: 'SHA1_Init' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Init' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:69: warning: 'SHA1_Update' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Update' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:114:92: warning: 'SHA1_Final' is deprecated
112 | engine = DigestEngineCC<CC_SHA1_CTX>(initializer:CC_SHA1_Init, updater:CC_SHA1_Update, finalizer:CC_SHA1_Final, length:CC_SHA1_DIGEST_LENGTH)
113 | #elseif os(Linux)
114 | engine = DigestEngineCC<SHA_CTX>(initializer:SHA1_Init, updater:SHA1_Update, finalizer:SHA1_Final, length:SHA_DIGEST_LENGTH)
| `- warning: 'SHA1_Final' is deprecated
115 | #endif
116 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:53: warning: 'SHA224_Init' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Init' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:74: warning: 'SHA224_Update' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Update' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:121:99: warning: 'SHA224_Final' is deprecated
119 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA224_Init, updater:CC_SHA224_Update, finalizer:CC_SHA224_Final, length:CC_SHA224_DIGEST_LENGTH)
120 | #elseif os(Linux)
121 | engine = DigestEngineCC<SHA256_CTX>(initializer:SHA224_Init, updater:SHA224_Update, finalizer:SHA224_Final, length:SHA224_DIGEST_LENGTH)
| `- warning: 'SHA224_Final' is deprecated
122 | #endif
123 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:54: warning: 'SHA256_Init' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Init' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:75: warning: 'SHA256_Update' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Update' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:128:100: warning: 'SHA256_Final' is deprecated
126 | engine = DigestEngineCC<CC_SHA256_CTX>(initializer:CC_SHA256_Init, updater:CC_SHA256_Update, finalizer:CC_SHA256_Final, length:CC_SHA256_DIGEST_LENGTH)
127 | #elseif os(Linux)
128 | engine = DigestEngineCC<SHA256_CTX>(initializer: SHA256_Init, updater:SHA256_Update, finalizer:SHA256_Final, length:SHA256_DIGEST_LENGTH)
| `- warning: 'SHA256_Final' is deprecated
129 | #endif
130 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:53: warning: 'SHA384_Init' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Init' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:74: warning: 'SHA384_Update' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Update' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:135:99: warning: 'SHA384_Final' is deprecated
133 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA384_Init, updater:CC_SHA384_Update, finalizer:CC_SHA384_Final, length:CC_SHA384_DIGEST_LENGTH)
134 | #elseif os(Linux)
135 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA384_Init, updater:SHA384_Update, finalizer:SHA384_Final, length:SHA384_DIGEST_LENGTH)
| `- warning: 'SHA384_Final' is deprecated
136 | #endif
137 |
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:53: warning: 'SHA512_Init' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Init' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:74: warning: 'SHA512_Update' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Update' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/Digest.swift:142:99: warning: 'SHA512_Final' is deprecated
140 | engine = DigestEngineCC<CC_SHA512_CTX>(initializer:CC_SHA512_Init, updater:CC_SHA512_Update, finalizer:CC_SHA512_Final, length:CC_SHA512_DIGEST_LENGTH)
141 | #elseif os(Linux)
142 | engine = DigestEngineCC<SHA512_CTX>(initializer:SHA512_Init, updater:SHA512_Update, finalizer:SHA512_Final, length:SHA512_DIGEST_LENGTH)
| `- warning: 'SHA512_Final' is deprecated
143 | #endif
144 | }
/host/spi-builder-workspace/Sources/Cryptor/HMAC.swift:313:4: warning: 'HMAC_Update' is deprecated
311 | CCHmacUpdate(context, buffer, byteCount)
312 | #elseif os(Linux)
313 | HMAC_Update(context, buffer.assumingMemoryBound(to: UInt8.self), byteCount)
| `- warning: 'HMAC_Update' is deprecated
314 | #endif
315 | return self
/host/spi-builder-workspace/Sources/Cryptor/HMAC.swift:330:4: warning: 'HMAC_Final' is deprecated
328 | #elseif os(Linux)
329 | var length: UInt32 = 0
330 | HMAC_Final(context, &hmac, &length)
| `- warning: 'HMAC_Final' is deprecated
331 | #endif
332 | return hmac
[9/14] Compiling Cryptor Crypto.swift
[10/14] Compiling Cryptor Cryptor.swift
[11/14] Compiling Cryptor SSLPointerTricks.swift
[12/14] Compiling Cryptor KeyDerivation.swift
[13/14] Compiling Cryptor Random.swift
[14/14] Compiling Cryptor Utilities.swift
/host/spi-builder-workspace/Sources/Cryptor/Utilities.swift:51:13: warning: static property 'fatalErrorClosure' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
49 | struct FatalErrorUtil {
50 |
51 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
| |- warning: static property 'fatalErrorClosure' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'fatalErrorClosure' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'fatalErrorClosure' 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
52 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
53 | static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Cryptor/Utilities.swift:52:21: warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
50 |
51 | static var fatalErrorClosure: (String, StaticString, UInt) -> Never = defaultFatalErrorClosure
52 | private static let defaultFatalErrorClosure = { Swift.fatalError($0, file: $1, line: $2) }
| |- warning: static property 'defaultFatalErrorClosure' is not concurrency-safe because non-'Sendable' type '(String, StaticString, UInt) -> Never' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultFatalErrorClosure' 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
53 | static func replaceFatalError(closure: @escaping (String, StaticString, UInt) -> Never) {
54 | fatalErrorClosure = closure
Build complete! (15.34s)
Build complete.
{
"dependencies" : [
{
"identity" : "openssl",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.200",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Kitura/OpenSSL.git"
}
],
"manifest_display_name" : "Cryptor",
"name" : "Cryptor",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Cryptor",
"targets" : [
"Cryptor"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CryptorTests",
"module_type" : "SwiftTarget",
"name" : "CryptorTests",
"path" : "Tests/CryptorTests",
"sources" : [
"CryptorTests.swift"
],
"target_dependencies" : [
"Cryptor"
],
"type" : "test"
},
{
"c99name" : "Cryptor",
"module_type" : "SwiftTarget",
"name" : "Cryptor",
"path" : "Sources/Cryptor",
"product_dependencies" : [
"OpenSSL"
],
"product_memberships" : [
"Cryptor"
],
"sources" : [
"Crypto.swift",
"Cryptor.swift",
"Digest.swift",
"HMAC.swift",
"KeyDerivation.swift",
"Random.swift",
"SSLPointerTricks.swift",
"Status.swift",
"StreamCryptor.swift",
"Updatable.swift",
"Utilities.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.