The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Baggins with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/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/alexito4/Baggins.git
Reference: 1.1.0
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/alexito4/Baggins
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at c31a6ce Update ci.yml
Cloned https://github.com/alexito4/Baggins.git
Revision (git rev-parse @):
c31a6cec7936aacfd8a18cdb0a4aafa02c1954bf
SUCCESS checkout https://github.com/alexito4/Baggins.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/alexito4/Baggins.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/alexito4/Flow.git
Fetching https://github.com/alexito4/UnwrapOrThrow
[1/48] Fetching flow
[49/85] Fetching flow, unwraporthrow
Fetched https://github.com/alexito4/Flow.git from cache (0.21s)
Fetched https://github.com/alexito4/UnwrapOrThrow from cache (0.21s)
Computing version for https://github.com/alexito4/UnwrapOrThrow
Computed https://github.com/alexito4/UnwrapOrThrow at 1.0.0 (0.52s)
Computing version for https://github.com/alexito4/Flow.git
Computed https://github.com/alexito4/Flow.git at 1.0.0 (0.43s)
Creating working copy for https://github.com/alexito4/UnwrapOrThrow
Working copy of https://github.com/alexito4/UnwrapOrThrow resolved at 1.0.0
Creating working copy for https://github.com/alexito4/Flow.git
Working copy of https://github.com/alexito4/Flow.git resolved at 1.0.0
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/11] Compiling Flow Functions.swift
[6/11] Compiling Flow Extensions.swift
[7/11] Compiling Flow Flowable.swift
[8/11] Emitting module Flow
[9/11] Compiling Flow Conformances.swift
[11/12] Emitting module UnwrapOrThrow
[12/12] Compiling UnwrapOrThrow UnwrapOrThrow.swift
[14/21] Compiling Baggins UnwrapOrThrow.swift
[15/22] Compiling Baggins Collection.swift
[16/22] Emitting module Baggins
[17/22] Compiling Baggins Bool.swift
[18/22] Compiling Baggins Flow.swift
[19/22] Compiling Baggins Sequence.swift
[20/22] Compiling Baggins String.swift
[21/22] Compiling Baggins Concurrency.swift
/host/spi-builder-workspace/Sources/Baggins/Concurrency.swift:60:62: error: cannot find 'NSEC_PER_SEC' in scope
        try await sleep(nanoseconds: UInt64(seconds * Double(NSEC_PER_SEC)))
                                                             ^~~~~~~~~~~~
[22/22] Compiling Baggins _Brewing.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module Baggins
[3/3] Compiling Baggins Concurrency.swift
/host/spi-builder-workspace/Sources/Baggins/Concurrency.swift:60:62: error: cannot find 'NSEC_PER_SEC' in scope
        try await sleep(nanoseconds: UInt64(seconds * Double(NSEC_PER_SEC)))
                                                             ^~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1