The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MeteoLVProvider 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/fassko/MeteoLVProvider.git
Reference: 0.6.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/fassko/MeteoLVProvider
 * tag               0.6.1      -> FETCH_HEAD
HEAD is now at bfed1c4 Add return
Cloned https://github.com/fassko/MeteoLVProvider.git
Revision (git rev-parse @):
bfed1c46f57520cc0ad4e8ec0cd8fb7da000ef2b
SUCCESS checkout https://github.com/fassko/MeteoLVProvider.git at 0.6.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/fassko/MeteoLVProvider.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/scinfu/SwiftSoup.git
[31/3026] Fetching swiftsoup
Fetched https://github.com/scinfu/SwiftSoup.git from cache (0.35s)
Computing version for https://github.com/scinfu/SwiftSoup.git
Computed https://github.com/scinfu/SwiftSoup.git at 2.7.0 (0.38s)
Creating working copy for https://github.com/scinfu/SwiftSoup.git
Working copy of https://github.com/scinfu/SwiftSoup.git resolved at 2.7.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/55] Compiling SwiftSoup OrderedSet.swift
[5/55] Compiling SwiftSoup ParseError.swift
[6/55] Compiling SwiftSoup ParseErrorList.swift
[7/55] Compiling SwiftSoup ParseSettings.swift
[8/55] Compiling SwiftSoup Parser.swift
[9/55] Compiling SwiftSoup Pattern.swift
[10/55] Compiling SwiftSoup QueryParser.swift
[11/55] Compiling SwiftSoup SerializationException.swift
[12/55] Compiling SwiftSoup SimpleDictionary.swift
[13/55] Compiling SwiftSoup StreamReader.swift
[14/55] Compiling SwiftSoup String.swift
[15/55] Compiling SwiftSoup StringBuilder.swift
[16/55] Compiling SwiftSoup StringUtil.swift
[17/55] Compiling SwiftSoup StructuralEvaluator.swift
[18/62] Compiling SwiftSoup ArrayExt.swift
[19/62] Compiling SwiftSoup Attribute.swift
[20/62] Compiling SwiftSoup Attributes.swift
[21/62] Compiling SwiftSoup BinarySearch.swift
[22/62] Compiling SwiftSoup BooleanAttribute.swift
[23/62] Compiling SwiftSoup CharacterExt.swift
[24/62] Compiling SwiftSoup CharacterReader.swift
[25/62] Compiling SwiftSoup Cleaner.swift
[26/62] Compiling SwiftSoup SwiftSoup.swift
[27/62] Compiling SwiftSoup Tag.swift
[28/62] Compiling SwiftSoup TextNode.swift
[29/62] Compiling SwiftSoup Token.swift
[30/62] Compiling SwiftSoup TokenQueue.swift
[31/62] Compiling SwiftSoup Tokeniser.swift
[32/62] Compiling SwiftSoup TokeniserState.swift
[33/62] Emitting module SwiftSoup
[34/62] Compiling SwiftSoup DocumentType.swift
[35/62] Compiling SwiftSoup Element.swift
[36/62] Compiling SwiftSoup Elements.swift
[37/62] Compiling SwiftSoup Entities.swift
[38/62] Compiling SwiftSoup Evaluator.swift
[39/62] Compiling SwiftSoup Exception.swift
[40/62] Compiling SwiftSoup FormElement.swift
[41/62] Compiling SwiftSoup Collector.swift
[42/62] Compiling SwiftSoup CombiningEvaluator.swift
[43/62] Compiling SwiftSoup Comment.swift
[44/62] Compiling SwiftSoup Connection.swift
[45/62] Compiling SwiftSoup CssSelector.swift
[46/62] Compiling SwiftSoup DataNode.swift
[47/62] Compiling SwiftSoup DataUtil.swift
[48/62] Compiling SwiftSoup Document.swift
[49/62] Compiling SwiftSoup HtmlTreeBuilder.swift
[50/62] Compiling SwiftSoup HtmlTreeBuilderState.swift
[51/62] Compiling SwiftSoup HttpStatusException.swift
[52/62] Compiling SwiftSoup Mutex.swift
[53/62] Compiling SwiftSoup Node.swift
[54/62] Compiling SwiftSoup NodeTraversor.swift
[55/62] Compiling SwiftSoup NodeVisitor.swift
[56/62] Compiling SwiftSoup TreeBuilder.swift
[57/62] Compiling SwiftSoup UnfairLock.swift
[58/62] Compiling SwiftSoup UnicodeScalar.swift
[59/62] Compiling SwiftSoup Validate.swift
[60/62] Compiling SwiftSoup Whitelist.swift
[61/62] Compiling SwiftSoup XmlDeclaration.swift
[62/62] Compiling SwiftSoup XmlTreeBuilder.swift
[64/76] Compiling MeteoLVProvider LatvianRoadsStationsData.swift
[65/76] Compiling MeteoLVProvider RoadStationWeatherData.swift
[66/76] Compiling MeteoLVProvider MeteoLVError.swift
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:46:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:89:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
[67/76] Compiling MeteoLVProvider MeteoLVProvider.swift
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:46:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:89:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
[68/77] Compiling MeteoLVProvider ObservationStation.swift
[69/77] Compiling MeteoLVProvider ObservationData.swift
[70/77] Compiling MeteoLVProvider ObservationStation+Extensions.swift
[71/77] Compiling MeteoLVProvider Parameter.swift
[72/77] Compiling MeteoLVProvider Data+Extensions.swift
[73/77] Compiling MeteoLVProvider Attributes.swift
[74/77] Emitting module MeteoLVProvider
[75/77] Compiling MeteoLVProvider Geometry.swift
[76/77] Compiling MeteoLVProvider LatvianRoadsStation.swift
[77/77] Compiling MeteoLVProvider Station.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling MeteoLVProvider MeteoLVError.swift
[3/4] Emitting module MeteoLVProvider
[4/4] Compiling MeteoLVProvider MeteoLVProvider.swift
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:46:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/MeteoLVProvider.swift:89:16: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
    URLSession.shared.dataTask(with: url) { data, _, error in
    ~~~~~~~~~~ ^~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1