The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Baggins with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexito4/Baggins.git
Reference: 1.1.0
Cloned https://github.com/alexito4/Baggins.git into spi-builder-workspace
SUCCESS checkout https://github.com/alexito4/Baggins.git at 1.1.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/alexito4/Flow.git
Fetching https://github.com/alexito4/UnwrapOrThrow
Fetched https://github.com/alexito4/UnwrapOrThrow (0.19s)
Fetched https://github.com/alexito4/Flow.git (0.21s)
Computing version for https://github.com/alexito4/UnwrapOrThrow
Computed https://github.com/alexito4/UnwrapOrThrow at 1.0.0 (0.35s)
Computing version for https://github.com/alexito4/Flow.git
Computed https://github.com/alexito4/Flow.git at 1.0.0 (0.31s)
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...
[1/7] Compiling Flow Flowable.swift
[2/7] Compiling Flow Functions.swift
[3/7] Compiling Flow Extensions.swift
[4/7] Emitting module UnwrapOrThrow
[5/7] Compiling UnwrapOrThrow UnwrapOrThrow.swift
[6/7] Emitting module Flow
[7/7] Compiling Flow Conformances.swift
[12/19] Compiling Baggins Flow.swift
[13/19] Compiling Baggins UnwrapOrThrow.swift
[14/20] Emitting module Baggins
[15/20] Compiling Baggins Collection.swift
[16/20] Compiling Baggins Bool.swift
[17/20] 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)))
                                                             ^~~~~~~~~~~~
[18/20] Compiling Baggins String.swift
[19/20] Compiling Baggins Sequence.swift
[20/20] Compiling Baggins _Brewing.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2