The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-nbt, reference main (20349a), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 23:34:30 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ezfe/swift-nbt.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/ezfe/swift-nbt
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 20349a3 Merge pull request #2 from thtTNT/main
Cloned https://github.com/ezfe/swift-nbt.git
Revision (git rev-parse @):
20349a3a0a7607352a1d3141160c44a3f0d9ada6
SUCCESS checkout https://github.com/ezfe/swift-nbt.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ezfe/swift-nbt.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/1024jp/GzipSwift.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-docc-plugin.git
[1/1557] Fetching gzipswift
[1558/3639] Fetching gzipswift, swift-docc-plugin
Fetched https://github.com/1024jp/GzipSwift.git from cache (0.29s)
[250/2082] Fetching swift-docc-plugin
[272/18722] Fetching swift-docc-plugin, swift-collections
Fetched https://github.com/apple/swift-docc-plugin.git from cache (0.46s)
[2829/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.14s)
Computing version for https://github.com/1024jp/GzipSwift.git
Computed https://github.com/1024jp/GzipSwift.git at 5.2.0 (1.59s)
Computing version for https://github.com/apple/swift-docc-plugin.git
Computed https://github.com/apple/swift-docc-plugin.git at 1.4.4 (0.49s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3413] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.37s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.91s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.66s)
Creating working copy for https://github.com/apple/swift-docc-plugin.git
Working copy of https://github.com/apple/swift-docc-plugin.git resolved at 1.4.4
Creating working copy for https://github.com/1024jp/GzipSwift.git
Working copy of https://github.com/1024jp/GzipSwift.git resolved at 5.2.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/20] Write sources
[9/20] Compiling system-zlib anchor.c
[10/20] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/42] Emitting module NBTStructures
/host/spi-builder-workspace/Sources/NBTStructures/Level.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public typealias LevelDat = [String: LDTopLevel]
[13/42] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[14/42] Compiling InternalCollectionsUtilities Integer rank.swift
[15/42] Emitting module InternalCollectionsUtilities
[16/43] Compiling DataTools Extensions.swift
/host/spi-builder-workspace/Sources/DataTools/DataAccumulator.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// Accumulate new blobs of data into a single container
[17/43] Compiling DataTools DataStream.swift
/host/spi-builder-workspace/Sources/DataTools/DataAccumulator.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// Accumulate new blobs of data into a single container
[18/43] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[19/43] Compiling DataTools DataAccumulator.swift
/host/spi-builder-workspace/Sources/DataTools/DataAccumulator.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// Accumulate new blobs of data into a single container
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/43] Emitting module DataTools
/host/spi-builder-workspace/Sources/DataTools/DataAccumulator.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | /// Accumulate new blobs of data into a single container
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/43] Emitting module Gzip
/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:29:15: error: no such module 'Foundation'
 27 |  */
 28 |
 29 | import struct Foundation.Data
    |               `- error: no such module 'Foundation'
 30 |
 31 | #if os(Linux)
[22/43] Compiling Gzip Data+Gzip.swift
/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:29:15: error: no such module 'Foundation'
 27 |  */
 28 |
 29 | import struct Foundation.Data
    |               `- error: no such module 'Foundation'
 30 |
 31 | #if os(Linux)
[23/43] Compiling InternalCollectionsUtilities Descriptions.swift
[24/43] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[25/43] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[26/43] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[27/43] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[28/43] Compiling InternalCollectionsUtilities UInt+reversed.swift
[29/43] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[30/43] Compiling InternalCollectionsUtilities _SortedCollection.swift
[31/43] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[32/43] Compiling InternalCollectionsUtilities Debugging.swift
[33/43] Compiling NBTStructures Level.swift
/host/spi-builder-workspace/Sources/NBTStructures/Level.swift:8:8: error: no such module 'Foundation'
 6 | //
 7 |
 8 | import Foundation
   |        `- error: no such module 'Foundation'
 9 |
10 | public typealias LevelDat = [String: LDTopLevel]
BUILD FAILURE 6.2 wasm