The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Reactive with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/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/amine2233/Reactive.git
Reference: master
Cloned https://github.com/amine2233/Reactive.git into spi-builder-workspace
SUCCESS checkout https://github.com/amine2233/Reactive.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/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 Reactive ObservableExtension.swift
[2/12] Compiling Reactive ObservableToken.swift
[3/13] Emitting module Reactive
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:29:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Unsubscribable: class {
                                ^~~~~
                                AnyObject
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:159:27: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
                          ^
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:59:31: note: 'T' previously declared here
public final class Observable<T>: ObservableProtocol, Unsubscribable {
                              ^
[4/13] Compiling Reactive Threading.swift
[5/13] Compiling Reactive ResultExtension.swift
[6/13] Compiling Reactive Precondition.swift
[7/13] Compiling Reactive Future.swift
[8/13] Compiling Reactive Observable.swift
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:29:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Unsubscribable: class {
                                ^~~~~
                                AnyObject
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:159:27: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
                          ^
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:59:31: note: 'T' previously declared here
public final class Observable<T>: ObservableProtocol, Unsubscribable {
                              ^
[9/13] Compiling Reactive ObservableCombining.swift
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:29:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Unsubscribable: class {
                                ^~~~~
                                AnyObject
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:159:27: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
                          ^
/host/spi-builder-workspace/Sources/Reactive/Observable.swift:59:31: note: 'T' previously declared here
public final class Observable<T>: ObservableProtocol, Unsubscribable {
                              ^
[10/13] Compiling Reactive FutureExtension.swift
[11/13] Compiling Reactive ExecutionContext.swift
/host/spi-builder-workspace/Sources/Reactive/Lock.swift:21:48: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE)
                                               ^
                                               Int32(                 )
[12/13] Compiling Reactive Lock.swift
/host/spi-builder-workspace/Sources/Reactive/Lock.swift:21:48: error: cannot convert value of type 'Int' to expected argument type 'Int32'
        pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE)
                                               ^
                                               Int32(                 )
[13/13] Compiling Reactive Timer.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2