The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build HTTP, reference main (f61a71), with Swift 5.10 for Linux on 5 May 2025 18:21:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grdsdev/swift-http.git
Reference: main
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/grdsdev/swift-http
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f61a71a Update deps
Cloned https://github.com/grdsdev/swift-http.git
Revision (git rev-parse @):
f61a71ad4278287a033a36595132c19f1af2d3c6
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/grdsdev/swift-http.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $PWD
https://github.com/grdsdev/swift-http.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:616ef225d0085997f26355ad9695b1159b91f6187a43f9ff135cb59d096bc97d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing
Fetching https://github.com/apple/swift-http-types
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.26s)
[1/13159] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (1.92s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.4.0 (0.56s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.3 (0.56s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4581] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.39s)
[1/70346] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.98s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.37s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5431] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.71s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (1.43s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.41s)
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.4.0
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.3
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/HTTPTests/Fixtures/file.txt
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/14] Compiling HTTPTypes ISOLatin1String.swift
[8/15] Compiling HTTPTypes HTTPFields.swift
[9/15] Compiling HTTPTypes HTTPParsedFields.swift
[10/15] Compiling HTTPTypes HTTPField.swift
[11/15] Emitting module HTTPTypes
[12/15] Compiling HTTPTypes HTTPFieldName.swift
[13/15] Compiling HTTPTypes HTTPRequest.swift
[14/15] Compiling HTTPTypes HTTPResponse.swift
[15/15] Compiling HTTPTypes NIOLock.swift
[17/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[18/22] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[19/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[20/22] Emitting module HTTPTypesFoundation
[21/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[22/22] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[24/30] Compiling HTTP HTTPRequestEncodableBody.swift
[25/30] Compiling HTTP HTTPClient.swift
[26/30] Compiling HTTP URLSearchParams.swift
[27/30] Compiling HTTP Response.swift
/host/spi-builder-workspace/Sources/HTTP/Response.swift:67:16: error: value of type 'NSLock' has no member 'withLock'
    get { lock.withLock { _decoder } }
          ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Response.swift:68:16: error: value of type 'NSLock' has no member 'withLock'
    set { lock.withLock { _decoder = newValue } }
          ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/HTTP/Response.swift:15:19: remark: '@preconcurrency' attribute on module 'Foundation' is unused
  @preconcurrency import Foundation
  ~~~~~~~~~~~~~~~~^

[28/30] Compiling HTTP FormData.swift
/host/spi-builder-workspace/Sources/HTTP/FormData.swift:229:59: warning: unrecognized platform name 'visionOS'
      if #available(iOS 14, macOS 11, tvOS 14, watchOS 7, visionOS 1, *) {
                                                          ^
[29/30] Compiling HTTP Coding.swift
[30/30] Emitting module HTTP
error: fatalError
BUILD FAILURE 5.10 linux