The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Footprint, reference main (d58d34), with Swift 6.4 for Wasm on 25 Sep 2026 04:21:16 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/naftaly/Footprint.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/naftaly/Footprint
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d58d34f Track system memory headroom with a baseline-shifted state ladder (#10)
Cloned https://github.com/naftaly/Footprint.git
Revision (git rev-parse @):
d58d34f6a867edb29f3e44abe9d205fab95b166f
SUCCESS checkout https://github.com/naftaly/Footprint.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/naftaly/Footprint.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:77:54: error: cannot find type 'vm_statistics64_data_t' in scope
75 |         /// requires compression or swap, which is what we want headroom
76 |         /// transitions to warn us *before*.
77 |         static func availableSystemBytes(from stats: vm_statistics64_data_t, pageSize: UInt64) -> Int64 {
   |                                                      `- error: cannot find type 'vm_statistics64_data_t' in scope
78 |             let speculative = UInt64(stats.speculative_count)
79 |             let freeCount = UInt64(stats.free_count)
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:91:38: error: cannot find type 'host_t' in scope
89 |         // mach_port_deallocate would invalidate the cached value for
90 |         // anything else holding it.
91 |         private static let hostPort: host_t = mach_host_self()
   |                                      `- error: cannot find type 'host_t' in scope
92 |         private static let pageSize: UInt64 = UInt64(getpagesize())
93 |         private static let systemLimit: Int64 = Int64(ProcessInfo.processInfo.physicalMemory)
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:91:47: error: cannot find 'mach_host_self' in scope
89 |         // mach_port_deallocate would invalidate the cached value for
90 |         // anything else holding it.
91 |         private static let hostPort: host_t = mach_host_self()
   |                                               `- error: cannot find 'mach_host_self' in scope
92 |         private static let pageSize: UInt64 = UInt64(getpagesize())
93 |         private static let systemLimit: Int64 = Int64(ProcessInfo.processInfo.physicalMemory)
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:95:46: error: cannot find 'mach_msg_type_number_t' in scope
93 |         private static let systemLimit: Int64 = Int64(ProcessInfo.processInfo.physicalMemory)
94 |
95 |         private static let taskVMInfoCount = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                              `- error: cannot find 'mach_msg_type_number_t' in scope
96 |         private static let hostVMInfo64Count = mach_msg_type_number_t(MemoryLayout<vm_statistics64_data_t>.size / MemoryLayout<UInt32>.size)
97 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:95:82: error: cannot find type 'task_vm_info_data_t' in scope
93 |         private static let systemLimit: Int64 = Int64(ProcessInfo.processInfo.physicalMemory)
94 |
95 |         private static let taskVMInfoCount = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                                  `- error: cannot find type 'task_vm_info_data_t' in scope
96 |         private static let hostVMInfo64Count = mach_msg_type_number_t(MemoryLayout<vm_statistics64_data_t>.size / MemoryLayout<UInt32>.size)
97 |     }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:96:48: error: cannot find 'mach_msg_type_number_t' in scope
94 |
95 |         private static let taskVMInfoCount = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
96 |         private static let hostVMInfo64Count = mach_msg_type_number_t(MemoryLayout<vm_statistics64_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                `- error: cannot find 'mach_msg_type_number_t' in scope
97 |     }
98 | }
/host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift:96:84: error: cannot find type 'vm_statistics64_data_t' in scope
94 |
95 |         private static let taskVMInfoCount = mach_msg_type_number_t(MemoryLayout<task_vm_info_data_t>.size / MemoryLayout<UInt32>.size)
96 |         private static let hostVMInfo64Count = mach_msg_type_number_t(MemoryLayout<vm_statistics64_data_t>.size / MemoryLayout<UInt32>.size)
   |                                                                                    `- error: cannot find type 'vm_statistics64_data_t' in scope
97 |     }
98 | }
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:75:30: error: cannot find 'DispatchQueue' in scope
 73 |     }
 74 |
 75 |     fileprivate let _queue = DispatchQueue(label: "com.bedroomcode.footprint.heartbeat.queue", qos: .utility, target: DispatchQueue.global(qos: .utility))
    |                              `- error: cannot find 'DispatchQueue' in scope
 76 |     fileprivate let _timerSource: DispatchSourceTimer
 77 |     fileprivate let _heartbeatInterval = 500 // milliseconds
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:75:119: error: cannot find 'DispatchQueue' in scope
 73 |     }
 74 |
 75 |     fileprivate let _queue = DispatchQueue(label: "com.bedroomcode.footprint.heartbeat.queue", qos: .utility, target: DispatchQueue.global(qos: .utility))
    |                                                                                                                       `- error: cannot find 'DispatchQueue' in scope
 76 |     fileprivate let _timerSource: DispatchSourceTimer
 77 |     fileprivate let _heartbeatInterval = 500 // milliseconds
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:76:35: error: cannot find type 'DispatchSourceTimer' in scope
 74 |
 75 |     fileprivate let _queue = DispatchQueue(label: "com.bedroomcode.footprint.heartbeat.queue", qos: .utility, target: DispatchQueue.global(qos: .utility))
 76 |     fileprivate let _timerSource: DispatchSourceTimer
    |                                   `- error: cannot find type 'DispatchSourceTimer' in scope
 77 |     fileprivate let _heartbeatInterval = 500 // milliseconds
 78 |     fileprivate let _provider: MemoryProvider
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:79:44: error: cannot find type 'DispatchSourceMemoryPressure' in scope
 77 |     fileprivate let _heartbeatInterval = 500 // milliseconds
 78 |     fileprivate let _provider: MemoryProvider
 79 |     fileprivate let _memoryPressureSource: DispatchSourceMemoryPressure
    |                                            `- error: cannot find type 'DispatchSourceMemoryPressure' in scope
 80 |     fileprivate let _observerNotificationSource: DispatchSourceUserDataAdd
 81 |
/host/spi-builder-workspace/Sources/Footprint/Footprint.swift:80:50: error: cannot find type 'DispatchSourceUserDataAdd' in scope
 78 |     fileprivate let _provider: MemoryProvider
 79 |     fileprivate let _memoryPressureSource: DispatchSourceMemoryPressure
 80 |     fileprivate let _observerNotificationSource: DispatchSourceUserDataAdd
    |                                                  `- error: cannot find type 'DispatchSourceUserDataAdd' in scope
 81 |
 82 |     fileprivate var _observers: [@Sendable (Memory) -> Void] = []
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Footprint/DefaultMemoryProvider.swift /host/spi-builder-workspace/Sources/Footprint/Footprint.swift /host/spi-builder-workspace/Sources/Footprint/Memory.swift /host/spi-builder-workspace/Sources/Footprint/MemoryProvider.swift /host/spi-builder-workspace/Sources/Footprint/View+Footprint.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Footprint -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Footprint_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Modules/Footprint.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Modules/Footprint.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Footprint-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Footprint-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Footprint-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Footprint.build/Debug-webassembly-wasm32/Footprint-t.build/Objects-normal/wasm32/Modules/Footprint.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm