Build Information
Failed to build ETBinding with Swift 5.9 for Linux.
Build Command
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.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EtneteraMobile/ETBinding.git
Reference: 3.3.3
Cloned https://github.com/EtneteraMobile/ETBinding.git into spi-builder-workspace
SUCCESS checkout https://github.com/EtneteraMobile/ETBinding.git at 3.3.3
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
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
Building for debugging...
[1/12] Compiling ETBinding LiveStateData.swift
[2/12] Compiling ETBinding StateValue.swift
[3/13] Compiling ETBinding Observable.swift
[4/13] Compiling ETBinding LifecycleState.swift
[5/13] Compiling ETBinding LifecycleBoundObserver.swift
[6/13] Compiling ETBinding Observer.swift
[7/13] Compiling ETBinding LiveOptionalData.swift
[8/13] Compiling ETBinding LiveOptionalStateData.swift
[9/13] Emitting module ETBinding
[10/13] Compiling ETBinding Constants.swift
[11/13] Compiling ETBinding FutureEvent.swift
[12/13] Compiling ETBinding DeallocTracker.swift
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:56: error: cannot find 'arc4random' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:72: error: cannot find 'objc_getAssociatedObject' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:13: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:60: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
~^~~~~~~~~~~~~~~~~~~~~~~
[13/13] Compiling ETBinding LiveData.swift
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:56: error: cannot find 'arc4random' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:31:72: error: cannot find 'objc_getAssociatedObject' in scope
if let key = UnsafeRawPointer(bitPattern: UInt(arc4random())), objc_getAssociatedObject(owner, key) == nil {
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:13: error: cannot find 'objc_setAssociatedObject' in scope
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ETBinding/Helpers/DeallocTracker.swift:33:60: error: cannot infer contextual base in reference to member 'OBJC_ASSOCIATION_RETAIN'
objc_setAssociatedObject(owner, key, tracker, .OBJC_ASSOCIATION_RETAIN)
~^~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2