The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Crust with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rexmas/Crust.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/rexmas/Crust
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d633684 [swift-5.2] update readme
Cloned https://github.com/rexmas/Crust.git
Revision (git rev-parse @):
d6336843b93b8bc0cbfe2c4d452ac49614bb1844
SUCCESS checkout https://github.com/rexmas/Crust.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/rexmas/Crust.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/rexmas/JSONValue.git
[1/652] Fetching jsonvalue
Fetched https://github.com/rexmas/JSONValue.git from cache (0.24s)
Computing version for https://github.com/rexmas/JSONValue.git
Computed https://github.com/rexmas/JSONValue.git at 7.0.0 (0.41s)
Creating working copy for https://github.com/rexmas/JSONValue.git
Working copy of https://github.com/rexmas/JSONValue.git resolved at 7.0.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling JSONValueRX JSON.swift
[5/7] Compiling JSONValueRX JSONable.swift
[6/7] Compiling JSONValueRX Utilities.swift
[7/7] Emitting module JSONValueRX
[9/15] Compiling Crust AnyAdapter.swift
[10/15] Compiling Crust Utilities.swift
[11/15] Compiling Crust MappingProtocols.swift
[12/15] Emitting module Crust
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:70:35: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
                                  ^
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:63:25: note: 'K' previously declared here
public struct RootedKey<K: MappingKey>: MappingKey {
                        ^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:233:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
                                ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:241:26: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
                         ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
[13/15] Compiling Crust Mapper.swift
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:214:26: error: value of type 'NSObject' has no member 'setValue'
                nsObject.setValue(value, forKey: key)
                ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:229:25: error: type of expression is ambiguous without a type annotation
        try primaryKeys.forEach { (primaryKey, keyPath, transform) in
        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[14/15] Compiling Crust MappingOperator.swift
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:233:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
                                ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:241:26: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
                         ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
[15/15] Compiling Crust MappingKey.swift
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:70:35: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
                                  ^
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:63:25: note: 'K' previously declared here
public struct RootedKey<K: MappingKey>: MappingKey {
                        ^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module Crust
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:70:35: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    public func nestedMappingKeys<K: MappingKey>() -> AnyKeyCollection<K>? {
                                  ^
/host/spi-builder-workspace/Crust/Mapper/MappingKey.swift:63:25: note: 'K' previously declared here
public struct RootedKey<K: MappingKey>: MappingKey {
                        ^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:233:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func deconstruct<T, K, M>(binding: Binding<K, M>, fieldType: T.Type) throws -> (key: K, mapping: M) {
                                ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
/host/spi-builder-workspace/Crust/Mapper/MappingOperator.swift:241:26: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in Swift 6
    private func resolve<K, M>(keyedBinding: KeyedBinding<K, M>, key: K, inKeys: AnyKeyCollection<K>, mapping: M) throws -> ResolvedBinding<K, M> {
                         ^
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:29:27: note: 'K' previously declared here
open class MappingPayload<K: MappingKey> {
                          ^
[3/3] Compiling Crust Mapper.swift
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:214:26: error: value of type 'NSObject' has no member 'setValue'
                nsObject.setValue(value, forKey: key)
                ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Crust/Mapper/Mapper.swift:229:25: error: type of expression is ambiguous without a type annotation
        try primaryKeys.forEach { (primaryKey, keyPath, transform) in
        ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1