The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DataKit with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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/SwiftCommon/DataKit.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/SwiftCommon/DataKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d63711e Update build environment (#149)
Cloned https://github.com/SwiftCommon/DataKit.git
Revision (git rev-parse @):
d63711e992c9307a66d91ced6b1fa54b24c3ad04
SUCCESS checkout https://github.com/SwiftCommon/DataKit.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SwiftCommon/DataKit.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/Quick/Nimble
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[1/432] Fetching cwlcatchexception
[433/1668] Fetching cwlcatchexception, cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (0.25s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.26s)
[1/17291] Fetching nimble
Fetched https://github.com/Quick/Nimble from cache (1.38s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 9.2.1 (0.43s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (0.43s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.40s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.1.0
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 9.2.1
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling DataKit Data+UTF8String.swift
[5/13] Compiling DataKit Data+ASCIIString.swift
[6/13] Compiling DataKit Data+HexString.swift
/host/spi-builder-workspace/Sources/DataKit/Data+HexString.swift:81:28: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
                charBuffer.assign(from: cString.advanced(by: idx), count: 2)
                           ^
/host/spi-builder-workspace/Sources/DataKit/Data+HexString.swift:81:28: note: use 'update(from:count:)' instead
                charBuffer.assign(from: cString.advanced(by: idx), count: 2)
                           ^~~~~~
                           update
[7/13] Compiling DataKit Base64.swift
/host/spi-builder-workspace/Sources/DataKit/Base64.swift:188:24: warning: 'assign(from:count:)' is deprecated: renamed to 'update(from:count:)'
                buffer.assign(from: ptr, count: bufferSize)
                       ^
/host/spi-builder-workspace/Sources/DataKit/Base64.swift:188:24: note: use 'update(from:count:)' instead
                buffer.assign(from: ptr, count: bufferSize)
                       ^~~~~~
                       update
[8/13] Emitting module DataKit
[9/13] Compiling DataKit Array+Data.swift
[10/14] Wrapping AST for DataKit for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/16] Emitting module DataKitBenchmark
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:8:19: error: cannot find type 'CFTimeInterval' in scope
func gettime() -> CFTimeInterval {
                  ^~~~~~~~~~~~~~
[13/16] Compiling DataKitBenchmark main.swift
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:8:19: error: cannot find type 'CFTimeInterval' in scope
func gettime() -> CFTimeInterval {
                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:35:20: error: cannot find type 'CFTimeInterval' in scope
    let startTime: CFTimeInterval = gettime()
                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:36:16: error: cannot find 'dispatch_benchmark' in scope
    let time = dispatch_benchmark(count) {
               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:39:18: error: cannot find type 'CFTimeInterval' in scope
    let endTime: CFTimeInterval = gettime()
                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:42:21: error: cannot find type 'CFTimeInterval' in scope
    let startTime1: CFTimeInterval = gettime()
                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:43:17: error: cannot find 'dispatch_benchmark' in scope
    let time1 = dispatch_benchmark(count) {
                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:46:19: error: cannot find type 'CFTimeInterval' in scope
    let endTime1: CFTimeInterval = gettime()
                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:57:20: error: cannot find type 'CFTimeInterval' in scope
    let startTime: CFTimeInterval = gettime()
                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:58:16: error: cannot find 'dispatch_benchmark' in scope
    let time = dispatch_benchmark(count) {
               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:61:18: error: cannot find type 'CFTimeInterval' in scope
    let endTime: CFTimeInterval = gettime()
                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:64:21: error: cannot find type 'CFTimeInterval' in scope
    let startTime1: CFTimeInterval = gettime()
                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:65:17: error: cannot find 'dispatch_benchmark' in scope
    let time1 = dispatch_benchmark(count) {
                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:68:19: error: cannot find type 'CFTimeInterval' in scope
    let endTime1: CFTimeInterval = gettime()
                  ^~~~~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Emitting module DataKitBenchmark
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:8:19: error: cannot find type 'CFTimeInterval' in scope
func gettime() -> CFTimeInterval {
                  ^~~~~~~~~~~~~~
[3/6] Compiling DataKitBenchmark main.swift
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:8:19: error: cannot find type 'CFTimeInterval' in scope
func gettime() -> CFTimeInterval {
                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:35:20: error: cannot find type 'CFTimeInterval' in scope
    let startTime: CFTimeInterval = gettime()
                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:36:16: error: cannot find 'dispatch_benchmark' in scope
    let time = dispatch_benchmark(count) {
               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:39:18: error: cannot find type 'CFTimeInterval' in scope
    let endTime: CFTimeInterval = gettime()
                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:42:21: error: cannot find type 'CFTimeInterval' in scope
    let startTime1: CFTimeInterval = gettime()
                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:43:17: error: cannot find 'dispatch_benchmark' in scope
    let time1 = dispatch_benchmark(count) {
                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:46:19: error: cannot find type 'CFTimeInterval' in scope
    let endTime1: CFTimeInterval = gettime()
                  ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:57:20: error: cannot find type 'CFTimeInterval' in scope
    let startTime: CFTimeInterval = gettime()
                   ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:58:16: error: cannot find 'dispatch_benchmark' in scope
    let time = dispatch_benchmark(count) {
               ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:61:18: error: cannot find type 'CFTimeInterval' in scope
    let endTime: CFTimeInterval = gettime()
                 ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:64:21: error: cannot find type 'CFTimeInterval' in scope
    let startTime1: CFTimeInterval = gettime()
                    ^~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:65:17: error: cannot find 'dispatch_benchmark' in scope
    let time1 = dispatch_benchmark(count) {
                ^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataKitBenchmark/main.swift:68:19: error: cannot find type 'CFTimeInterval' in scope
    let endTime1: CFTimeInterval = gettime()
                  ^~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1