The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ETBinding 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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/EtneteraMobile/ETBinding.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/EtneteraMobile/ETBinding
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 92500ab Merge pull request #19 from EtneteraMobile/target_version_bump
Cloned https://github.com/EtneteraMobile/ETBinding.git
Revision (git rev-parse @):
92500ab3b5d972fe8282478273b2cec0cb828d0a
SUCCESS checkout https://github.com/EtneteraMobile/ETBinding.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/EtneteraMobile/ETBinding.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/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling ETBinding LiveStateData.swift
[4/14] Compiling ETBinding StateValue.swift
[5/15] Compiling ETBinding LifecycleState.swift
[6/15] Compiling ETBinding Observable.swift
[7/15] Compiling ETBinding LiveOptionalData.swift
[8/15] Compiling ETBinding LiveOptionalStateData.swift
[9/15] Compiling ETBinding LifecycleBoundObserver.swift
[10/15] Compiling ETBinding Observer.swift
[11/15] Compiling ETBinding Constants.swift
[12/15] Compiling ETBinding FutureEvent.swift
[13/15] Emitting module ETBinding
[14/15] 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)
                                                          ~^~~~~~~~~~~~~~~~~~~~~~~
[15/15] 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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling ETBinding LiveData.swift
[3/4] Emitting module ETBinding
[4/4] 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)
                                                          ~^~~~~~~~~~~~~~~~~~~~~~~
[5/7] Compiling ETBinding LiveStateData.swift
[6/7] Compiling ETBinding LiveOptionalStateData.swift
[7/7] Compiling ETBinding LiveOptionalData.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2