The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Timepiece with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/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/naoty/Timepiece.git
Reference: master
Cloned https://github.com/naoty/Timepiece.git into spi-builder-workspace
SUCCESS checkout https://github.com/naoty/Timepiece.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/5] Compiling Timepiece String+Timepiece.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/5] Compiling Timepiece Int+Timepiece.swift
[3/5] Compiling Timepiece Date+Timepiece.swift
[4/5] Emitting module Timepiece
/host/spi-builder-workspace/Sources/DateComponents+Timepiece.swift:115:32: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
    func string(in unitsStyle: DateComponentsFormatter.UnitsStyle) -> String? {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
[5/5] Compiling Timepiece DateComponents+Timepiece.swift
/host/spi-builder-workspace/Sources/DateComponents+Timepiece.swift:115:32: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
    func string(in unitsStyle: DateComponentsFormatter.UnitsStyle) -> String? {
                               ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
/host/spi-builder-workspace/Sources/DateComponents+Timepiece.swift:116:39: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
        let dateComponentsFormatter = DateComponentsFormatter()
                                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1