Build Information
Failed to build Zephyr, reference master (6a17bc
), with Swift 5.9 for Linux on 29 Aug 2024 19:40:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.52.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ArtSabintsev/Zephyr.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/ArtSabintsev/Zephyr
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 6a17bcf Bump rexml from 3.2.5 to 3.2.8 (#69)
Cloned https://github.com/ArtSabintsev/Zephyr.git
Revision (git rev-parse @):
6a17bcfec8a650cc8ac3610ef2aed65fd509a945
SUCCESS checkout https://github.com/ArtSabintsev/Zephyr.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: $PWD
https://github.com/ArtSabintsev/Zephyr.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:907758cf9691f0f77ca4e2d6f778ef6c038667a789e74bf575a4b60f864d6863
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module Zephyr
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
[2/2] Compiling Zephyr Zephyr.swift
/host/spi-builder-workspace/Sources/Zephyr.swift:22:1: error: Objective-C interoperability is disabled
@objcMembers
^~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:285:3: warning: 'public' modifier conflicts with extension's default access of 'private'
public static func setUserDefaultsSuite(to suite: UserDefaults) {
^
/host/spi-builder-workspace/Sources/Zephyr.swift:438:94: error: cannot find type 'NSKeyValueChangeKey' in scope
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:438:26: error: method does not override any method from its superclass
public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Zephyr.swift:458:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:59:16: error: cannot find 'NSUbiquitousKeyValueStore' in scope
return NSUbiquitousKeyValueStore.default.dictionaryRepresentation
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:71:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:78:30: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:225:54: error: cannot find 'NSUbiquitousKeyValueStore' in scope
name: NSUbiquitousKeyValueStore.didChangeExternallyNotification,
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:224:64: error: '#selector' can only be used with the Objective-C runtime
NotificationCenter.default.addObserver(self, selector: #selector(keysDidChangeOnCloud(notification:)),
^
/host/spi-builder-workspace/Sources/Zephyr.swift:321:31: error: cannot find 'NSUbiquitousKeyValueStore' in scope
let ubiquitousStore = NSUbiquitousKeyValueStore.default
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:345:13: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.removeObject(forKey: key)
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:26: error: value of type 'UserDefaults' has no member 'addObserver'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:71: error: cannot infer contextual base in reference to member 'new'
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
~^~~
/host/spi-builder-workspace/Sources/Zephyr.swift:411:85: error: 'nil' requires a contextual type
userDefaults.addObserver(self, forKeyPath: key, options: .new, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:430:26: error: value of type 'UserDefaults' has no member 'removeObserver'
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
~~~~~~~~~~~~ ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:430:73: error: 'nil' requires a contextual type
userDefaults.removeObserver(self, forKeyPath: key, context: nil)
^
/host/spi-builder-workspace/Sources/Zephyr.swift:463:9: error: cannot find 'NSUbiquitousKeyValueStore' in scope
NSUbiquitousKeyValueStore.default.synchronize()
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:468:33: error: cannot find 'NSUbiquitousKeyValueStore' in scope
if notification.name == NSUbiquitousKeyValueStore.didChangeExternallyNotification {
^~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Zephyr.swift:470:42: error: cannot find 'NSUbiquitousKeyValueStoreChangedKeysKey' in scope
let cloudKeys = userInfo[NSUbiquitousKeyValueStoreChangedKeysKey] as? [String],
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux