The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MonetaryAmount, reference 1.1.1 (344205), with Swift 6.1 for Wasm on 27 May 2025 11:02:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SoftwareEngineerChris/MonetaryAmount.git
https://github.com/SoftwareEngineerChris/MonetaryAmount.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "roundeddecimal",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SoftwareEngineerChris/RoundedDecimal.git"
    },
    {
      "identity" : "consolidate",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SoftwareEngineerChris/Consolidate.git"
    },
    {
      "identity" : "stencil",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.13.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/stencilproject/Stencil.git"
    }
  ],
  "manifest_display_name" : "MonetaryAmount",
  "name" : "MonetaryAmount",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MonetaryAmount",
      "targets" : [
        "MonetaryAmount"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "CurrenciesGenerator",
      "targets" : [
        "CurrenciesGenerator"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MonetaryAmountTests",
      "module_type" : "SwiftTarget",
      "name" : "MonetaryAmountTests",
      "path" : "Tests/MonetaryAmountTests",
      "sources" : [
        "CurrencyTests.swift",
        "MonetaryAmountTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "MonetaryAmount"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MonetaryAmount",
      "module_type" : "SwiftTarget",
      "name" : "MonetaryAmount",
      "path" : "Sources/MonetaryAmount",
      "product_dependencies" : [
        "RoundedDecimal",
        "Consolidate"
      ],
      "product_memberships" : [
        "MonetaryAmount"
      ],
      "sources" : [
        "Currencies+Generated.swift",
        "Currency.swift",
        "MonetaryAmount+Arithmetic.swift",
        "MonetaryAmount+Consolidation.swift",
        "MonetaryAmount+Construction.swift",
        "MonetaryAmount+Negation.swift",
        "MonetaryAmount.swift",
        "NumberFormatter+Currency.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CurrenciesGenerator",
      "module_type" : "SwiftTarget",
      "name" : "CurrenciesGenerator",
      "path" : "Sources/CurrenciesGenerator",
      "product_dependencies" : [
        "Stencil"
      ],
      "product_memberships" : [
        "CurrenciesGenerator"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/SoftwareEngineerChris/Consolidate.git
Fetching https://github.com/stencilproject/Stencil.git
Fetching https://github.com/SoftwareEngineerChris/RoundedDecimal.git
[1/214] Fetching roundeddecimal
[215/355] Fetching roundeddecimal, consolidate
Fetched https://github.com/SoftwareEngineerChris/RoundedDecimal.git from cache (0.24s)
[1/5293] Fetching stencil
Fetched https://github.com/SoftwareEngineerChris/Consolidate.git from cache (0.43s)
Fetched https://github.com/stencilproject/Stencil.git from cache (0.43s)
Computing version for https://github.com/SoftwareEngineerChris/Consolidate.git
Computed https://github.com/SoftwareEngineerChris/Consolidate.git at 1.2.1 (1.16s)
Computing version for https://github.com/SoftwareEngineerChris/RoundedDecimal.git
Computed https://github.com/SoftwareEngineerChris/RoundedDecimal.git at 2.2.2 (0.54s)
Computing version for https://github.com/stencilproject/Stencil.git
Computed https://github.com/stencilproject/Stencil.git at 0.15.1 (0.57s)
Fetching https://github.com/kylef/Spectre.git
Fetching https://github.com/kylef/PathKit.git
[1/1411] Fetching pathkit
[961/2432] Fetching pathkit, spectre
Fetched https://github.com/kylef/PathKit.git from cache (0.30s)
Fetched https://github.com/kylef/Spectre.git from cache (0.30s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.78s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (2.88s)
Creating working copy for https://github.com/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
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/SoftwareEngineerChris/Consolidate.git
Working copy of https://github.com/SoftwareEngineerChris/Consolidate.git resolved at 1.2.1
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/stencilproject/Stencil.git
Working copy of https://github.com/stencilproject/Stencil.git resolved at 0.15.1
Building for debugging...
[0/21] Write sources
[6/21] Write swift-version-24593BA9C3E375BF.txt
[8/30] Emitting module Consolidate
[9/30] Compiling Consolidate Consolidatable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/31] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[11/31] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[12/31] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[13/31] Compiling RoundedDecimal RoundedDecimal.swift
[14/31] Compiling RoundedDecimal DecimalTypes.swift
[15/31] Emitting module RoundedDecimal
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/15] Write swift-version-24593BA9C3E375BF.txt
[2/24] Emitting module RoundedDecimal
[3/24] Compiling RoundedDecimal Decimal+Rounding.swift
[4/24] Emitting module Consolidate
[5/24] Compiling Consolidate Consolidatable.swift
[7/25] Compiling RoundedDecimal DynamicRoundedDecimal.swift
[8/25] Compiling RoundedDecimal DecimalTypes.swift
[9/25] Compiling RoundedDecimal RoundedDecimal.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/26] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[11/26] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[12/26] Wrapping AST for Consolidate for debugging
BUILD FAILURE 6.1 wasm