Build Information
Failed to build Speck, reference master (186173), with Swift 6.2 for Linux on 18 Jun 2025 05:04:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.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: 6.2
Building package at path: $PWD
https://github.com/bppr/speck.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/17] Compiling SpeckCore Reporter.swift
[7/17] Compiling SpeckCore Suite.swift
[8/17] Compiling SpeckCore Status.swift
[9/17] Compiling SpeckCore SpeckCore.swift
[10/18] Compiling SpeckCore Example.swift
[11/18] Compiling SpeckCore Cursor.swift
[12/18] Emitting module SpeckCore
[13/18] Compiling SpeckCore BasicExpectation.swift
[14/18] 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>')
13 | public typealias FilePointer = UnsafeMutablePointer<FILE>
14 |
15 | public func log(_ msg: String, toStream stream: FilePointer = System.out) {
| |- 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>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
16 | fputs(msg, stream)
17 | }
[15/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 [#DeprecatedDeclaration]
56 | public static func now() -> Int {
57 | let val = UnsafeMutablePointer<timeval>.allocate(capacity: 1)
58 | defer { val.deallocate(capacity: 1) }
| `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead [#DeprecatedDeclaration]
59 |
60 | gettimeofday(val, nil)
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[16/19] Compiling SpeckSystem cwd.swift
[18/28] Compiling SpeckSystem Math.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/28] 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>')
13 | public typealias FilePointer = UnsafeMutablePointer<FILE>
14 |
15 | public func log(_ msg: String, toStream stream: FilePointer = System.out) {
| |- 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>')
| |- note: coalesce using '??' to provide a default when the optional value contains 'nil'
| `- note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
16 | fputs(msg, stream)
17 | }
BUILD FAILURE 6.2 linux