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-4606859-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: v4.3.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/Samasaur1/SimpleSwiftServer
 * tag               v4.3.1     -> FETCH_HEAD
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 v4.3.1
========================================
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-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/httpswift/swifter
Fetching https://github.com/Samasaur1/SwiftIP
Fetching https://github.com/apple/swift-argument-parser.git
[1/295] Fetching swiftip
[187/6286] Fetching swiftip, swifter
[3292/17712] Fetching swiftip, swifter, swift-argument-parser
Fetched https://github.com/Samasaur1/SwiftIP from cache (0.69s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.70s)
Fetched https://github.com/httpswift/swifter from cache (0.71s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (1.03s)
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.05s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.0 (0.41s)
Creating working copy for https://github.com/httpswift/swifter
Working copy of https://github.com/httpswift/swifter resolved at 1.4.5
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
Building for debugging...
[0/11] Write sources
[4/11] Write swift-version-24593BA9C3E375BF.txt
[6/64] Emitting module Swifter
[7/66] Emitting module ArgumentParser
[8/70] Compiling ArgumentParser Option.swift
[9/70] Compiling ArgumentParser OptionGroup.swift
[10/70] Compiling ArgumentParser CommandConfiguration.swift
[11/70] Compiling ArgumentParser EnumerableFlag.swift
[12/70] Compiling ArgumentParser ExpressibleByArgument.swift
[13/70] Compiling Swifter String+SHA1.swift
[14/70] Compiling Swifter WebSockets.swift
[15/70] Compiling ArgumentParser UsageGenerator.swift
[16/70] Compiling ArgumentParser SequenceExtensions.swift
[17/70] Compiling ArgumentParser StringExtensions.swift
[18/70] Compiling ArgumentParser Tree.swift
[19/70] Compiling ArgumentParser BashCompletionsGenerator.swift
[20/70] Compiling ArgumentParser CompletionsGenerator.swift
[21/70] Compiling ArgumentParser FishCompletionsGenerator.swift
[22/70] Compiling ArgumentParser ZshCompletionsGenerator.swift
[23/70] Compiling ArgumentParser Argument.swift
[24/70] Compiling ArgumentParser ParserError.swift
[25/70] Compiling ArgumentParser SplitArguments.swift
[26/70] Compiling ArgumentParser Parsed.swift
[27/70] Compiling ArgumentParser ParsedValues.swift
[28/70] Compiling ArgumentParser ParsableArgumentsValidation.swift
[29/70] Compiling ArgumentParser ParsableCommand.swift
[30/70] Compiling ArgumentParser ArgumentDecoder.swift
[31/70] Compiling ArgumentParser ArgumentDefinition.swift
[32/70] Compiling ArgumentParser ArgumentSet.swift
[33/70] Compiling ArgumentParser CommandParser.swift
[34/70] Compiling ArgumentParser InputOrigin.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))
                                                           ^
[35/70] Compiling ArgumentParser Name.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))
                                                           ^
[36/70] Compiling ArgumentParser ArgumentHelp.swift
[37/70] Compiling ArgumentParser CompletionKind.swift
[38/70] Compiling ArgumentParser Errors.swift
[39/70] Compiling ArgumentParser Flag.swift
[40/70] Compiling ArgumentParser NameSpecification.swift
[41/70] Compiling ArgumentParser ParsableArguments.swift
[57/70] Compiling ArgumentParser MessageInfo.swift
error: fatalError
[64/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/13] Compiling Swifter Socket+Server.swift
[3/19] Emitting module Swifter
[4/19] 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/19] Compiling Swifter DemoServer.swift
[6/19] Compiling Swifter HttpParser.swift
[7/19] Compiling Swifter HttpServer.swift
[8/19] Emitting module ArgumentParser
[9/20] Wrapping AST for ArgumentParser for debugging
[11/20] Compiling Swifter WebSockets.swift
[12/20] Compiling Swifter Socket.swift
[13/20] Compiling Swifter HttpServerIO.swift
error: fatalError
/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 1