The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Superhighway 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.21.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rhysforyou/Superhighway.git
Reference: main
Cloned https://github.com/rhysforyou/Superhighway.git into spi-builder-workspace
SPI manifest file found: spi-builder-workspace/.spi.yml
SUCCESS checkout https://github.com/rhysforyou/Superhighway.git at main
========================================
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/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-docc-symbolkit
Fetching https://github.com/apple/swift-http-types.git
[1/139] Fetching swift-http-types
[139/2233] Fetching swift-http-types, swift-docc-symbolkit
[558/3656] Fetching swift-http-types, swift-docc-symbolkit, swift-docc-plugin
[581/3517] Fetching swift-docc-symbolkit, swift-docc-plugin
Fetched https://github.com/apple/swift-http-types.git (0.25s)
Fetched https://github.com/apple/swift-docc-symbolkit (0.44s)
Fetched https://github.com/apple/swift-docc-plugin (0.44s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.39s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 0.2.0 (0.32s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.36s)
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 0.2.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
                switch dependency {
                ^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
                switch dependency {
                ^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[3/12] Compiling HTTPTypes ISOLatin1String.swift
[4/12] Compiling HTTPTypes HTTPRequest.swift
[5/12] Compiling HTTPTypes HTTPResponse.swift
[6/12] Compiling HTTPTypes HTTPField.swift
[7/12] Compiling HTTPTypes HTTPFieldName.swift
[8/12] Emitting module HTTPTypes
[9/12] Compiling HTTPTypes HTTPFields.swift
[12/20] Compiling Superhighway Endpoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/20] Compiling Superhighway URLSession+Endpoint.swift
/host/spi-builder-workspace/Sources/Superhighway/URLSession+Endpoint.swift:3:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
       ^         ~~~~~~~~~~
[14/20] Emitting module Superhighway
/host/spi-builder-workspace/Sources/Superhighway/URLSession+Endpoint.swift:3:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
public extension URLSession {
       ^         ~~~~~~~~~~
[15/20] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2