The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build swift-json, reference develop (77ad2a), with Swift 6.0 for Linux on 3 Dec 2024 13:15:16 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.4
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.0
Building package at path:  $PWD
https://github.com/sinoru/swift-json.git
{
  "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-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2044] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.59s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.3 (3.96s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3199] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.63s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.04s)
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
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/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
[8/11] Compiling JSONNumber JSONNumber+Values.swift
[9/11] Emitting module JSONNumber
[10/11] Compiling JSONNumber JSONNumber+Conformances.swift
[11/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 |
BUILD FAILURE 6.0 linux