The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReSwiftRouter with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-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: 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/ReSwift/ReSwift-Router
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a915f67 Tweak SPM framework name (#130)
Cloned https://github.com/ReSwift/ReSwift-Router.git
Revision (git rev-parse @):
a915f67704ca5a0cf439723f7c4f7c26ef7809ba
SUCCESS checkout https://github.com/ReSwift/ReSwift-Router.git at master
========================================
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-4609320-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 6.1.1 (1.32s)
Creating working copy for https://github.com/ReSwift/ReSwift.git
Working copy of https://github.com/ReSwift/ReSwift.git resolved at 6.1.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/16] Compiling ReSwift StoreSubscriber.swift
[5/16] Compiling ReSwift StoreType.swift
[6/17] Compiling ReSwift TypeHelper.swift
[7/17] Compiling ReSwift State.swift
[8/17] Compiling ReSwift Store.swift
[9/17] Compiling ReSwift Subscription.swift
[10/17] Compiling ReSwift Assertions.swift
[11/17] Compiling ReSwift Coding.swift
[12/17] Compiling ReSwift Synchronized.swift
[13/17] Compiling ReSwift Middleware.swift
[14/17] Compiling ReSwift Reducer.swift
[15/17] Emitting module ReSwift
[16/17] Compiling ReSwift Action.swift
[17/17] Compiling ReSwift DispatchingStoreType.swift
[19/24] Compiling ReSwiftRouter Routable.swift
[20/24] Compiling ReSwiftRouter NavigationState.swift
[21/24] Emitting module ReSwiftRouter
[22/24] Compiling ReSwiftRouter NavigationActions.swift
[23/24] Compiling ReSwiftRouter NavigationReducer.swift
[24/24] 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 2