The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Selenops 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/zntfdr/Selenops.git
Reference: 2.0.1
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/zntfdr/Selenops
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at 8c2ee90 remove file headers
Cloned https://github.com/zntfdr/Selenops.git
Revision (git rev-parse @):
8c2ee90339cf47edf8087ac40a924bb1db6e4fec
SUCCESS checkout https://github.com/zntfdr/Selenops.git at 2.0.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/zntfdr/Selenops.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
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/scinfu/SwiftSoup.git
[1/3026] Fetching swiftsoup
[2513/9149] Fetching swiftsoup, swift-tools-support-core
[9150/20575] Fetching swiftsoup, swift-tools-support-core, swift-argument-parser
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.57s)
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.57s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.58s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.3.0 (1.04s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.0.1 (0.42s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.0.1 (0.40s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.3.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 0.0.1
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.0.1
Building for debugging...
[0/20] Write sources
[7/20] Compiling TSCclibc libc.c
[8/20] Write swift-version-24593BA9C3E375BF.txt
[10/98] Emitting module ArgumentParser
[11/101] Emitting module SwiftSoup
[12/108] Compiling SwiftSoup Connection.swift
[13/108] Compiling SwiftSoup DataNode.swift
[14/108] Compiling SwiftSoup DataUtil.swift
[15/108] Compiling SwiftSoup ArrayExt.swift
[16/108] Compiling SwiftSoup Cleaner.swift
[17/108] Compiling SwiftSoup Collector.swift
[18/108] Compiling SwiftSoup CombiningEvaluator.swift
[19/108] Compiling SwiftSoup Comment.swift
[20/108] Compiling SwiftSoup FormElement.swift
[21/108] Compiling SwiftSoup HtmlTreeBuilder.swift
[22/108] Compiling SwiftSoup HtmlTreeBuilderState.swift
[23/108] Compiling SwiftSoup HttpStatusException.swift
[24/108] Emitting module TSCLibc
[25/108] Compiling TSCLibc libc.swift
[26/109] Compiling SwiftSoup StructuralEvaluator.swift
[27/109] Compiling SwiftSoup SwiftSoup.swift
[28/109] Compiling SwiftSoup Tag.swift
[29/109] Compiling SwiftSoup TextNode.swift
[30/109] Compiling SwiftSoup Token.swift
[31/109] Compiling SwiftSoup TokenQueue.swift
[32/109] Compiling SwiftSoup Tokeniser.swift
[33/109] Compiling SwiftSoup Attribute.swift
[34/109] Compiling SwiftSoup Attributes.swift
[35/109] Compiling SwiftSoup BinarySearch.swift
[36/109] Compiling SwiftSoup BooleanAttribute.swift
[37/109] Compiling SwiftSoup Entities.swift
[38/109] Compiling SwiftSoup Evaluator.swift
[39/109] Compiling SwiftSoup Exception.swift
[40/109] Compiling SwiftSoup DocumentType.swift
[41/109] Compiling SwiftSoup Element.swift
[42/109] Compiling SwiftSoup Elements.swift
[43/109] Compiling SwiftSoup CharacterExt.swift
[44/109] Compiling SwiftSoup CharacterReader.swift
[45/109] Compiling SwiftSoup Document.swift
[47/109] Compiling SwiftSoup OrderedSet.swift
[48/109] Compiling SwiftSoup ParseError.swift
[49/109] Compiling SwiftSoup ParseErrorList.swift
[50/109] Compiling SwiftSoup ParseSettings.swift
[51/109] Compiling SwiftSoup Parser.swift
[52/109] Compiling SwiftSoup Pattern.swift
[53/109] Compiling SwiftSoup QueryParser.swift
[54/109] Compiling SwiftSoup Selector.swift
[55/109] Compiling SwiftSoup SerializationException.swift
[56/109] Compiling SwiftSoup SimpleDictionary.swift
[57/109] Compiling SwiftSoup StreamReader.swift
[58/109] Compiling SwiftSoup String.swift
[59/109] Compiling SwiftSoup StringBuilder.swift
[60/109] Compiling SwiftSoup StringUtil.swift
[82/109] Compiling ArgumentParser UsageGenerator.swift
[83/109] Compiling ArgumentParser StringExtensions.swift
[84/109] Compiling ArgumentParser Tree.swift
[84/110] Wrapping AST for TSCLibc for debugging
[87/148] Compiling SwiftSoup TokeniserState.swift
[88/148] Compiling SwiftSoup TreeBuilder.swift
[89/148] Compiling SwiftSoup UnicodeScalar.swift
[90/148] Compiling SwiftSoup Validate.swift
[91/148] Compiling SwiftSoup Whitelist.swift
[92/148] Compiling SwiftSoup XmlDeclaration.swift
[93/148] Compiling SwiftSoup XmlTreeBuilder.swift
[94/148] Compiling TSCBasic DictionaryLiteralExtensions.swift
[95/148] Compiling TSCBasic JSONMapper.swift
[96/148] Compiling TSCBasic KeyedPair.swift
[97/148] Compiling TSCBasic LazyCache.swift
[98/148] Compiling TSCBasic Lock.swift
[99/148] Compiling TSCBasic OSLog.swift
[100/148] Compiling TSCBasic ObjectIdentifierProtocol.swift
[100/148] Wrapping AST for ArgumentParser for debugging
[103/149] Compiling TSCBasic Await.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[104/149] Compiling TSCBasic ByteString.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[105/149] Compiling TSCBasic CStringArray.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[106/149] Compiling TSCBasic CacheableSequence.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[107/149] Compiling TSCBasic CodableResult.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[108/149] Compiling TSCBasic CollectionAlgorithms.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/Await.swift:18:28: error: value of type '(@escaping (Result<T, ErrorType>) -> Void) -> Void' has no member 'get'
    return try await(body).get()
                    ~~~~~~ ^~~
[108/154] Wrapping AST for SwiftSoup for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[110/156] Emitting module Selenops
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:61:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  var currentTask: URLSessionDataTask?
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
[111/156] Compiling Selenops Crawler.swift
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:61:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  var currentTask: URLSessionDataTask?
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:90:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
    currentTask?.cancel()
    ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                  ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:71: error: cannot infer type of closure parameter 'data' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                      ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:77: error: cannot infer type of closure parameter '_' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                            ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:80: error: cannot infer type of closure parameter '_' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                               ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:129:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
    currentTask?.resume()
    ~~~~~~~~~~~~ ^~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/12] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/49] Emitting module Selenops
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:61:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  var currentTask: URLSessionDataTask?
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
[3/49] Compiling Selenops Crawler.swift
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:61:20: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  var currentTask: URLSessionDataTask?
                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:90:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
    currentTask?.cancel()
    ~~~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:30: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                  ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:71: error: cannot infer type of closure parameter 'data' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                      ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:77: error: cannot infer type of closure parameter '_' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                            ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:120:80: error: cannot infer type of closure parameter '_' without a type annotation
    currentTask = URLSession.shared.dataTask(with: url) { [weak self] data, _, _ in
                                                                               ^
/host/spi-builder-workspace/Sources/Selenops/Crawler.swift:129:18: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
    currentTask?.resume()
    ~~~~~~~~~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1