Build Information
Failed to build HTTP, reference 0.4.0 (6fcb34), with Swift 5.10 for Linux on 4 Apr 2025 18:42:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grdsdev/swift-http.git
Reference: 0.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/grdsdev/swift-http
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 6fcb342 remove IssueReporting dependency
Cloned https://github.com/grdsdev/swift-http.git
Revision (git rev-parse @):
6fcb342f768b67690f3628ea050f76b5f8ac4743
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/grdsdev/swift-http.git at 0.4.0
========================================
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-1":/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/apple/swift-http-types
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/890] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types from cache (0.22s)
[1/13070] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (1.84s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.3.1 (1.25s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.3 (0.41s)
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.43s)
[1/69852] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.90s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.49s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5342] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.65s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (0.59s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.36s)
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/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
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/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.3.1
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
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 HTTPField.swift
[9/15] Emitting module HTTPTypes
[10/15] Compiling HTTPTypes HTTPResponse.swift
[11/15] Compiling HTTPTypes HTTPRequest.swift
[12/15] Compiling HTTPTypes HTTPParsedFields.swift
[13/15] Compiling HTTPTypes HTTPFieldName.swift
[14/15] Compiling HTTPTypes HTTPFields.swift
[15/15] Compiling HTTPTypes NIOLock.swift
[17/22] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[18/22] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[19/22] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[20/22] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[21/22] Emitting module HTTPTypesFoundation
[22/22] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[24/30] Compiling HTTP HTTPRequestEncodableBody.swift
[25/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
~~~~~~~~~~~~~~~~^
[26/30] Compiling HTTP HTTPClient.swift
[27/30] Compiling HTTP URLSearchParams.swift
[28/30] Emitting module HTTP
[29/30] Compiling HTTP Coding.swift
[30/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, *) {
^
error: fatalError
BUILD FAILURE 5.10 linux