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 SwiftXGBoost, reference master (144652), with Swift 6.1 for Linux on 25 Apr 2025 18:27:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/kongzii/SwiftXGBoost.git
Reference: master
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/kongzii/SwiftXGBoost
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1446528 Fix readme xgboost installation
Cloned https://github.com/kongzii/SwiftXGBoost.git
Revision (git rev-parse @):
144652898942f4d012dc423a6ecebf820d9b12bf
SUCCESS checkout https://github.com/kongzii/SwiftXGBoost.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kongzii/SwiftXGBoost.git
https://github.com/kongzii/SwiftXGBoost.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "pythonkit",
      "requirement" : {
        "exact" : [
          "0.0.1"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kongzii/PythonKit"
    },
    {
      "identity" : "swiftplot",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/KarthikRIyer/swiftplot.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "SwiftXGBoost",
  "name" : "SwiftXGBoost",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    }
  ],
  "products" : [
    {
      "name" : "XGBoost",
      "targets" : [
        "XGBoost"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "CXGBoost",
      "targets" : [
        "CXGBoost"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PredictLeafIndices",
      "targets" : [
        "PredictLeafIndices"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "PredictFirstNTree",
      "targets" : [
        "PredictFirstNTree"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "GeneralizedLinearModel",
      "targets" : [
        "GeneralizedLinearModel"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ExternalMemory",
      "targets" : [
        "ExternalMemory"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "EvalsResult",
      "targets" : [
        "EvalsResult"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "CustomObjective",
      "targets" : [
        "CustomObjective"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "CrossValidation",
      "targets" : [
        "CrossValidation"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BoostFromPrediction",
      "targets" : [
        "BoostFromPrediction"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "AftSurvival",
      "targets" : [
        "AftSurvival"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XGBoostTests",
      "module_type" : "SwiftTarget",
      "name" : "XGBoostTests",
      "path" : "Tests/XGBoostTests",
      "product_dependencies" : [
        "PythonKit"
      ],
      "sources" : [
        "ArrayTests.swift",
        "BoosterTests.swift",
        "CrossValidationTests.swift",
        "DMatrixTests.swift",
        "ExampleTests.swift",
        "PlotTests.swift",
        "PythonTests.swift",
        "TensorFlowTests.swift",
        "TrainTests.swift",
        "Utilities.swift",
        "XCTestManifests.swift",
        "XGBoostDocsTests.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XGBoost",
      "module_type" : "SwiftTarget",
      "name" : "XGBoost",
      "path" : "Sources/XGBoost",
      "product_dependencies" : [
        "Logging",
        "PythonKit",
        "SwiftPlot",
        "SVGRenderer"
      ],
      "product_memberships" : [
        "XGBoost",
        "PredictLeafIndices",
        "PredictFirstNTree",
        "GeneralizedLinearModel",
        "ExternalMemory",
        "EvalsResult",
        "CustomObjective",
        "CrossValidation",
        "BoostFromPrediction",
        "AftSurvival"
      ],
      "sources" : [
        "Array.swift",
        "Booster.swift",
        "CrossValidation.swift",
        "DMatrix.swift",
        "Dictionary.swift",
        "Enums.swift",
        "Feature.swift",
        "Logging.swift",
        "Parameter.swift",
        "Plot.swift",
        "Python.swift",
        "Safe.swift",
        "String.swift",
        "TensorFlow.swift",
        "Train.swift"
      ],
      "target_dependencies" : [
        "CXGBoost"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PredictLeafIndices",
      "module_type" : "SwiftTarget",
      "name" : "PredictLeafIndices",
      "path" : "Examples/PredictLeafIndices",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "PredictLeafIndices"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PredictFirstNTree",
      "module_type" : "SwiftTarget",
      "name" : "PredictFirstNTree",
      "path" : "Examples/PredictFirstNTree",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "PredictFirstNTree"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "GeneralizedLinearModel",
      "module_type" : "SwiftTarget",
      "name" : "GeneralizedLinearModel",
      "path" : "Examples/GeneralizedLinearModel",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "GeneralizedLinearModel"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "ExternalMemory",
      "module_type" : "SwiftTarget",
      "name" : "ExternalMemory",
      "path" : "Examples/ExternalMemory",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "ExternalMemory"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "EvalsResult",
      "module_type" : "SwiftTarget",
      "name" : "EvalsResult",
      "path" : "Examples/EvalsResult",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "EvalsResult"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CustomObjective",
      "module_type" : "SwiftTarget",
      "name" : "CustomObjective",
      "path" : "Examples/CustomObjective",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "CustomObjective"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CrossValidation",
      "module_type" : "SwiftTarget",
      "name" : "CrossValidation",
      "path" : "Examples/CrossValidation",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "CrossValidation"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "CXGBoost",
      "module_type" : "SystemLibraryTarget",
      "name" : "CXGBoost",
      "path" : "Sources/CXGBoost",
      "product_memberships" : [
        "XGBoost",
        "CXGBoost",
        "PredictLeafIndices",
        "PredictFirstNTree",
        "GeneralizedLinearModel",
        "ExternalMemory",
        "EvalsResult",
        "CustomObjective",
        "CrossValidation",
        "BoostFromPrediction",
        "AftSurvival"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "BoostFromPrediction",
      "module_type" : "SwiftTarget",
      "name" : "BoostFromPrediction",
      "path" : "Examples/BoostFromPrediction",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "BoostFromPrediction"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AftSurvival",
      "module_type" : "SwiftTarget",
      "name" : "AftSurvival",
      "path" : "Examples/AftSurvival",
      "product_dependencies" : [
        "PythonKit"
      ],
      "product_memberships" : [
        "AftSurvival"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XGBoost"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 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-log.git
Fetching https://github.com/kongzii/PythonKit
Fetching https://github.com/KarthikRIyer/swiftplot.git
[1/3836] Fetching swift-log
[2/4703] Fetching swift-log, pythonkit
[3017/11411] Fetching swift-log, pythonkit, swiftplot
Fetched https://github.com/kongzii/PythonKit from cache (0.29s)
Fetched https://github.com/apple/swift-log.git from cache (0.29s)
[940/6708] Fetching swiftplot
Fetched https://github.com/KarthikRIyer/swiftplot.git from cache (0.99s)
Computing version for https://github.com/KarthikRIyer/swiftplot.git
Computed https://github.com/KarthikRIyer/swiftplot.git at 2.0.0 (1.49s)
Computing version for https://github.com/kongzii/PythonKit
Computed https://github.com/kongzii/PythonKit at 0.0.1 (0.58s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/kongzii/LoggerKit.git
[1/369] Fetching loggerkit
[370/15282] Fetching loggerkit, swift-argument-parser
Fetched https://github.com/kongzii/LoggerKit.git from cache (0.75s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.76s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (1.21s)
Fetching https://github.com/onevcat/Rainbow
[1/1196] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.21s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (0.68s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (1.85s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.43s)
Creating working copy for https://github.com/kongzii/PythonKit
Working copy of https://github.com/kongzii/PythonKit resolved at 0.0.1
Creating working copy for https://github.com/KarthikRIyer/swiftplot.git
Working copy of https://github.com/KarthikRIyer/swiftplot.git resolved at 2.0.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.0.6
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
Building for debugging...
[0/47] Write sources
[14/47] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/87] Emitting module PythonKit
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[17/87] Compiling SwiftPlot HistogramSeriesOptions.swift
[18/87] Compiling SwiftPlot Label.swift
[19/87] Compiling SwiftPlot LayoutComponent.swift
[20/87] Compiling SwiftPlot Spacing.swift
[21/91] Compiling PythonKit NumpyConversion.swift
[22/91] Compiling PythonKit Python.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[23/91] Compiling SwiftPlot ScatterPlotSeriesOptions.swift
[24/91] Compiling SwiftPlot SequencePlots.swift
[25/91] Compiling SwiftPlot Series.swift
[26/91] Compiling SwiftPlot SubPlot.swift
[27/91] Emitting module Logging
[28/91] Compiling Logging Locks.swift
[29/91] Compiling PythonKit PythonLibrary+Symbols.swift
[30/91] Compiling PythonKit PythonLibrary.swift
[31/91] Compiling Logging LogHandler.swift
[32/91] Compiling Logging Logging.swift
[33/91] Compiling Logging MetadataProvider.swift
[34/92] Emitting module SwiftPlot
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
warning: couldn't find pc file for xgboost
warning: you may be able to install freetype2 using your system-packager:
    apt-get install libfreetype6-dev
[0/1] Planning build
Building for debugging...
[0/33] Write swift-version-24593BA9C3E375BF.txt
[2/73] Compiling Logging MetadataProvider.swift
[3/73] Compiling Logging LogHandler.swift
[4/73] Compiling SwiftPlot HistogramSeriesOptions.swift
[5/73] Compiling SwiftPlot Label.swift
[6/73] Compiling SwiftPlot LayoutComponent.swift
[7/73] Compiling SwiftPlot Spacing.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/77] Emitting module PythonKit
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[9/77] Compiling PythonKit PythonLibrary+Symbols.swift
[10/77] Compiling PythonKit NumpyConversion.swift
[11/77] Compiling PythonKit PythonLibrary.swift
[12/77] Compiling PythonKit Python.swift
/host/spi-builder-workspace/.build/checkouts/PythonKit/PythonKit/Python.swift:40:17: error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  26 | /// Typealias used when passing or returning a `PyObject` pointer with
  27 | /// implied ownership.
  28 | typealias OwnedPyObjectPointer = PyObjectPointer
     |           `- note: type declared here
  29 |
  30 | /// A primitive reference to a Python C API `PyObject`.
     :
  38 | @usableFromInline @_fixed_layout
  39 | final class PyReference {
  40 |     private var pointer: OwnedPyObjectPointer
     |                 `- error: type referenced from a stored property in a '@frozen' struct must be '@usableFromInline' or public
  41 |
  42 |     // This `PyReference`, once deleted, will make no delta change to the
[13/77] Emitting module Logging
[14/77] Compiling Logging Locks.swift
BUILD FAILURE 6.1 linux