Build Information
Failed to build SwiftXGBoost, reference master (144652
), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 18:34:14 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
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 /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/onevcat/Rainbow
Fetching https://github.com/kongzii/LoggerKit.git
Fetching https://github.com/kongzii/PythonKit
Fetching https://github.com/KarthikRIyer/swiftplot.git
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
[1/369] Fetching loggerkit
[46/1236] Fetching loggerkit, pythonkit
[229/7944] Fetching loggerkit, pythonkit, swiftplot
[699/9140] Fetching loggerkit, pythonkit, swiftplot, rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.94s)
[2109/7944] Fetching loggerkit, pythonkit, swiftplot
Fetched https://github.com/kongzii/PythonKit from cache (1.59s)
Fetched https://github.com/KarthikRIyer/swiftplot.git from cache (1.59s)
Fetched https://github.com/kongzii/LoggerKit.git from cache (1.59s)
Fetched https://github.com/apple/swift-log.git from cache (1.59s)
Computing version for https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-argument-parser from cache (1.59s)
Computed https://github.com/apple/swift-log.git at 1.2.0 (2.23s)
Computing version for https://github.com/KarthikRIyer/swiftplot.git
Computed https://github.com/KarthikRIyer/swiftplot.git at 2.0.0 (0.61s)
Computing version for https://github.com/kongzii/PythonKit
Computed https://github.com/kongzii/PythonKit at 0.0.1 (0.60s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (0.58s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (0.57s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.1.5 (0.67s)
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.1.5
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.2.0
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/kongzii/PythonKit
Working copy of https://github.com/kongzii/PythonKit resolved at 0.0.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftxgboost",
"name": "SwiftXGBoost",
"url": "https://github.com/kongzii/SwiftXGBoost.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftXGBoost",
"dependencies": [
{
"identity": "pythonkit",
"name": "PythonKit",
"url": "https://github.com/kongzii/PythonKit",
"version": "0.0.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PythonKit",
"dependencies": [
{
"identity": "loggerkit",
"name": "LoggerKit",
"url": "https://github.com/kongzii/LoggerKit.git",
"version": "0.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerKit",
"dependencies": [
{
"identity": "rainbow",
"name": "Rainbow",
"url": "https://github.com/onevcat/Rainbow",
"version": "3.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rainbow",
"dependencies": [
]
}
]
},
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "0.0.6",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
}
]
},
{
"identity": "swiftplot",
"name": "SwiftPlot",
"url": "https://github.com/KarthikRIyer/swiftplot.git",
"version": "2.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftplot",
"dependencies": [
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/kongzii/SwiftXGBoost.git
[30/2962] Fetching swiftxgboost
Fetched https://github.com/kongzii/SwiftXGBoost.git from cache (1.72s)
Fetching https://github.com/kongzii/PythonKit from cache
Fetching https://github.com/KarthikRIyer/swiftplot.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/kongzii/PythonKit from cache (0.41s)
Fetched https://github.com/KarthikRIyer/swiftplot.git from cache (0.54s)
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Computing version for https://github.com/KarthikRIyer/swiftplot.git
Computed https://github.com/KarthikRIyer/swiftplot.git at 2.0.0 (0.60s)
Computing version for https://github.com/kongzii/PythonKit
Computed https://github.com/kongzii/PythonKit at 0.0.1 (0.03s)
Fetching https://github.com/kongzii/LoggerKit.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/kongzii/LoggerKit.git from cache (0.50s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.51s)
Computing version for https://github.com/kongzii/LoggerKit.git
Computed https://github.com/kongzii/LoggerKit.git at 0.0.0 (0.56s)
Fetching https://github.com/onevcat/Rainbow from cache
Fetched https://github.com/onevcat/Rainbow from cache (0.44s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.0.6 (0.49s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (0.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.45s)
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/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/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
Creating working copy for https://github.com/kongzii/SwiftXGBoost.git
Working copy of https://github.com/kongzii/SwiftXGBoost.git resolved at master (1446528)
Creating working copy for https://github.com/kongzii/PythonKit
Working copy of https://github.com/kongzii/PythonKit resolved at 0.0.1
warning: '.resolve-product-dependencies': dependency 'swiftxgboost' is not used by any target
Found 3 product dependencies
- PythonKit
- SwiftPlot
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/kongzii/SwiftXGBoost.git
https://github.com/kongzii/SwiftXGBoost.git
{
"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" : "/Users/admin/builder/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 ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
Building for debugging...
[0/51] Write sources
[0/51] Write CustomObjective-entitlement.plist
[0/51] Write sources
[0/51] Write PredictLeafIndices-entitlement.plist
[4/51] Write sources
[5/51] Write ExternalMemory-entitlement.plist
[5/51] Write PredictFirstNTree-entitlement.plist
[7/51] Write sources
[9/51] Write EvalsResult-entitlement.plist
[10/51] Write GeneralizedLinearModel-entitlement.plist
[10/51] Write sources
[19/51] Write CrossValidation-entitlement.plist
[19/51] Write sources
[21/51] Write BoostFromPrediction-entitlement.plist
[21/51] Write AftSurvival-entitlement.plist
[23/51] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/91] Compiling PythonKit NumpyConversion.swift
[26/91] Compiling PythonKit PythonLibrary.swift
[27/91] Compiling PythonKit PythonLibrary+Symbols.swift
[28/91] Emitting module PythonKit
/Users/admin/builder/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
[29/91] Compiling PythonKit Python.swift
/Users/admin/builder/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
[30/91] Compiling Logging LogHandler.swift
[31/91] Compiling Logging Locks.swift
[32/91] Emitting module Logging
[33/91] Compiling Logging Logging.swift
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install xgboost using your system-packager:
brew install xgboost
warning: you may be able to install freetype2 using your system-packager:
brew install freetype2
warning: you may be able to install xgboost using your system-packager:
brew install xgboost
warning: you may be able to install freetype2 using your system-packager:
brew install freetype2
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/28] Write swift-version-2F0A5646E1D333AE.txt
[2/68] Compiling PythonKit PythonLibrary+Symbols.swift
[3/68] Compiling PythonKit PythonLibrary.swift
[4/68] Compiling Logging LogHandler.swift
[5/68] Compiling Logging Locks.swift
[6/68] Compiling Logging Logging.swift
[7/68] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/68] Compiling PythonKit NumpyConversion.swift
[9/68] Emitting module PythonKit
/Users/admin/builder/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
[10/68] Compiling PythonKit Python.swift
/Users/admin/builder/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
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install xgboost using your system-packager:
brew install xgboost
warning: you may be able to install freetype2 using your system-packager:
brew install freetype2
warning: you may be able to install xgboost using your system-packager:
brew install xgboost
warning: you may be able to install freetype2 using your system-packager:
brew install freetype2
BUILD FAILURE 6.1 macosSpm