The Swift Package Index logo.Swift Package Index

Build Information

Failed to build xcopen with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-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/erica/xcopen.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/erica/xcopen
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at df6f77e Updates docs and user messages after adding default pkg open
Cloned https://github.com/erica/xcopen.git
Revision (git rev-parse @):
df6f77e0c66ac40f992f92f5a7332882b20f67e7
SUCCESS checkout https://github.com/erica/xcopen.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/erica/xcopen.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/erica/Swift-General-Utility
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/erica/Swift-Mac-Utility
[1/101] Fetching swift-general-utility
[101/156] Fetching swift-general-utility, swift-mac-utility
[156/11582] Fetching swift-general-utility, swift-mac-utility, swift-argument-parser
Fetched https://github.com/erica/Swift-Mac-Utility from cache (0.73s)
Fetched https://github.com/erica/Swift-General-Utility from cache (0.73s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.73s)
Computing version for https://github.com/erica/Swift-Mac-Utility
Computed https://github.com/erica/Swift-Mac-Utility at 0.0.3 (0.48s)
Computing version for https://github.com/erica/Swift-General-Utility
Computed https://github.com/erica/Swift-General-Utility at 0.0.6 (0.47s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.2.0 (0.49s)
Creating working copy for https://github.com/erica/Swift-General-Utility
Working copy of https://github.com/erica/Swift-General-Utility resolved at 0.0.6
Creating working copy for https://github.com/erica/Swift-Mac-Utility
Working copy of https://github.com/erica/Swift-Mac-Utility resolved at 0.0.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.2.0
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/50] Compiling ArgumentParser ParsableCommand.swift
[7/50] Compiling ArgumentParser ArgumentDecoder.swift
[8/50] Compiling ArgumentParser ArgumentDefinition.swift
[9/50] Compiling ArgumentParser ArgumentSet.swift
[10/50] Compiling ArgumentParser ArgumentSetSequence.swift
[11/50] Compiling ArgumentParser CommandParser.swift
[12/50] Compiling ArgumentParser InputOrigin.swift
[13/50] Compiling ArgumentParser Name.swift
[14/53] Compiling ArgumentParser NameSpecification.swift
[15/53] Compiling ArgumentParser Option.swift
[16/53] Compiling ArgumentParser OptionGroup.swift
[17/53] Compiling ArgumentParser CommandConfiguration.swift
[18/53] Compiling ArgumentParser SequenceExtensions.swift
[19/53] Compiling ArgumentParser StringExtensions.swift
[20/53] Compiling ArgumentParser Tree.swift
[21/53] Compiling GeneralUtility Rounding.swift
[22/54] Compiling ArgumentParser EnumerableFlag.swift
[23/54] Compiling ArgumentParser ExpressibleByArgument.swift
[24/54] Compiling ArgumentParser ParsableArguments.swift
[25/54] Compiling ArgumentParser ParsableArgumentsValidation.swift
[26/54] Compiling GeneralUtility Utility+SideEffect.swift
[27/54] Compiling GeneralUtility Utility.swift
[28/54] Compiling GeneralUtility String+Utility.swift
[29/54] Compiling GeneralUtility RuntimeError.swift
[30/54] Compiling GeneralUtility SynchronousData.swift
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:10:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:21:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:11:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
                   ~~~~~~~~~~ ^~~~~~
[31/54] Compiling ArgumentParser Errors.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/54] Compiling ArgumentParser Flag.swift
[33/54] Compiling ArgumentParser Argument.swift
[34/54] Compiling ArgumentParser ArgumentHelp.swift
[35/54] Emitting module GeneralUtility
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:10:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:21:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
[36/54] Emitting module ArgumentParser
error: fatalError
[41/54] Compiling ArgumentParser Parsed.swift
[42/54] Compiling ArgumentParser ParsedValues.swift
[43/54] Compiling ArgumentParser ParserError.swift
[44/54] Compiling ArgumentParser SplitArguments.swift
[0/1] Planning build
Building for debugging...
[0/7] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/14] Emitting module GeneralUtility
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:10:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:21:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
[3/14] Compiling GeneralUtility SynchronousData.swift
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:10:59: error: cannot find type 'URLRequest' in scope
    public static func requestAsynchronousData(_ request: URLRequest, completion: @escaping (Result<Data, Error>) -> Void) -> Void {
                                                          ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:21:58: error: cannot find type 'URLRequest' in scope
    public static func requestSynchronousData(_ request: URLRequest) throws -> Data {
                                                         ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/Swift-General-Utility/Sources/SynchronousData.swift:11:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
        let task = URLSession.shared.dataTask(with: request) { data, _, error -> Void in
                   ~~~~~~~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2