Build Information
Failed to build OAuth2 with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p2/OAuth2.git
Reference: 5.3.5
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/p2/OAuth2
* tag 5.3.5 -> FETCH_HEAD
HEAD is now at 3f6a18b Fix visionOS build, bump to 5.3.5
Submodule path 'SwiftKeychain': checked out 'a7fee4ba90cc77705f979ba14daa26fc39ef3c65'
Submodule 'SwiftKeychain' (https://github.com/p2/SwiftKeychain) registered for path 'SwiftKeychain'
Cloning into '/host/spi-builder-workspace/SwiftKeychain'...
Cloned https://github.com/p2/OAuth2.git
Revision (git rev-parse @):
3f6a18beb221636581e66d8d0cbec1a3948b4df3
SUCCESS checkout https://github.com/p2/OAuth2.git at 5.3.5
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/p2/OAuth2.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/9] Write sources
[8/9] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/11] Emitting module SwiftKeychain
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
^~~~~~~~
[11/11] Compiling SwiftKeychain Keychain.swift
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:35:23: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
return String(kSecAttrAccessibleWhenUnlocked)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:51:31: error: cannot find 'kSecValueData' in scope
itemAttributes[String(kSecValueData)] = archivedData
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:55:35: error: cannot find 'kSecAttrAccessGroup' in scope
itemAttributes[String(kSecAttrAccessGroup)] = group
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:63:49: error: cannot find 'kSecValueData' in scope
guard let valueData = attributes[String(kSecValueData)] as? Data else { return nil }
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:31: error: cannot find 'kSecReturnData' in scope
itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:50: error: cannot find 'kCFBooleanTrue' in scope
itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:31: error: cannot find 'kSecReturnAttributes' in scope
itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:56: error: cannot find 'kCFBooleanTrue' in scope
itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:77:35: error: cannot find 'kSecAttrAccessGroup' in scope
itemAttributes[String(kSecAttrAccessGroup)] = group
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:27: error: cannot find 'kSecClass' in scope
attributes[String(kSecClass)] = kSecClassGenericPassword
^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:41: error: cannot find 'kSecClassGenericPassword' in scope
attributes[String(kSecClass)] = kSecClassGenericPassword
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:104:27: error: cannot find 'kSecAttrAccessible' in scope
attributes[String(kSecAttrAccessible)] = accessMode
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:105:27: error: cannot find 'kSecAttrService' in scope
attributes[String(kSecAttrService)] = serviceName
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:106:27: error: cannot find 'kSecAttrAccount' in scope
attributes[String(kSecAttrAccount)] = accountName
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:26: error: cannot find 'SecItemAdd' in scope
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:51: error: cannot find type 'CFDictionary' in scope
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:65: error: 'nil' requires a contextual type
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:131:26: error: cannot find 'errSecDuplicateItem' in scope
if statusCode == errSecDuplicateItem {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:13: error: cannot find 'SecItemDelete' in scope
SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:41: error: cannot find type 'CFDictionary' in scope
SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:26: error: cannot find 'SecItemAdd' in scope
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:51: error: cannot find type 'CFDictionary' in scope
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:65: error: 'nil' requires a contextual type
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:137:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:26: error: cannot find 'SecItemDelete' in scope
let statusCode = SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:54: error: cannot find type 'CFDictionary' in scope
let statusCode = SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:147:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:26: error: cannot find 'SecItemCopyMatching' in scope
let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:60: error: cannot find type 'CFDictionary' in scope
let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:159:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
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 SwiftKeychain
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
^~~~~~~~
[3/3] Compiling SwiftKeychain Keychain.swift
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:120:52: error: cannot find type 'OSStatus' in scope
internal func errorForStatusCode(_ statusCode: OSStatus) -> NSError {
^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:35:23: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
return String(kSecAttrAccessibleWhenUnlocked)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:51:31: error: cannot find 'kSecValueData' in scope
itemAttributes[String(kSecValueData)] = archivedData
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:55:35: error: cannot find 'kSecAttrAccessGroup' in scope
itemAttributes[String(kSecAttrAccessGroup)] = group
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:63:49: error: cannot find 'kSecValueData' in scope
guard let valueData = attributes[String(kSecValueData)] as? Data else { return nil }
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:31: error: cannot find 'kSecReturnData' in scope
itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:72:50: error: cannot find 'kCFBooleanTrue' in scope
itemAttributes[String(kSecReturnData)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:31: error: cannot find 'kSecReturnAttributes' in scope
itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:73:56: error: cannot find 'kCFBooleanTrue' in scope
itemAttributes[String(kSecReturnAttributes)] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:77:35: error: cannot find 'kSecAttrAccessGroup' in scope
itemAttributes[String(kSecAttrAccessGroup)] = group
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:27: error: cannot find 'kSecClass' in scope
attributes[String(kSecClass)] = kSecClassGenericPassword
^~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:103:41: error: cannot find 'kSecClassGenericPassword' in scope
attributes[String(kSecClass)] = kSecClassGenericPassword
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:104:27: error: cannot find 'kSecAttrAccessible' in scope
attributes[String(kSecAttrAccessible)] = accessMode
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:105:27: error: cannot find 'kSecAttrService' in scope
attributes[String(kSecAttrService)] = serviceName
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:106:27: error: cannot find 'kSecAttrAccount' in scope
attributes[String(kSecAttrAccount)] = accountName
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:26: error: cannot find 'SecItemAdd' in scope
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:51: error: cannot find type 'CFDictionary' in scope
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:129:65: error: 'nil' requires a contextual type
var statusCode = SecItemAdd(attributes as CFDictionary, nil)
^
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:131:26: error: cannot find 'errSecDuplicateItem' in scope
if statusCode == errSecDuplicateItem {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:13: error: cannot find 'SecItemDelete' in scope
SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:133:41: error: cannot find type 'CFDictionary' in scope
SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:26: error: cannot find 'SecItemAdd' in scope
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:51: error: cannot find type 'CFDictionary' in scope
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:134:65: error: 'nil' requires a contextual type
statusCode = SecItemAdd(attributes as CFDictionary, nil)
^
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:137:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:26: error: cannot find 'SecItemDelete' in scope
let statusCode = SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:145:54: error: cannot find type 'CFDictionary' in scope
let statusCode = SecItemDelete(attributes as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:147:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:26: error: cannot find 'SecItemCopyMatching' in scope
let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:157:60: error: cannot find type 'CFDictionary' in scope
let statusCode = SecItemCopyMatching(attributes as CFDictionary, &result)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftKeychain/Keychain.swift:159:26: error: cannot find 'errSecSuccess' in scope
if statusCode != errSecSuccess {
^~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux
Build Machine: Linux 2