Build Information
Failed to build Light-Swift-Untar, reference v1.0.4 (fcff1f), with Swift 6.2 for Wasm on 14 Feb 2026 06:56:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/UInt2048/Light-Swift-Untar.git
Reference: v1.0.4
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/UInt2048/Light-Swift-Untar
* tag v1.0.4 -> FETCH_HEAD
HEAD is now at fcff1f1 Add support for UTF-8 encoded filenames (#3)
Cloned https://github.com/UInt2048/Light-Swift-Untar.git
Revision (git rev-parse @):
fcff1f1b82373ea64b9565a364f63ffe7fdecf9f
SUCCESS checkout https://github.com/UInt2048/Light-Swift-Untar.git at v1.0.4
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/UInt2048/Light-Swift-Untar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module Light_Swift_Untar
[4/4] Compiling Light_Swift_Untar Light-Swift-Untar.swift
/host/spi-builder-workspace/Light-Swift-Untar.swift:96:7: warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
94 | path: String) {
95 | if let data = object as? Data {
96 | createFile(atPath: path, contents: data.subdata(in: Int(_loc) ..< Int(_loc + _len)),
| `- warning: result of call to 'createFile(atPath:contents:attributes:)' is unused [#no-usage]
97 | attributes: nil)
98 | } else if let fileHandle = object as? FileHandle {
/host/spi-builder-workspace/Light-Swift-Untar.swift:99:19: error: 'write(toFile:atomically:)' is unavailable: WASI does not support atomic file-writing as it does not have temporary directories
97 | attributes: nil)
98 | } else if let fileHandle = object as? FileHandle {
99 | if NSData().write(toFile: path, atomically: false) {
| `- error: 'write(toFile:atomically:)' is unavailable: WASI does not support atomic file-writing as it does not have temporary directories
100 | let destinationFile = FileHandle(forWritingAtPath: path)!
101 | fileHandle.seek(toFileOffset: _loc)
Foundation.NSData.write:3:13: note: 'write(toFile:atomically:)' has been explicitly marked unavailable here
1 | class NSData {
2 | @available(*, unavailable, message: "WASI does not support atomic file-writing as it does not have temporary directories")
3 | open func write(toFile path: String, atomically useAuxiliaryFile: Bool) -> Bool}
| `- note: 'write(toFile:atomically:)' has been explicitly marked unavailable here
4 |
/host/spi-builder-workspace/Light-Swift-Untar.swift:106:11: error: cannot find 'autoreleasepool' in scope
104 | var length = _len, location = _loc
105 | while length > maxSize {
106 | autoreleasepool { // Needed to prevent heap overflow when reading large files
| `- error: cannot find 'autoreleasepool' in scope
107 | destinationFile.write(fileHandle.readData(ofLength: Int(maxSize)))
108 | }
/host/spi-builder-workspace/Light-Swift-Untar.swift:112:9: error: cannot find 'autoreleasepool' in scope
110 | length -= maxSize
111 | }
112 | autoreleasepool { // Needed to prevent heap overflow when reading large files
| `- error: cannot find 'autoreleasepool' in scope
113 | destinationFile.write(fileHandle.readData(ofLength: Int(length)))
114 | }
/host/spi-builder-workspace/Light-Swift-Untar.swift:125:14: error: cannot find 'autoreleasepool' in scope
123 | } else if let fileHandle = object as? FileHandle {
124 | fileHandle.seek(toFileOffset: location)
125 | return autoreleasepool { // Needed to prevent heap overflow when reading large files
| `- error: cannot find 'autoreleasepool' in scope
126 | fileHandle.readData(ofLength: Int(length))
127 | }
BUILD FAILURE 6.2 wasm