The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SimpleSwiftServer with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/SimpleSwiftServer.git
Reference: master
Cloned https://github.com/Samasaur1/SimpleSwiftServer.git into spi-builder-workspace
SUCCESS checkout https://github.com/Samasaur1/SimpleSwiftServer.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-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/5959] Fetching swifter
[180/6234] Fetching swifter, swiftip
[2124/17019] Fetching swifter, swiftip, swift-argument-parser
Fetched https://github.com/Samasaur1/SwiftIP (0.71s)
Fetched https://github.com/apple/swift-argument-parser.git (0.72s)
Fetched https://github.com/httpswift/swifter (0.83s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (1.11s)
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.20s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.0 (0.31s)
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...
[1/58] Emitting module Swifter
[2/60] Emitting module ArgumentParser
[3/64] Compiling ArgumentParser ArgumentDefinition.swift
[4/64] Compiling ArgumentParser ArgumentSet.swift
[5/64] Compiling ArgumentParser CommandParser.swift
[6/64] Compiling ArgumentParser InputOrigin.swift
[8/64] Compiling ArgumentParser ArgumentHelp.swift
[9/64] Compiling ArgumentParser CompletionKind.swift
[10/64] Compiling ArgumentParser BashCompletionsGenerator.swift
[11/64] Compiling ArgumentParser CompletionsGenerator.swift
[12/64] Compiling ArgumentParser FishCompletionsGenerator.swift
[13/64] Compiling ArgumentParser Errors.swift
[14/64] Compiling ArgumentParser Flag.swift
[15/64] Compiling ArgumentParser NameSpecification.swift
[16/64] Compiling ArgumentParser UsageGenerator.swift
[17/64] Compiling ArgumentParser SequenceExtensions.swift
[18/64] Compiling ArgumentParser StringExtensions.swift
[19/64] Compiling ArgumentParser Tree.swift
[23/64] Compiling ArgumentParser ParsableArguments.swift
[24/64] Compiling ArgumentParser ParsableArgumentsValidation.swift
[25/64] Compiling ArgumentParser ParsableCommand.swift
[26/64] Compiling ArgumentParser ArgumentDecoder.swift
[27/64] 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))
                                                           ^
[28/64] 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))
                                                           ^
[29/64] Compiling Swifter String+SHA1.swift
[30/64] Compiling Swifter WebSockets.swift
[40/64] Compiling ArgumentParser Name.swift
[41/64] Compiling ArgumentParser Parsed.swift
[42/64] Compiling ArgumentParser ParsedValues.swift
[43/64] Compiling ArgumentParser ParserError.swift
[51/64] Compiling ArgumentParser CommandConfiguration.swift
[52/64] Compiling ArgumentParser EnumerableFlag.swift
[53/64] Compiling ArgumentParser ExpressibleByArgument.swift
[54/64] Compiling ArgumentParser SplitArguments.swift
[55/64] Compiling ArgumentParser HelpCommand.swift
[56/64] Compiling ArgumentParser HelpGenerator.swift
[57/64] Compiling ArgumentParser MessageInfo.swift
error: fatalError
[60/66] 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.9 linux

Build Machine: Linux 2