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-4606859-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: v4.3.1
Cloned https://github.com/Samasaur1/SimpleSwiftServer.git into spi-builder-workspace
SUCCESS checkout https://github.com/Samasaur1/SimpleSwiftServer.git at v4.3.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-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/apple/swift-argument-parser.git
Fetching https://github.com/httpswift/swifter
Fetching https://github.com/Samasaur1/SwiftIP
[1/275] Fetching swiftip
[271/6234] Fetching swiftip, swifter
[2243/17019] Fetching swiftip, swifter, swift-argument-parser
Fetched https://github.com/Samasaur1/SwiftIP (0.74s)
Fetched https://github.com/apple/swift-argument-parser.git (0.74s)
Fetched https://github.com/httpswift/swifter (0.75s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (0.91s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 0.3.1 (0.93s)
Computing version for https://github.com/Samasaur1/SwiftIP
Computed https://github.com/Samasaur1/SwiftIP at 2.2.0 (1.37s)
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/Samasaur1/SwiftIP
Working copy of https://github.com/Samasaur1/SwiftIP resolved at 2.2.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.3.1
Building for debugging...
[1/58] Emitting module Swifter
[2/60] Compiling Swifter String+SHA1.swift
[3/60] Compiling Swifter WebSockets.swift
[4/60] Compiling ArgumentParser Name.swift
[5/60] Compiling ArgumentParser Parsed.swift
[6/60] Compiling ArgumentParser ParsedValues.swift
[7/60] Compiling ArgumentParser ParserError.swift
[9/60] Compiling ArgumentParser ArgumentSet.swift
[10/60] Compiling ArgumentParser CommandParser.swift
[11/60] Compiling ArgumentParser InputOrigin.swift
[12/60] Compiling ArgumentParser SplitArguments.swift
[13/60] Compiling ArgumentParser HelpCommand.swift
[14/60] Compiling ArgumentParser HelpGenerator.swift
[15/60] Compiling ArgumentParser MessageInfo.swift
[16/60] Compiling ArgumentParser BashCompletionsGenerator.swift
[17/60] Compiling ArgumentParser CompletionsGenerator.swift
[18/60] Compiling ArgumentParser FishCompletionsGenerator.swift
[22/64] Compiling ArgumentParser ZshCompletionsGenerator.swift
[23/64] Compiling ArgumentParser Argument.swift
[24/64] Compiling ArgumentParser ArgumentHelp.swift
[25/64] Compiling ArgumentParser CompletionKind.swift
[26/64] Compiling ArgumentParser ParsableArguments.swift
[27/64] Compiling ArgumentParser ParsableArgumentsValidation.swift
[28/64] Compiling ArgumentParser ParsableCommand.swift
[29/64] Compiling ArgumentParser Option.swift
[30/64] Compiling ArgumentParser OptionGroup.swift
[31/64] Compiling ArgumentParser CommandConfiguration.swift
[32/64] Compiling ArgumentParser EnumerableFlag.swift
[33/64] Compiling ArgumentParser ExpressibleByArgument.swift
[38/64] Emitting module ArgumentParser
[41/64] Compiling ArgumentParser Errors.swift
[42/64] Compiling ArgumentParser Flag.swift
[43/64] Compiling ArgumentParser NameSpecification.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))
                                                           ^
/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))
                                                           ^
error: fatalError
[54/64] 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 1