Build Information
Failed to build DHModels, reference main (478fdd), with Swift 6.2 for Wasm on 25 Apr 2026 23:40:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gwillish/DHModels.git
Reference: main
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/gwillish/DHModels
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 478fdd8 Add label to DifficultyBudget.Rating; guard zero player count in rating factory (#25)
Cloned https://github.com/gwillish/DHModels.git
Revision (git rev-parse @):
478fdd8ac3d2509f65fee9905c1ffa34be05a21a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/gwillish/DHModels.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/gwillish/DHModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-log.git
[1/6649] Fetching swift-log
[1331/24113] Fetching swift-log, swift-argument-parser
Fetched https://github.com/apple/swift-log.git from cache (0.95s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.98s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (1.92s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.38s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Write sources
[8/17] Copying environments.json
[9/17] Copying adversaries.json
[10/17] Write swift-version-24593BA9C3E375BF.txt
[12/36] Compiling Logging LogEvent.swift
[13/36] Emitting module ArgumentParserToolInfo
[14/36] Compiling ArgumentParserToolInfo ToolInfo.swift
[16/37] Compiling Logging MetadataProvider.swift
[16/37] Wrapping AST for ArgumentParserToolInfo for debugging
[18/37] Emitting module Logging
[19/37] Compiling Logging Locks.swift
[20/83] Compiling ArgumentParser BashCompletionsGenerator.swift
[21/83] Compiling ArgumentParser CompletionsGenerator.swift
[22/83] Compiling DHModels DaggerheartEnvironment.swift
[23/83] Compiling ArgumentParser FishCompletionsGenerator.swift
[24/83] Compiling ArgumentParser ZshCompletionsGenerator.swift
[25/83] Emitting module DHModels
[26/84] Compiling DHModels Party.swift
[27/84] Compiling ArgumentParser Argument.swift
[28/84] Compiling ArgumentParser ArgumentDiscussion.swift
[29/84] Compiling DHModels DifficultyBudget.swift
[30/84] Compiling DHModels EncounterDefinition.swift
[31/84] Compiling DHModels Player.swift
[32/85] Compiling Logging LogHandler.swift
[34/85] Compiling Logging Logging.swift
[35/86] Wrapping AST for DHModels for debugging
[37/95] Compiling DHKit EncounterParticipant.swift
[38/96] Compiling DHKit resource_bundle_accessor.swift
[39/96] Compiling DHKit PlayerState.swift
[40/96] Compiling DHKit EnvironmentState.swift
[41/96] Compiling DHKit EncounterStore.swift
/host/spi-builder-workspace/Sources/DHKit/EncounterStore.swift:168:39: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
166 | // Sendable in Swift 6 and cannot be safely shared across tasks.
167 | let data = try JSONEncoder().encode(definition)
168 | try data.write(to: url, options: .atomic)
| `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
169 | }
170 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 | struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 | public static let atomic: Data.WritingOptions }
| `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[42/96] Compiling DHKit SessionRegistry.swift
[43/96] Emitting module DHKit
[44/96] Compiling DHKit AdversaryState.swift
[45/96] Compiling DHKit Compendium.swift
[46/96] Compiling ArgumentParser Foundation.swift
[47/96] Compiling ArgumentParser Mutex.swift
[48/96] Compiling ArgumentParser Platform.swift
[49/96] Compiling ArgumentParser SequenceExtensions.swift
[50/96] Compiling ArgumentParser StringExtensions.swift
[51/96] Compiling ArgumentParser SwiftExtensions.swift
[52/102] Compiling DHKit EncounterSession.swift
BUILD FAILURE 6.2 wasm