The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReSwift-Router 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/ReSwift/ReSwift-Router.git
Reference: 0.7.1
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/ReSwift/ReSwift-Router
 * tag               0.7.1      -> FETCH_HEAD
HEAD is now at 8269008 bump version to 0.7.1
Cloned https://github.com/ReSwift/ReSwift-Router.git
Revision (git rev-parse @):
82690085e4e0fa41bc8c56527ce9dc8a6589378f
SUCCESS checkout https://github.com/ReSwift/ReSwift-Router.git at 0.7.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/ReSwift/ReSwift-Router.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
Fetching https://github.com/ReSwift/ReSwift.git
[1/6419] Fetching reswift
Fetched https://github.com/ReSwift/ReSwift.git from cache (0.60s)
Computing version for https://github.com/ReSwift/ReSwift.git
Computed https://github.com/ReSwift/ReSwift.git at 5.0.0 (1.05s)
Creating working copy for https://github.com/ReSwift/ReSwift.git
Working copy of https://github.com/ReSwift/ReSwift.git resolved at 5.0.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/15] Compiling ReSwift StoreSubscriber.swift
[5/15] Compiling ReSwift StoreType.swift
[6/16] Compiling ReSwift TypeHelper.swift
[7/16] Compiling ReSwift State.swift
[8/16] Compiling ReSwift Store.swift
[9/16] Compiling ReSwift Action.swift
[10/16] Compiling ReSwift DispatchingStoreType.swift
[11/16] Compiling ReSwift Middleware.swift
[12/16] Compiling ReSwift Reducer.swift
[13/16] Emitting module ReSwift
[14/16] Compiling ReSwift Coding.swift
[15/16] Compiling ReSwift Assertions.swift
[16/16] Compiling ReSwift Subscription.swift
[18/23] Compiling ReSwiftRouter Routable.swift
[19/23] Compiling ReSwiftRouter NavigationReducer.swift
[20/23] Emitting module ReSwiftRouter
[21/23] Compiling ReSwiftRouter NavigationActions.swift
[22/23] Compiling ReSwiftRouter NavigationState.swift
[23/23] Compiling ReSwiftRouter Router.swift
/host/spi-builder-workspace/ReSwiftRouter/Router.swift:80:78: error: cannot find 'NSEC_PER_SEC' in scope
                let waitUntil = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
                                                                             ^~~~~~~~~~~~
/host/spi-builder-workspace/ReSwiftRouter/Router.swift:80:103: error: cannot find 'NSEC_PER_SEC' in scope
                let waitUntil = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
                                                                                                      ^~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module ReSwiftRouter
[3/3] Compiling ReSwiftRouter Router.swift
/host/spi-builder-workspace/ReSwiftRouter/Router.swift:80:78: error: cannot find 'NSEC_PER_SEC' in scope
                let waitUntil = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
                                                                             ^~~~~~~~~~~~
/host/spi-builder-workspace/ReSwiftRouter/Router.swift:80:103: error: cannot find 'NSEC_PER_SEC' in scope
                let waitUntil = DispatchTime.now() + Double(Int64(3 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
                                                                                                      ^~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1