Build Information
Failed to build SimpleSwiftServer with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.38.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Samasaur1/SimpleSwiftServer.git
Reference: v4.4.0
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.4.0 -> FETCH_HEAD
HEAD is now at 3a55333 Package with Nix; bump to v4.4.0
Cloned https://github.com/Samasaur1/SimpleSwiftServer.git
Revision (git rev-parse @):
3a55333070975105774e4d766f68dafae66d5423
SUCCESS checkout https://github.com/Samasaur1/SimpleSwiftServer.git at v4.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
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.9-latest swift build --triple x86_64-unknown-linux-gnu 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
[296/6327] Fetching swiftip, swifter
Fetched https://github.com/Samasaur1/SwiftIP (0.23s)
[1629/6032] Fetching swifter
[3500/17694] Fetching swifter, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.77s)
Fetched https://github.com/httpswift/swifter (0.78s)
Computing version for https://github.com/httpswift/swifter
Computed https://github.com/httpswift/swifter at 1.4.5 (0.94s)
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.98s)
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/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 SwiftIP
[2/58] Emitting module Swifter
[3/60] Compiling ArgumentParser Name.swift
[4/60] Compiling ArgumentParser Parsed.swift
[5/60] Compiling ArgumentParser ParsedValues.swift
[6/60] Compiling ArgumentParser ParserError.swift
[7/64] Compiling Swifter WebSockets.swift
[8/64] Compiling ArgumentParser ArgumentSet.swift
[9/64] Compiling ArgumentParser CommandParser.swift
[10/64] Compiling ArgumentParser InputOrigin.swift
[11/64] Compiling Swifter Socket.swift
[12/64] Compiling Swifter String+BASE64.swift
[13/64] Compiling Swifter String+File.swift
[14/64] Compiling Swifter String+Misc.swift
[15/64] Compiling ArgumentParser BashCompletionsGenerator.swift
[16/64] Compiling ArgumentParser CompletionsGenerator.swift
[17/64] Compiling ArgumentParser FishCompletionsGenerator.swift
[18/64] Compiling Swifter String+SHA1.swift
[20/64] Compiling Swifter Files.swift
[21/64] Compiling Swifter MimeTypes.swift
[22/64] Compiling Swifter Process.swift
[23/64] Compiling Swifter Scopes.swift
[24/64] Compiling Swifter HttpRouter.swift
[25/64] Compiling ArgumentParser SplitArguments.swift
[26/64] Compiling ArgumentParser HelpCommand.swift
[27/64] Compiling ArgumentParser HelpGenerator.swift
[28/64] Compiling ArgumentParser MessageInfo.swift
[33/64] Compiling Swifter HttpServer.swift
[34/64] Compiling Swifter HttpServerIO.swift
[35/64] 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))
^
[36/64] Compiling Swifter Socket+Server.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))
^
[37/64] Compiling ArgumentParser UsageGenerator.swift
[38/64] Compiling ArgumentParser SequenceExtensions.swift
[39/64] Compiling ArgumentParser StringExtensions.swift
[40/64] Compiling ArgumentParser Tree.swift
[44/64] Compiling Swifter DemoServer.swift
[45/64] Compiling Swifter Errno.swift
[46/64] Emitting module ArgumentParser
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.9 linux