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-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/erica/xcopen.git
Reference: 0.1.8
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
 * tag               0.1.8      -> FETCH_HEAD
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 0.1.8
========================================
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-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/erica/Swift-General-Utility
Fetching https://github.com/erica/Swift-Mac-Utility
[1/55] Fetching swift-mac-utility
[56/156] Fetching swift-mac-utility, swift-general-utility
[135/11582] Fetching swift-mac-utility, swift-general-utility, swift-argument-parser
Fetched https://github.com/erica/Swift-Mac-Utility from cache (0.77s)
Fetched https://github.com/erica/Swift-General-Utility from cache (0.77s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.77s)
Computing version for https://github.com/erica/Swift-Mac-Utility
Computed https://github.com/erica/Swift-Mac-Utility at 0.0.3 (1.33s)
Computing version for https://github.com/erica/Swift-General-Utility
Computed https://github.com/erica/Swift-General-Utility at 0.0.6 (0.52s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.2.0 (0.51s)
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
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
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/50] Compiling ArgumentParser ArgumentSetSequence.swift
[7/50] Compiling ArgumentParser CommandParser.swift
[8/50] Compiling ArgumentParser InputOrigin.swift
[9/50] Compiling ArgumentParser Name.swift
[10/53] Compiling ArgumentParser ParsableCommand.swift
[11/53] Compiling ArgumentParser ArgumentDecoder.swift
[12/53] Compiling ArgumentParser ArgumentDefinition.swift
[13/53] Compiling ArgumentParser ArgumentSet.swift
[14/53] Compiling ArgumentParser SequenceExtensions.swift
[15/53] Compiling ArgumentParser StringExtensions.swift
[16/53] Compiling ArgumentParser Tree.swift
[17/53] Compiling GeneralUtility Utility+SideEffect.swift
[18/54] Compiling GeneralUtility Rounding.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/54] Compiling ArgumentParser Argument.swift
[20/54] Compiling ArgumentParser ArgumentHelp.swift
[21/54] Compiling ArgumentParser Errors.swift
[22/54] Compiling ArgumentParser Flag.swift
[23/54] Compiling GeneralUtility RuntimeError.swift
[24/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 {
                                                         ^~~~~~~~~~
[25/54] Compiling GeneralUtility String+Utility.swift
[26/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
                   ~~~~~~~~~~ ^~~~~~
[27/54] Compiling ArgumentParser Parsed.swift
[28/54] Compiling ArgumentParser ParsedValues.swift
[29/54] Compiling ArgumentParser ParserError.swift
[30/54] Compiling ArgumentParser SplitArguments.swift
[31/54] Compiling ArgumentParser HelpCommand.swift
[32/54] Compiling ArgumentParser HelpGenerator.swift
[33/54] Compiling ArgumentParser MessageInfo.swift
[34/54] Compiling ArgumentParser UsageGenerator.swift
[35/54] Compiling GeneralUtility Utility.swift
[36/54] Compiling ArgumentParser EnumerableFlag.swift
[37/54] Compiling ArgumentParser ExpressibleByArgument.swift
[38/54] Compiling ArgumentParser ParsableArguments.swift
[39/54] Compiling ArgumentParser ParsableArgumentsValidation.swift
[40/54] Compiling ArgumentParser NameSpecification.swift
[41/54] Compiling ArgumentParser Option.swift
[42/54] Compiling ArgumentParser OptionGroup.swift
[43/54] Compiling ArgumentParser CommandConfiguration.swift
[44/54] Emitting module ArgumentParser
error: fatalError
[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/10] 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/10] 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