Build Information
Failed to build KeychainStore with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/JuanjoArreola/KeychainStore.git
Reference: master
Cloned https://github.com/JuanjoArreola/KeychainStore.git into /host/spi-builder-workspace
Revision (git rev-parse @):
SUCCESS checkout https://github.com/JuanjoArreola/KeychainStore.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: /host/spi-builder-workspace
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Client: Docker Engine - Community
Version: 24.0.6
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.21.0
Path: /usr/libexec/docker/cli-plugins/docker-compose
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 12
Server Version: 24.0.2
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: false
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc version: v1.1.7-0-g860f061
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: builtin
Kernel Version: 5.4.0-1109-azure
Operating System: Ubuntu 18.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 31.36GiB
Name: lb2
ID: X5EK:3YD4:A3YZ:ZDGO:QKPP:IMHE:JW4M:LYD2:4EOG:KDF4:WDKJ:TGEE
Docker Root Dir: /var/lib/docker
Debug Mode: false
Labels:
provider=azure
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/6] Emitting module KeychainStore
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:11:24: error: cannot find 'kSecClass' in scope
private let secClass = kSecClass as String
^~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:12:30: error: cannot find 'kSecAttrGeneric' in scope
private let secAttrGeneric = kSecAttrGeneric as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:13:30: error: cannot find 'kSecAttrService' in scope
private let secAttrService = kSecAttrService as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:14:34: error: cannot find 'kSecAttrAccessGroup' in scope
private let secAttrAccessGroup = kSecAttrAccessGroup as String
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:15:29: error: cannot find 'kSecAttrAccount' in scope
private let secAttrAcount = kSecAttrAccount as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:16:29: error: cannot find 'kSecMatchLimit' in scope
private let secMatchLimit = kSecMatchLimit as String
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:17:29: error: cannot find 'kSecReturnData' in scope
private let secReturnData = kSecReturnData as String
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:18:28: error: cannot find 'kSecValueData' in scope
private let secValueData = kSecValueData as String
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:19:33: error: cannot find 'kSecAttrAccessible' in scope
private let secAttrAccessible = kSecAttrAccessible as String
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:20:35: error: cannot find 'kSecReturnAttributes' in scope
private let secReturnAttributes = kSecReturnAttributes as String
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:172:24: error: cannot find type 'OSStatus' in scope
func error(from staus: OSStatus) -> KeychainStoreError {
^~~~~~~~
[2/6] Compiling KeychainStore AbstractKeychainStore.swift
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:11:24: error: cannot find 'kSecClass' in scope
private let secClass = kSecClass as String
^~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:12:30: error: cannot find 'kSecAttrGeneric' in scope
private let secAttrGeneric = kSecAttrGeneric as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:13:30: error: cannot find 'kSecAttrService' in scope
private let secAttrService = kSecAttrService as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:14:34: error: cannot find 'kSecAttrAccessGroup' in scope
private let secAttrAccessGroup = kSecAttrAccessGroup as String
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:15:29: error: cannot find 'kSecAttrAccount' in scope
private let secAttrAcount = kSecAttrAccount as String
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:16:29: error: cannot find 'kSecMatchLimit' in scope
private let secMatchLimit = kSecMatchLimit as String
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:17:29: error: cannot find 'kSecReturnData' in scope
private let secReturnData = kSecReturnData as String
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:18:28: error: cannot find 'kSecValueData' in scope
private let secValueData = kSecValueData as String
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:19:33: error: cannot find 'kSecAttrAccessible' in scope
private let secAttrAccessible = kSecAttrAccessible as String
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:20:35: error: cannot find 'kSecReturnAttributes' in scope
private let secReturnAttributes = kSecReturnAttributes as String
^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:172:24: error: cannot find type 'OSStatus' in scope
func error(from staus: OSStatus) -> KeychainStoreError {
^~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:39:23: error: cannot find 'kSecClassGenericPassword' in scope
secClass: kSecClassGenericPassword,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:56:32: error: cannot find 'kSecMatchLimitOne' in scope
query[secMatchLimit] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:57:32: error: cannot find 'kCFBooleanTrue' in scope
query[secReturnData] = kCFBooleanTrue
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:61:13: error: cannot find 'SecItemCopyMatching' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:61:42: error: cannot find type 'CFDictionary' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:63:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:65:29: error: cannot find 'errSecItemNotFound' in scope
} else if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:68:20: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:68:15: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:68:15: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:73:32: error: cannot find 'kSecMatchLimitOne' in scope
query[secMatchLimit] = kSecMatchLimitOne
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:74:32: error: cannot find 'kCFBooleanFalse' in scope
query[secReturnData] = kCFBooleanFalse
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:78:13: error: cannot find 'SecItemCopyMatching' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:78:42: error: cannot find type 'CFDictionary' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:80:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:82:29: error: cannot find 'errSecItemNotFound' in scope
} else if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:85:20: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:85:15: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:85:15: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:22: error: cannot find 'SecItemAdd' in scope
let status = SecItemAdd(query as CFDictionary, nil)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:42: error: cannot find type 'CFDictionary' in scope
let status = SecItemAdd(query as CFDictionary, nil)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:99:56: error: 'nil' requires a contextual type
let status = SecItemAdd(query as CFDictionary, nil)
^
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:100:22: error: cannot find 'errSecDuplicateItem' in scope
if status == errSecDuplicateItem {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:102:29: error: cannot find 'errSecSuccess' in scope
} else if status != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:103:19: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:103:24: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:103:19: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:22: error: cannot find 'SecItemUpdate' in scope
let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:45: error: cannot find type 'CFDictionary' in scope
let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:116:74: error: cannot find type 'CFDictionary' in scope
let status = SecItemUpdate(query as CFDictionary, updateQuery as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:117:22: error: cannot find 'errSecSuccess' in scope
if status != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:118:24: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:118:19: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:118:19: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:126:23: error: cannot find 'kSecClassGenericPassword' in scope
secClass: kSecClassGenericPassword,
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:128:34: error: cannot find 'kCFBooleanTrue' in scope
secReturnAttributes: kCFBooleanTrue as Any,
^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:129:28: error: cannot find 'kSecMatchLimitAll' in scope
secMatchLimit: kSecMatchLimitAll]
^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:136:13: error: cannot find 'SecItemCopyMatching' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:136:42: error: cannot find type 'CFDictionary' in scope
SecItemCopyMatching(query as CFDictionary, UnsafeMutablePointer($0))
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:138:22: error: cannot find 'errSecSuccess' in scope
if status == errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:144:27: error: cannot find 'errSecItemNotFound' in scope
else if status == errSecItemNotFound {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:147:20: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:147:15: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:147:15: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:155:22: error: cannot find 'SecItemDelete' in scope
let status = SecItemDelete(query as CFDictionary)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:155:45: error: cannot find type 'CFDictionary' in scope
let status = SecItemDelete(query as CFDictionary)
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:156:22: error: cannot find 'errSecSuccess' in scope
if status != errSecSuccess {
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:157:19: error: expansion of macro 'error' requires leading '#'
throw error(from: status)
^
#
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:157:24: error: extraneous argument label 'from:' in call
throw error(from: status)
^~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:157:19: error: thrown expression type '()' does not conform to 'Error'
throw error(from: status)
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/AbstractKeychainStore.swift:174:10: error: cannot find 'errSecItemNotFound' in scope
case errSecItemNotFound:
^~~~~~~~~~~~~~~~~~
[3/6] Compiling KeychainStore KeychainAccessibility.swift
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:21:20: error: cannot find 'kSecAttrAccessibleAfterFirstUnlock' in scope
return kSecAttrAccessibleAfterFirstUnlock as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:23:20: error: cannot find 'kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly' in scope
return kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:25:20: error: cannot find 'kSecAttrAccessibleAlways' in scope
return kSecAttrAccessibleAlways as String
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:27:20: error: cannot find 'kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly' in scope
return kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:29:20: error: cannot find 'kSecAttrAccessibleAlwaysThisDeviceOnly' in scope
return kSecAttrAccessibleAlwaysThisDeviceOnly as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:31:20: error: cannot find 'kSecAttrAccessibleWhenUnlocked' in scope
return kSecAttrAccessibleWhenUnlocked as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/KeychainStore/KeychainAccessibility.swift:33:20: error: cannot find 'kSecAttrAccessibleWhenUnlockedThisDeviceOnly' in scope
return kSecAttrAccessibleWhenUnlockedThisDeviceOnly as String
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[4/6] Compiling KeychainStore KeychainStringStore.swift
[5/6] Compiling KeychainStore KeychainStore.swift
[6/6] Compiling KeychainStore KeychainStoreError.swift
error: fatalError
BUILD FAILURE 5.9 linux