Build Information
Failed to build SwCrypt with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/soyersoyer/SwCrypt.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/soyersoyer/SwCrypt
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 50e5267 fix Swift 5 deprecations and update dummy project (#51)
Cloned https://github.com/soyersoyer/SwCrypt.git
Revision (git rev-parse @):
50e5267524f6e379318e6df4cdd1617ae379dc47
SUCCESS checkout https://github.com/soyersoyer/SwCrypt.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/soyersoyer/SwCrypt.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module SwCrypt
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
public enum SecError: OSStatus, Error {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^
[4/4] Compiling SwCrypt SwCrypt.swift
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
public enum SecError: OSStatus, Error {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:19: error: extraneous argument label 'rawValue:' in call
self = SecError(rawValue: status)!
^~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:37: error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
self = SecError(rawValue: status)!
~~~~~~~~~~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:22:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
~~~~ ^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:14: note: did you mean to specify a raw type on the enum declaration?
public enum SecError: OSStatus, Error {
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:28:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
~~~~ ^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:14: note: did you mean to specify a raw type on the enum declaration?
public enum SecError: OSStatus, Error {
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:4: error: cannot find 'kSecClass' in scope
kSecClass: kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:15: error: cannot find 'kSecClassKey' in scope
kSecClass: kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:4: error: cannot find 'kSecAttrKeyType' in scope
kSecAttrKeyType: kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:21: error: cannot find 'kSecAttrKeyTypeRSA' in scope
kSecAttrKeyType: kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:40:4: error: cannot find 'kSecAttrIsPermanent' in scope
kSecAttrIsPermanent: true as AnyObject,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:41:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag: keyTag as AnyObject,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:42:4: error: cannot find 'kSecValueData' in scope
kSecValueData: pemKeyAsData as AnyObject
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:16: error: cannot find 'SecItemAdd' in scope
var status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:41: error: cannot find type 'CFDictionary' in scope
var status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:55: error: 'nil' requires a contextual type
var status = SecItemAdd(parameters as CFDictionary, nil)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:49:16: error: cannot find 'errSecDuplicateItem' in scope
if status == errSecDuplicateItem {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:13: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:38: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:52: error: 'nil' requires a contextual type
status = SecItemAdd(parameters as CFDictionary, nil)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:53:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:4: error: cannot find 'kSecClass' in scope
kSecClass : kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:16: error: cannot find 'kSecClassKey' in scope
kSecClass : kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:4: error: cannot find 'kSecAttrKeyType' in scope
kSecAttrKeyType : kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:22: error: cannot find 'kSecAttrKeyTypeRSA' in scope
kSecAttrKeyType : kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:60:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag : keyTag as AnyObject,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:61:4: error: cannot find 'kSecReturnData' in scope
kSecReturnData : true as AnyObject
^~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:16: error: cannot find 'SecItemCopyMatching' in scope
let status = SecItemCopyMatching(parameters as CFDictionary, &data)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:50: error: cannot find type 'CFDictionary' in scope
let status = SecItemCopyMatching(parameters as CFDictionary, &data)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:65:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:4: error: cannot find 'kSecClass' in scope
kSecClass : kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:16: error: cannot find 'kSecClassKey' in scope
kSecClass : kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:79:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag: keyTag as AnyObject
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:16: error: cannot find 'SecItemDelete' in scope
let status = SecItemDelete(parameters as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:44: error: cannot find type 'CFDictionary' in scope
let status = SecItemDelete(parameters as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:82:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:743:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:758:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:762:59: error: cannot find type 'OSStatus' in scope
status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:769:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:925:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:955:51: error: cannot find type 'OSStatus' in scope
var status = key.withUnsafeBytes { keyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:962:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:967:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:970:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:972:45: error: cannot find type 'OSStatus' in scope
status = iv.withUnsafeBytes { ivBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:975:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:977:51: error: cannot find type 'OSStatus' in scope
status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:980:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:991:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:994:60: error: cannot find type 'OSStatus' in scope
status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:999:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1005:54: error: cannot find type 'OSStatus' in scope
status = tag.withUnsafeMutableBytes { tagBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1009:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1063:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1109:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1137:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1145:57: error: cannot find type 'OSStatus' in scope
let status = derKey.withUnsafeBytes { derKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1151:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1159:64: error: cannot find type 'OSStatus' in scope
let status = derKey.withUnsafeMutableBytes { derKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1162:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1198:21: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1237:21: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1261:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1562:65: error: cannot find type 'OSStatus' in scope
let status = output.withUnsafeMutableBytes { outputBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1658:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1694:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1714:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1730:64: error: cannot find type 'OSStatus' in scope
let status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1733:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1773:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1792:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1802:51: error: cannot find type 'OSStatus' in scope
let status = key.withUnsafeBytes { keyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1807:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1816:64: error: cannot find type 'OSStatus' in scope
let status = expKey.withUnsafeMutableBytes { expKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1824:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1979:55: error: cannot find type 'OSStatus' in scope
let status = input.withUnsafeBytes { inputBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1985:20: error: cannot find 'noErr' in scope
guard status == noErr else {
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2055:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2099:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2120:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module SwCrypt
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
public enum SecError: OSStatus, Error {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^
[3/3] Compiling SwCrypt SwCrypt.swift
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:24: error: cannot find type 'OSStatus' in scope
public enum SecError: OSStatus, Error {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:19:18: error: cannot find type 'OSStatus' in scope
init(_ status: OSStatus, function: String = #function, file: String = #file, line: Int = #line) {
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:45: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2082:66: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
public static let rfc3394IV = Data(bytes: UnsafePointer<UInt8>(rfc3394IVData), count:rfc3394IVData.count)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:19: error: extraneous argument label 'rawValue:' in call
self = SecError(rawValue: status)!
^~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:20:37: error: cannot force unwrap value of non-optional type 'SwKeyStore.SecError'
self = SecError(rawValue: status)!
~~~~~~~~~~~~~~~~~~~~~~~~~~^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:22:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
~~~~ ^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:14: note: did you mean to specify a raw type on the enum declaration?
public enum SecError: OSStatus, Error {
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:28:76: error: value of type 'SwKeyStore.SecError' has no member 'rawValue'
print("\(file):\(line): [\(function)] \(self._domain): \(self) (\(self.rawValue))")
~~~~ ^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:5:14: note: did you mean to specify a raw type on the enum declaration?
public enum SecError: OSStatus, Error {
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:4: error: cannot find 'kSecClass' in scope
kSecClass: kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:38:15: error: cannot find 'kSecClassKey' in scope
kSecClass: kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:4: error: cannot find 'kSecAttrKeyType' in scope
kSecAttrKeyType: kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:39:21: error: cannot find 'kSecAttrKeyTypeRSA' in scope
kSecAttrKeyType: kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:40:4: error: cannot find 'kSecAttrIsPermanent' in scope
kSecAttrIsPermanent: true as AnyObject,
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:41:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag: keyTag as AnyObject,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:42:4: error: cannot find 'kSecValueData' in scope
kSecValueData: pemKeyAsData as AnyObject
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:16: error: cannot find 'SecItemAdd' in scope
var status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:41: error: cannot find type 'CFDictionary' in scope
var status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:48:55: error: 'nil' requires a contextual type
var status = SecItemAdd(parameters as CFDictionary, nil)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:49:16: error: cannot find 'errSecDuplicateItem' in scope
if status == errSecDuplicateItem {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:13: error: cannot find 'SecItemAdd' in scope
status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:38: error: cannot find type 'CFDictionary' in scope
status = SecItemAdd(parameters as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:51:52: error: 'nil' requires a contextual type
status = SecItemAdd(parameters as CFDictionary, nil)
^
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:53:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:4: error: cannot find 'kSecClass' in scope
kSecClass : kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:58:16: error: cannot find 'kSecClassKey' in scope
kSecClass : kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:4: error: cannot find 'kSecAttrKeyType' in scope
kSecAttrKeyType : kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:59:22: error: cannot find 'kSecAttrKeyTypeRSA' in scope
kSecAttrKeyType : kSecAttrKeyTypeRSA,
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:60:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag : keyTag as AnyObject,
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:61:4: error: cannot find 'kSecReturnData' in scope
kSecReturnData : true as AnyObject
^~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:16: error: cannot find 'SecItemCopyMatching' in scope
let status = SecItemCopyMatching(parameters as CFDictionary, &data)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:64:50: error: cannot find type 'CFDictionary' in scope
let status = SecItemCopyMatching(parameters as CFDictionary, &data)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:65:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:4: error: cannot find 'kSecClass' in scope
kSecClass : kSecClassKey,
^~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:78:16: error: cannot find 'kSecClassKey' in scope
kSecClass : kSecClassKey,
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:79:4: error: cannot find 'kSecAttrApplicationTag' in scope
kSecAttrApplicationTag: keyTag as AnyObject
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:16: error: cannot find 'SecItemDelete' in scope
let status = SecItemDelete(parameters as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:81:44: error: cannot find type 'CFDictionary' in scope
let status = SecItemDelete(parameters as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:82:19: error: cannot find 'errSecSuccess' in scope
guard status == errSecSuccess else { throw SecError(status) }
^~~~~~~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:743:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:758:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:762:59: error: cannot find type 'OSStatus' in scope
status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:769:19: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:925:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:955:51: error: cannot find type 'OSStatus' in scope
var status = key.withUnsafeBytes { keyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:962:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:967:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:970:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:972:45: error: cannot find type 'OSStatus' in scope
status = iv.withUnsafeBytes { ivBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:975:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:977:51: error: cannot find type 'OSStatus' in scope
status = aData.withUnsafeBytes { aDataBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:980:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:991:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:994:60: error: cannot find type 'OSStatus' in scope
status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:999:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1005:54: error: cannot find type 'OSStatus' in scope
status = tag.withUnsafeMutableBytes { tagBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1009:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1063:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1109:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1137:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1145:57: error: cannot find type 'OSStatus' in scope
let status = derKey.withUnsafeBytes { derKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1151:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1159:64: error: cannot find type 'OSStatus' in scope
let status = derKey.withUnsafeMutableBytes { derKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1162:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1198:21: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1237:21: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1261:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1562:65: error: cannot find type 'OSStatus' in scope
let status = output.withUnsafeMutableBytes { outputBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1658:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1694:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1714:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1730:64: error: cannot find type 'OSStatus' in scope
let status = result.withUnsafeMutableBytes { resultBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1733:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1773:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1792:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1802:51: error: cannot find type 'OSStatus' in scope
let status = key.withUnsafeBytes { keyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1807:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1816:64: error: cannot find type 'OSStatus' in scope
let status = expKey.withUnsafeMutableBytes { expKeyBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1824:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1979:55: error: cannot find type 'OSStatus' in scope
let status = input.withUnsafeBytes { inputBytes -> OSStatus in
^~~~~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:1985:20: error: cannot find 'noErr' in scope
guard status == noErr else {
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2055:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2099:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
/host/spi-builder-workspace/SwCrypt/SwCrypt.swift:2120:20: error: cannot find 'noErr' in scope
guard status == noErr else { throw CCError(status) }
^~~~~
error: fatalError
BUILD FAILURE 5.10 linux