Build Information
Failed to build swift-json, reference develop (77ad2a
), with Swift 6.1 for Linux on 29 Apr 2025 06:31:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sinoru/swift-json.git
Reference: develop
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/sinoru/swift-json
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 77ad2a7 Add JSONValueDecoder
Cloned https://github.com/sinoru/swift-json.git
Revision (git rev-parse @):
77ad2a729381142a74da3a807040b72ce1bb8894
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/sinoru/swift-json.git at develop
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/sinoru/swift-json.git
https://github.com/sinoru/swift-json.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-json",
"name" : "swift-json",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "JSON",
"targets" : [
"JSON"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "JSONValueCoder",
"targets" : [
"JSONValueCoder"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "JSONValueCoder",
"module_type" : "SwiftTarget",
"name" : "JSONValueCoder",
"path" : "Sources/JSONValueCoder",
"product_memberships" : [
"JSONValueCoder"
],
"sources" : [
"CodingPath.swift",
"JSONValue+Descriptions.swift",
"JSONValueCoder.swift",
"JSONValueDecoder+Combine.swift",
"JSONValueDecoder+Container.swift",
"JSONValueDecoder+Decoder.swift",
"JSONValueDecoder+KeyedContainer.swift",
"JSONValueDecoder+SingleValueContainer.swift",
"JSONValueDecoder+UnkeyedContainer.swift",
"JSONValueDecoder.swift"
],
"target_dependencies" : [
"JSON"
],
"type" : "library"
},
{
"c99name" : "JSONTests",
"module_type" : "SwiftTarget",
"name" : "JSONTests",
"path" : "Tests/JSONTests",
"sources" : [
"JSONTests+Value.swift",
"JSONTests+Value_Codable.swift",
"JSONTests+Value_Decodable.swift"
],
"target_dependencies" : [
"JSON"
],
"type" : "test"
},
{
"c99name" : "JSONNumberTests",
"module_type" : "SwiftTarget",
"name" : "JSONNumberTests",
"path" : "Tests/JSONNumberTests",
"sources" : [
"JSONNumberTests.swift"
],
"target_dependencies" : [
"JSONNumber"
],
"type" : "test"
},
{
"c99name" : "JSONNumber",
"module_type" : "SwiftTarget",
"name" : "JSONNumber",
"path" : "Sources/JSONNumber",
"product_memberships" : [
"JSON",
"JSONValueCoder"
],
"sources" : [
"JSONNumber+Conformances.swift",
"JSONNumber+Decimal.swift",
"JSONNumber+Values.swift",
"JSONNumber.swift"
],
"type" : "library"
},
{
"c99name" : "JSON",
"module_type" : "SwiftTarget",
"name" : "JSON",
"path" : "Sources/JSON",
"product_memberships" : [
"JSON",
"JSONValueCoder"
],
"sources" : [
"JSON.swift",
"Value/JSONValue+Decodable.swift",
"Value/JSONValue+Descriptions.swift",
"Value/JSONValue+Encodable.swift",
"Value/JSONValue+Literals.swift",
"Value/JSONValue+Subscripts.swift",
"Value/JSONValue+Values.swift",
"Value/JSONValue.swift"
],
"target_dependencies" : [
"JSONNumber"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2049] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.38s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (2.27s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3376] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.34s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.87s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/11] Compiling JSONNumber JSONNumber+Values.swift
[8/11] Emitting module JSONNumber
[9/11] Compiling JSONNumber JSONNumber+Conformances.swift
[10/11] Compiling JSONNumber JSONNumber+Decimal.swift
/host/spi-builder-workspace/Sources/JSONNumber/JSONNumber+Decimal.swift:49:46: error: cannot find 'pow' in scope
47 | let mantissaLength = value.exponent.magnitude
48 |
49 | let significand = wholeValue / Int64(pow(10, Double(mantissaLength)))
| `- error: cannot find 'pow' in scope
50 | let mantissa = UInt(wholeValue.description.suffix(Int(mantissaLength)))!
51 |
[11/11] Compiling JSONNumber JSONNumber.swift
/host/spi-builder-workspace/Sources/JSONNumber/JSONNumber.swift:32:32: error: cannot find 'pow' in scope
30 | switch storage.mantissa {
31 | case .decimal(let mantissa, let mantissaLength):
32 | Double(mantissa) * pow(-10, Double(mantissaLength))
| `- error: cannot find 'pow' in scope
33 | case .fraction(let fraction):
34 | fraction
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Emitting module JSONNumber
[5/8] Compiling JSONNumber JSONNumber+Conformances.swift
[6/8] Compiling JSONNumber JSONNumber+Values.swift
[7/8] Compiling JSONNumber JSONNumber+Decimal.swift
/host/spi-builder-workspace/Sources/JSONNumber/JSONNumber+Decimal.swift:49:46: error: cannot find 'pow' in scope
47 | let mantissaLength = value.exponent.magnitude
48 |
49 | let significand = wholeValue / Int64(pow(10, Double(mantissaLength)))
| `- error: cannot find 'pow' in scope
50 | let mantissa = UInt(wholeValue.description.suffix(Int(mantissaLength)))!
51 |
[8/8] Compiling JSONNumber JSONNumber.swift
/host/spi-builder-workspace/Sources/JSONNumber/JSONNumber.swift:32:32: error: cannot find 'pow' in scope
30 | switch storage.mantissa {
31 | case .decimal(let mantissa, let mantissaLength):
32 | Double(mantissa) * pow(-10, Double(mantissaLength))
| `- error: cannot find 'pow' in scope
33 | case .fraction(let fraction):
34 | fraction
BUILD FAILURE 6.1 linux