The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleSwiftServer 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/Samasaur1/SimpleSwiftServer.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/Samasaur1/SimpleSwiftServer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ecb0706 Version 4.3.1: URL-decode file paths before attempting to open them
Cloned https://github.com/Samasaur1/SimpleSwiftServer.git
Revision (git rev-parse @):
ecb070647abbfc57e4ccb1425b81e9c82c291412
SUCCESS checkout https://github.com/Samasaur1/SimpleSwiftServer.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Samasaur1/SimpleSwiftServer.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/Samasaur1/SwiftIP
Fetching https://github.com/httpswift/swifter
Fetching https://github.com/apple/swift-argument-parser.git
[1/295] Fetching swiftip
[296/6286] Fetching swiftip, swifter
[2214/17712] Fetching swiftip, swifter, swift-argument-parser
Fetched https://github.com/Samasaur1/SwiftIP from cache (0.88s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.89s)
Fetched https://github.com/httpswift/swifter from cache (0.90s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (1.27s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.3.1 (1.31s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.0 (0.45s)
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.3.1
Creating working copy for https://github.com/Samasaur1/SwiftIP
Working copy of https://github.com/Samasaur1/SwiftIP resolved at 2.2.0
Creating working copy for https://github.com/httpswift/swifter
Working copy of https://github.com/httpswift/swifter resolved at 1.4.5
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/64] Compiling ArgumentParser ArgumentDefinition.swift
[7/64] Compiling ArgumentParser ArgumentSet.swift
[8/64] Compiling ArgumentParser CommandParser.swift
[9/64] Compiling ArgumentParser InputOrigin.swift
[10/64] Compiling ArgumentParser Option.swift
[11/64] Compiling ArgumentParser OptionGroup.swift
[12/64] Compiling ArgumentParser CommandConfiguration.swift
[13/64] Compiling ArgumentParser EnumerableFlag.swift
[14/64] Compiling ArgumentParser ExpressibleByArgument.swift
[15/68] Compiling ArgumentParser ParsableArgumentsValidation.swift
[16/68] Compiling ArgumentParser ParsableCommand.swift
[18/68] Compiling ArgumentParser ParsableArguments.swift
[19/68] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+File.swift:23:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[20/68] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+File.swift:23:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[21/70] Emitting module Swifter
[22/70] Compiling ArgumentParser BashCompletionsGenerator.swift
[23/70] Compiling ArgumentParser CompletionsGenerator.swift
[24/70] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/70] Compiling ArgumentParser Name.swift
[26/70] Compiling ArgumentParser Parsed.swift
[27/70] Compiling ArgumentParser ParsedValues.swift
[28/70] Compiling ArgumentParser ParserError.swift
[29/70] Compiling ArgumentParser SplitArguments.swift
[30/70] Compiling ArgumentParser HelpCommand.swift
[31/70] Compiling ArgumentParser HelpGenerator.swift
[32/70] Compiling ArgumentParser MessageInfo.swift
[33/70] Compiling ArgumentParser ArgumentHelp.swift
[34/70] Compiling ArgumentParser CompletionKind.swift
[35/70] Compiling ArgumentParser Errors.swift
[36/70] Compiling ArgumentParser Flag.swift
[37/70] Compiling ArgumentParser NameSpecification.swift
[41/70] Compiling Swifter String+SHA1.swift
[51/70] Emitting module ArgumentParser
[57/70] Compiling ArgumentParser UsageGenerator.swift
[58/70] Compiling ArgumentParser SequenceExtensions.swift
[59/70] Compiling ArgumentParser StringExtensions.swift
[60/70] Compiling ArgumentParser Tree.swift
[61/71] Wrapping AST for ArgumentParser for debugging
[64/71] Compiling Swifter WebSockets.swift
error: fatalError
[65/71] Emitting module SwiftIP
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:25:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:26:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: config)
                      ^~~~~~~~~~
[0/1] Planning build
Building for debugging...
[0/7] Write swift-version-24593BA9C3E375BF.txt
[2/11] Emitting module Swifter
[3/11] Compiling Swifter Socket+Server.swift
[4/11] Compiling Swifter Socket+File.swift
/host/spi-builder-workspace/.build/checkouts/swifter/Sources/Socket+File.swift:23:60: error: generic parameter 'Element' could not be inferred
                    let writeResult = send(target, &buffer + writeCounter, readResult - writeCounter, Int32(MSG_NOSIGNAL))
                                                           ^
[5/17] Compiling Swifter HttpParser.swift
[6/17] Compiling Swifter DemoServer.swift
[7/17] Compiling Swifter HttpServerIO.swift
[8/17] Compiling Swifter Socket.swift
[9/17] Compiling Swifter HttpServer.swift
[10/17] Compiling Swifter WebSockets.swift
error: fatalError
[11/17] Emitting module SwiftIP
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:25:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:26:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let config = URLSessionConfiguration.default
                     ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/.build/checkouts/SwiftIP/Sources/SwiftIP/SwiftIP.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        let session = URLSession(configuration: config)
                      ^~~~~~~~~~
BUILD FAILURE 5.10 linux

Build Machine: Linux 2