The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Reactive with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-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/amine2233/Reactive.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/amine2233/Reactive
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ffc76bf Create swift tests action
Cloned https://github.com/amine2233/Reactive.git
Revision (git rev-parse @):
ffc76bfa3d160311b7c3e33827c327fc5a148a82
SUCCESS checkout https://github.com/amine2233/Reactive.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/amine2233/Reactive.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-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 Reactive Threading.swift
[4/15] 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 {
                              ^
[5/15] 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 {
                              ^
[6/15] 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 {
                              ^
[7/15] Compiling Reactive ObservableExtension.swift
[8/15] Compiling Reactive ObservableToken.swift
[9/15] 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(                 )
[10/15] 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(                 )
[11/15] Compiling Reactive Precondition.swift
[12/15] Compiling Reactive Future.swift
[13/15] Compiling Reactive FutureExtension.swift
[14/15] Compiling Reactive ResultExtension.swift
[15/15] Compiling Reactive Timer.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling Reactive ExecutionContext.swift
[3/4] 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/4] 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(                 )
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1