The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Superhighway with Swift 5.7 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-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.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-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
[140/1562] Fetching swift-http-types, swift-docc-plugin
[809/3656] Fetching swift-http-types, swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-http-types.git (0.37s)
Fetched https://github.com/apple/swift-docc-symbolkit (0.41s)
Fetched https://github.com/apple/swift-docc-plugin (0.42s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (0.28s)
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.29s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.34s)
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
Compiling plugin Swift-DocC...
Compiling plugin Swift-DocC Preview...
Building for debugging...
[1/10] Compiling HTTPTypes HTTPField.swift
[2/10] Compiling HTTPTypes HTTPFieldName.swift
[3/10] Emitting module HTTPTypes
[4/10] Compiling HTTPTypes ISOLatin1String.swift
[5/10] Compiling HTTPTypes HTTPRequest.swift
[6/10] Compiling HTTPTypes HTTPResponse.swift
[7/10] Compiling HTTPTypes HTTPFields.swift
[10/18] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[11/18] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[12/18] Emitting module HTTPTypesFoundation
[13/18] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[14/18] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[15/18] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)[18/20] Compiling Superhighway Endpoint.swift
[19/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 {
       ^         ~~~~~~~~~~
[20/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 {
       ^         ~~~~~~~~~~
BUILD FAILURE 5.7 linux

Build Machine: Linux 2