The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MonetaryAmount with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-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/SoftwareEngineerChris/MonetaryAmount.git
Reference: 1.1.1
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/SoftwareEngineerChris/MonetaryAmount
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 3442059 Makes use of Consolidate Swift Package for MonetaryAmount consolidation
Cloned https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Revision (git rev-parse @):
3442059cf3ea7337441757aeadb6d1e026efa44c
SUCCESS checkout https://github.com/SoftwareEngineerChris/MonetaryAmount.git at 1.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SoftwareEngineerChris/MonetaryAmount.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Fetching https://github.com/kylef/PathKit.git
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/stencilproject/Stencil.git
[1/1021] Fetching spectre
[63/1235] Fetching spectre, roundeddecimal
[245/2639] Fetching spectre, roundeddecimal, pathkit
[1022/2780] Fetching spectre, roundeddecimal, pathkit, consolidate
[2781/7964] Fetching spectre, roundeddecimal, pathkit, consolidate, stencil
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git from cache (0.27s)
[3966/7750] Fetching spectre, pathkit, consolidate, stencil
Fetched https://github.com/kylef/Spectre.git from cache (0.28s)
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git from cache (0.28s)
[3893/6588] Fetching pathkit, stencil
Fetched https://github.com/kylef/PathKit.git from cache (0.38s)
Fetched https://github.com/stencilproject/Stencil.git from cache (0.38s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.13.1 (1.37s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.1.0 (0.45s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.49s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.49s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 0.9.2 (0.50s)
Creating working copy for https://github.com/SoftwareEngineerChris/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.1.0
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
Creating working copy for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Working copy of https://github.com/SoftwareEngineerChris/RoundedDecimal.git resolved at 2.2.2
Creating working copy for https://github.com/stencilproject/Stencil.git
Working copy of https://github.com/stencilproject/Stencil.git resolved at 0.13.1
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 0.9.2
Building for debugging...
[0/21] Write sources
[6/21] Write swift-version-24593BA9C3E375BF.txt
[8/30] Emitting module RoundedDecimal
[9/30] Compiling RoundedDecimal DecimalTypes.swift
[10/30] Compiling Consolidate Consolidatable.swift
[11/30] Emitting module Consolidate
[13/31] Compiling RoundedDecimal Decimal+Rounding.swift
[14/31] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[15/31] Emitting module PathKit
[16/31] Compiling PathKit PathKit.swift
[16/31] Wrapping AST for Consolidate for debugging
[17/31] Write Objects.LinkFileList
[18/32] Archiving libConsolidate.a
[20/32] Compiling RoundedDecimal RoundedDecimal.swift
[22/33] Wrapping AST for PathKit for debugging
[22/33] Wrapping AST for RoundedDecimal for debugging
[24/33] Write Objects.LinkFileList
[25/33] Archiving libRoundedDecimal.a
[27/60] Compiling MonetaryAmount MonetaryAmount+Construction.swift
[28/60] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: error: '$0' is not a valid identifier
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: note: if this name is unavoidable, use backticks to escape it
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
                                               `$0`
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:50: error: unexpected code '.value + $1.value' in parameter clause
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: error: expected 'in' in closure signature
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: note: insert 'in'
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
                                                                    in
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
[29/61] Compiling MonetaryAmount Currency.swift
[30/61] Compiling MonetaryAmount MonetaryAmount+Arithmetic.swift
[31/61] Compiling MonetaryAmount NumberFormatter+Currency.swift
[32/61] Compiling MonetaryAmount MonetaryAmount+Negation.swift
[33/61] Compiling MonetaryAmount MonetaryAmount.swift
[34/61] Emitting module Stencil
[35/61] Compiling Stencil Context.swift
[36/61] Compiling Stencil Environment.swift
[37/61] Compiling Stencil Errors.swift
[38/63] Compiling Stencil Node.swift
[39/63] Compiling Stencil NowTag.swift
[40/63] Compiling Stencil Parser.swift
[41/63] Compiling Stencil Template.swift
[42/63] Compiling Stencil Include.swift
[43/63] Compiling Stencil Inheritence.swift
[44/63] Compiling Stencil KeyPath.swift
[45/63] Compiling Stencil Lexer.swift
[46/63] Compiling Stencil Loader.swift
[47/63] Emitting module MonetaryAmount
[48/63] Compiling MonetaryAmount Currencies+Generated.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/13] Write swift-version-24593BA9C3E375BF.txt
[2/18] Compiling Stencil FilterTag.swift
[3/19] Compiling Stencil Extension.swift
[4/20] Emitting module MonetaryAmount
[5/20] Compiling Stencil Tokenizer.swift
[6/21] Compiling MonetaryAmount MonetaryAmount+Consolidation.swift
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: error: '$0' is not a valid identifier
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:48: note: if this name is unavoidable, use backticks to escape it
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                               ^~
                                               `$0`
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:50: error: unexpected code '.value + $1.value' in parameter clause
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                 ^~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: error: expected 'in' in closure signature
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:36:68: note: insert 'in'
        return consolidated(by: \.currency) { ($0.value + $1.value).in($0.currency) }
                                                                   ^
                                                                    in
/host/spi-builder-workspace/Sources/MonetaryAmount/MonetaryAmount+Consolidation.swift:1:1: error: new Swift parser generated errors for code that C++ parser accepted
//
^
[7/21] Compiling Stencil Context.swift
[8/22] Compiling Stencil Environment.swift
[9/23] Compiling Stencil Expression.swift
[10/23] Emitting module Stencil
[11/25] Compiling Stencil Filters.swift
[12/25] Compiling Stencil ForTag.swift
[13/27] Compiling Stencil Variable.swift
[14/28] Compiling Stencil IfTag.swift
[15/29] Compiling Stencil Include.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2