Build Information
Failed to build GraphiteClient with Swift 5.7 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.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/avito-tech/GraphiteClient.git
Reference: 0.1.1
Cloned https://github.com/avito-tech/GraphiteClient.git into spi-builder-workspace
SUCCESS checkout https://github.com/avito-tech/GraphiteClient.git at 0.1.1
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
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.7-latest swift build 2>&1
Building for debugging...
[1/4] Compiling AtomicModels ConditionLock.swift
[2/4] Compiling AtomicModels AtomicCollection.swift
[3/4] Emitting module AtomicModels
[4/4] Compiling AtomicModels AtomicValue.swift
[7/11] Compiling IO EasyOutputStreamError.swift
[8/11] Compiling IO OutputStreamProvider.swift
[9/11] Compiling IO NetworkSocketOutputStreamProvider.swift
/host/spi-builder-workspace/Sources/IO/NetworkSocketOutputStreamProvider.swift:25:16: error: type 'Stream' has no member 'getStreamsToHost'
Stream.getStreamsToHost(
~~~~~~ ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/IO/NetworkSocketOutputStreamProvider.swift:28:26: error: 'nil' requires a contextual type
inputStream: nil,
^
error: emit-module command failed with exit code 1 (use -v to see invocation)[10/11] Emitting module IO
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:111:6: error: Objective-C interoperability is disabled
@objc private func handleStream(outputStream: OutputStream) {
~^~~~~
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:200:6: error: Objective-C interoperability is disabled
@objc private func wakeUpThreadRunloop_onThread() {
~^~~~~
[11/11] Compiling IO EasyOutputStream.swift
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:111:6: error: Objective-C interoperability is disabled
@objc private func handleStream(outputStream: OutputStream) {
~^~~~~
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:200:6: error: Objective-C interoperability is disabled
@objc private func wakeUpThreadRunloop_onThread() {
~^~~~~
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:60:49: error: '#selector' can only be used with the Objective-C runtime
thread = Thread(target: self, selector: #selector(handleStream(outputStream:)), object: outputStream)
^
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:117:29: warning: result of call to 'run(mode:before:)' is unused
RunLoop.current.run(mode: RunLoop.Mode.default, before: Date.distantFuture)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/IO/EasyOutputStream.swift:196:26: error: '#selector' can only be used with the Objective-C runtime
self.perform(#selector(wakeUpThreadRunloop_onThread), on: thread, with: nil, waitUntilDone: false)
^
BUILD FAILURE 5.7 linux
Build Machine: Linux 2