The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Reactive, reference 4.0.2 (1b2878), with Swift 6.2 for Linux on 18 Jun 2025 08:46:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amine2233/Reactive.git
Reference: 4.0.2
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
 * tag               4.0.2      -> FETCH_HEAD
HEAD is now at 1b28785 FEAT: Add DispatchQueue when exec future
Cloned https://github.com/amine2233/Reactive.git
Revision (git rev-parse @):
1b28785898877e2123835a0fd82844262cf951c2
SUCCESS checkout https://github.com/amine2233/Reactive.git at 4.0.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/amine2233/Reactive.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/14] Compiling Reactive ResultExtension.swift
[4/15] Compiling Reactive Threading.swift
[5/15] Compiling Reactive FutureExtension.swift
[6/15] Compiling Reactive ObservableExtension.swift
[7/15] Compiling Reactive ObservableToken.swift
[8/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 [#deprecation]
 27 |  A type-erased Observable in order to avoid generic specification when unnecessary.
 28 |  */
 29 | public protocol Unsubscribable: class {
    |                                 `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 30 |     func unsubscribe(_ token: ObservableToken)
 31 | }
/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 the Swift 6 language mode
 57 |  Observables are thread safe.
 58 |  */
 59 | public final class Observable<T>: ObservableProtocol, Unsubscribable {
    |                               `- note: 'T' previously declared here
 60 |
 61 |     fileprivate var observers = [ObservableToken: Observer<T>]()
    :
157 |     */
158 |     @discardableResult
159 |     public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
    |                           `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
160 |         subscribe { value in
161 |             observable.update(value)
[9/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 [#deprecation]
 27 |  A type-erased Observable in order to avoid generic specification when unnecessary.
 28 |  */
 29 | public protocol Unsubscribable: class {
    |                                 `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 30 |     func unsubscribe(_ token: ObservableToken)
 31 | }
/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 the Swift 6 language mode
 57 |  Observables are thread safe.
 58 |  */
 59 | public final class Observable<T>: ObservableProtocol, Unsubscribable {
    |                               `- note: 'T' previously declared here
 60 |
 61 |     fileprivate var observers = [ObservableToken: Observer<T>]()
    :
157 |     */
158 |     @discardableResult
159 |     public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
    |                           `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
160 |         subscribe { value in
161 |             observable.update(value)
[10/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 [#deprecation]
 27 |  A type-erased Observable in order to avoid generic specification when unnecessary.
 28 |  */
 29 | public protocol Unsubscribable: class {
    |                                 `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead [#deprecation]
 30 |     func unsubscribe(_ token: ObservableToken)
 31 | }
/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 the Swift 6 language mode
 57 |  Observables are thread safe.
 58 |  */
 59 | public final class Observable<T>: ObservableProtocol, Unsubscribable {
    |                               `- note: 'T' previously declared here
 60 |
 61 |     fileprivate var observers = [ObservableToken: Observer<T>]()
    :
157 |     */
158 |     @discardableResult
159 |     public func subscribe<T: ObservableProtocol>(_ observable: T) -> ObservableToken where Element == T.Element {
    |                           `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
160 |         subscribe { value in
161 |             observable.update(value)
[11/15] Compiling Reactive Precondition.swift
[12/15] Compiling Reactive Future.swift
[13/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'
19 |     init() {
20 |         pthread_mutexattr_init(&attributes)
21 |         pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE)
   |                                                `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
22 |         pthread_mutex_init(&mutex, &attributes)
23 |     }
[14/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'
19 |     init() {
20 |         pthread_mutexattr_init(&attributes)
21 |         pthread_mutexattr_settype(&attributes, PTHREAD_MUTEX_RECURSIVE)
   |                                                `- error: cannot convert value of type 'Int' to expected argument type 'Int32'
22 |         pthread_mutex_init(&mutex, &attributes)
23 |     }
[15/15] Compiling Reactive Timer.swift
BUILD FAILURE 6.2 linux