Build Information
Failed to build DayPeriodFormatter with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-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/FormatterKit/DayPeriodFormatter.git
Reference: 0.0.2
Cloned https://github.com/FormatterKit/DayPeriodFormatter.git into spi-builder-workspace
SUCCESS checkout https://github.com/FormatterKit/DayPeriodFormatter.git at 0.0.2
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-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/6] Compiling DayPeriodFormatter DayPeriodRuleSet.swift
[2/6] Compiling DayPeriodFormatter DayPeriodRule.swift
[3/6] Compiling DayPeriodFormatter DayPeriodFormatter+RuleSets.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Compiling DayPeriodFormatter DayPeriod.swift
[5/6] Emitting module DayPeriodFormatter
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:4:6: error: Objective-C interoperability is disabled
@objc public var locale: Locale?
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:13:6: error: Objective-C interoperability is disabled
@objc public func string(from dateComponents: DateComponents) -> String? {
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:27:6: error: Objective-C interoperability is disabled
@objc public func string(from date: Date, in calendar: Calendar = .current) -> String? {
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:44: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:127: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:26: error: method does not override any method from its superclass
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
~~~~~~~~ ^
[6/6] Compiling DayPeriodFormatter DayPeriodFormatter.swift
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:4:6: error: Objective-C interoperability is disabled
@objc public var locale: Locale?
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:13:6: error: Objective-C interoperability is disabled
@objc public func string(from dateComponents: DateComponents) -> String? {
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:27:6: error: Objective-C interoperability is disabled
@objc public func string(from date: Date, in calendar: Calendar = .current) -> String? {
~^~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:44: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:127: error: cannot find type 'AutoreleasingUnsafeMutablePointer' in scope
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:47:26: error: method does not override any method from its superclass
public override func getObjectValue(_: AutoreleasingUnsafeMutablePointer<AnyObject?>?, for _: String, errorDescription _: AutoreleasingUnsafeMutablePointer<NSString?>?) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/DayPeriodFormatter/DayPeriodFormatter.swift:55:50: error: '#keyPath' can only be used with the Objective-C runtime
self.locale = coder.decodeObject(forKey: #keyPath(locale)) as? Locale
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2