Build Information
Failed to build ExtensionProperty with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-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/cats-oss/ExtensionProperty.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/cats-oss/ExtensionProperty
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 933c908 fix path to source
Cloned https://github.com/cats-oss/ExtensionProperty.git
Revision (git rev-parse @):
933c908244af445fe3e7929161a664610f4f9e0d
SUCCESS checkout https://github.com/cats-oss/ExtensionProperty.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/cats-oss/ExtensionProperty.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-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/5] Emitting module ExtensionProperty
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:36:61: error: cannot find type 'objc_AssociationPolicy' in scope
func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:46:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key) -> V? {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key, defaultValue: V) -> V {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:68: error: cannot find type 'objc_AssociationPolicy' in scope
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeProperty(key: Self.Key) {
^~~~~~~
[4/5] Compiling ExtensionProperty ExtensionProperty.swift
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:36:61: error: cannot find type 'objc_AssociationPolicy' in scope
func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:46:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key) -> V? {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key, defaultValue: V) -> V {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:68: error: cannot find type 'objc_AssociationPolicy' in scope
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeProperty(key: Self.Key) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:47:16: error: cannot find 'objc_getAssociatedObject' in scope
return objc_getAssociatedObject(self, key.keyPointer) as? V
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:51:24: error: cannot find 'objc_getAssociatedObject' in scope
if let value = objc_getAssociatedObject(self, key.keyPointer) as? V {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:60:9: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(self, key.keyPointer, newValue, policy)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:65:13: error: cannot find 'objc_removeAssociatedObjects' in scope
objc_removeAssociatedObjects(any)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
[5/5] Compiling ExtensionProperty ExtensionPropertyKey.swift
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionPropertyKey.swift:27:30: error: cannot find 'Selector' in scope
return unsafeBitCast(Selector(self.keyString), to: UnsafeRawPointer.self)
^~~~~~~~
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/4] Emitting module ExtensionProperty
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:36:61: error: cannot find type 'objc_AssociationPolicy' in scope
func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:46:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key) -> V? {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key, defaultValue: V) -> V {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:68: error: cannot find type 'objc_AssociationPolicy' in scope
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeProperty(key: Self.Key) {
^~~~~~~
[3/4] Compiling ExtensionProperty ExtensionPropertyKey.swift
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionPropertyKey.swift:27:30: error: cannot find 'Selector' in scope
return unsafeBitCast(Selector(self.keyString), to: UnsafeRawPointer.self)
^~~~~~~~
[4/4] Compiling ExtensionProperty ExtensionProperty.swift
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:36:61: error: cannot find type 'objc_AssociationPolicy' in scope
func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy)
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:46:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key) -> V? {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:50:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func getProperty<V>(key: Self.Key, defaultValue: V) -> V {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:68: error: cannot find type 'objc_AssociationPolicy' in scope
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:59:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func setProperty<V>(key: Self.Key, newValue: V, policy: objc_AssociationPolicy = .OBJC_ASSOCIATION_RETAIN) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:63:5: warning: 'public' modifier is redundant for instance method declared in a public extension
public func removeProperty(key: Self.Key) {
^~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:47:16: error: cannot find 'objc_getAssociatedObject' in scope
return objc_getAssociatedObject(self, key.keyPointer) as? V
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:51:24: error: cannot find 'objc_getAssociatedObject' in scope
if let value = objc_getAssociatedObject(self, key.keyPointer) as? V {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:60:9: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(self, key.keyPointer, newValue, policy)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ExtensionProperty/ExtensionProperty.swift:65:13: error: cannot find 'objc_removeAssociatedObjects' in scope
objc_removeAssociatedObjects(any)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux