The Swift Package Index logo.Swift Package Index

Build Information

Failed to build garuda, reference 2.2.0 (67f457), with Swift 6.4 for Wasm on 21 Oct 2026 08:32:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grepjava/garuda.git
Reference: 2.2.0
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/grepjava/garuda
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at 67f4570 Garuda 2.2.0: RELEASE.md dated, the README on 2.2.0
Cloned https://github.com/grepjava/garuda.git
Revision (git rev-parse @):
67f4570c0eb7266146fd31db6aa1ddda272a864c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/grepjava/garuda.git at 2.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/grepjava/garuda.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-distributed-tracing
Fetching https://github.com/grepjava/vega-db.git
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/grepjava/vega.git
[1/275] Fetching vega-db
[177/4677] Fetching vega-db, vega
[761/11361] Fetching vega-db, vega, swift-distributed-tracing
Fetched https://github.com/apple/swift-distributed-tracing (0.60s)
Fetched https://github.com/grepjava/vega.git (0.65s)
[1/80981] Fetching swift-syntax
Fetched https://github.com/grepjava/vega-db.git (3.42s)
Fetched https://github.com/swiftlang/swift-syntax (3.44s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.45s)
Computing version for https://github.com/grepjava/vega-db.git
Computed https://github.com/grepjava/vega-db.git at 0.3.0 (0.18s)
Computing version for https://github.com/grepjava/vega.git
Computed https://github.com/grepjava/vega.git at 1.1.0 (0.22s)
Computing version for https://github.com/apple/swift-distributed-tracing
Computed https://github.com/apple/swift-distributed-tracing at 1.7.2 (0.17s)
Creating working copy for https://github.com/grepjava/vega-db.git
Working copy of https://github.com/grepjava/vega-db.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-distributed-tracing
Working copy of https://github.com/apple/swift-distributed-tracing resolved at 1.7.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Creating working copy for https://github.com/grepjava/vega.git
Working copy of https://github.com/grepjava/vega.git resolved at 1.1.0
Building for debugging...
[Computing dependencies]
[Provisioning 71 / 96]
[Pre-planning 1 / 2128]
[Planning 1283 / 2128]
[Planning deferred tasks]
[Constructing 1391 / 4879]
[Starting]
[275 / 1133] GarudaSQLite
[350 / 1175] Vega
[367 / 1175] SwiftSyntax602
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/ByteBuffer.swift:49:27: error: cannot find 'malloc' in scope
 47 |     public init(capacity: Int) {
 48 |         if capacity > 0 {
 49 |             guard let p = malloc(capacity) else {
    |                           `- error: cannot find 'malloc' in scope
 50 |                 allocationFailed(capacity, "a new buffer")
 51 |             }
/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/ByteBuffer.swift:158:13: error: cannot find 'memmove' in scope
156 |         if readerIndex == 0 { return }
157 |         if n > 0 {
158 |             memmove(storage.unsafelyUnwrapped, storage.unsafelyUnwrapped + readerIndex, n)
    |             `- error: cannot find 'memmove' in scope
159 |         }
160 |         readerIndex = 0
/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/ByteBuffer.swift:170:9: error: cannot find 'memcpy' in scope
168 |         if n == 0 { return }
169 |         reserve(n)
170 |         memcpy(storage.unsafelyUnwrapped + writerIndex, p, n)
    |         `- error: cannot find 'memcpy' in scope
171 |         writerIndex &+= n
172 |     }
/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/ByteBuffer.swift:272:30: error: cannot find 'free' in scope
270 |     @inlinable
271 |     public mutating func destroy() {
272 |         if let s = storage { free(s) }
    |                              `- error: cannot find 'free' in scope
273 |         storage = nil
274 |         capacity = 0
/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/Bytes.swift:94:12: error: cannot find 'memcmp' in scope
 92 | package func equalsExact(_ p: UnsafePointer<UInt8>, _ n: Int, _ literal: StaticString) -> Bool {
 93 |     guard n == literal.utf8CodeUnitCount else { return false }
 94 |     return memcmp(p, literal.utf8Start, n) == 0
    |            `- error: cannot find 'memcmp' in scope
 95 | }
 96 |
/host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/Bytes.swift:126:21: error: cannot find 'memchr' in scope
124 |     // memchr is vectorised in every libc worth using; hand-rolling a loop here
125 |     // measurably loses on long header values.
126 |     guard let hit = memchr(p, Int32(needle), n) else { return -1 }
    |                     `- error: cannot find 'memchr' in scope
127 |     return UnsafeRawPointer(hit) - UnsafeRawPointer(p)
128 | }
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/Allocation.swift /host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/ByteBuffer.swift /host/spi-builder-workspace/.build/checkouts/vega/Sources/VegaWire/Bytes.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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 -suppress-warnings -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D BoringSSL -D Xcode -serialize-debugging-options -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -user-module-version 1.1.0 -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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name VegaWire -package-name vega -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/VegaWire_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/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/Modules/VegaWire.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/Modules/VegaWire.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/VegaWire-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/VegaWire-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/VegaWire-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Vega.build/Debug-webassembly-wasm32/VegaWire-t.build/Objects-normal/wasm32/Modules/VegaWire.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm