The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Speck 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/bppr/speck.git
Reference: master
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/bppr/speck
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1861731 adds color and execution time to output, adds SwiftLint
Cloned https://github.com/bppr/speck.git
Revision (git rev-parse @):
18617316a6c62e2cb3ea00c1cd0d0e214537e28f
SUCCESS checkout https://github.com/bppr/speck.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/bppr/speck.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
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/17] Compiling SpeckCore Status.swift
[7/18] Emitting module SpeckCore
[8/18] Compiling SpeckCore Reporter.swift
[9/18] Compiling SpeckCore SpeckCore.swift
[10/18] Compiling SpeckCore Cursor.swift
[11/18] Compiling SpeckCore BasicExpectation.swift
[12/18] Compiling SpeckCore Example.swift
[13/18] Compiling SpeckCore Suite.swift
[14/18] 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) }
                ^
[15/19] Compiling SpeckSystem cwd.swift
[16/19] Compiling SpeckSystem Math.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/19] 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) {
                                                                     ^
                                                                        !
[18/19] 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) {
                                                                     ^
                                                                        !
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] 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) {
                                                                     ^
                                                                        !
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] 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.10 linux

Build Machine: Linux 1