The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Speck 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/bppr/speck.git
Reference: master
Cloned https://github.com/bppr/speck.git into spi-builder-workspace
SUCCESS checkout https://github.com/bppr/speck.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-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/12] Emitting module SpeckCore
[2/12] Compiling SpeckCore Suite.swift
[3/12] Compiling SpeckCore BasicExpectation.swift
[4/13] Compiling SpeckCore Status.swift
[5/13] Compiling SpeckCore Example.swift
[6/13] Compiling SpeckCore Cursor.swift
[7/13] Compiling SpeckCore Reporter.swift
[8/13] Compiling SpeckCore SpeckCore.swift
[9/13] Compiling SpeckSystem cwd.swift
[10/13] Compiling SpeckSystem log.swift
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: error: value of optional type 'UnsafeMutablePointer<FILE>?' (aka 'Optional<UnsafeMutablePointer<_IO_FILE>>') must be unwrapped to a value of type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>')
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: note: coalesce using '??' to provide a default when the optional value contains 'nil'
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
                                                                         ?? <#default value#>
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
                                                                        !
[11/13] Compiling SpeckCore Timer.swift
/host/spi-builder-workspace/Sources/SpeckCore/Timer.swift:58:17: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
    defer { val.deallocate(capacity: 1) }
                ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/14] Compiling SpeckSystem Math.swift
[13/14] Emitting module SpeckSystem
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: error: value of optional type 'UnsafeMutablePointer<FILE>?' (aka 'Optional<UnsafeMutablePointer<_IO_FILE>>') must be unwrapped to a value of type 'UnsafeMutablePointer<FILE>' (aka 'UnsafeMutablePointer<_IO_FILE>')
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: note: coalesce using '??' to provide a default when the optional value contains 'nil'
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
                                                                         ?? <#default value#>
/host/spi-builder-workspace/Sources/SpeckSystem/log.swift:15:70: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
public func log(_ msg: String, toStream stream: FilePointer = System.out) {
                                                                     ^
                                                                        !
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2