The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-mock, reference 0.8.0 (54b3e1), with Swift 6.4 for Wasm on 19 Sep 2026 21:01:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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/MetalheadSanya/swift-mock.git
Reference: 0.8.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/MetalheadSanya/swift-mock
 * tag               0.8.0      -> FETCH_HEAD
HEAD is now at 54b3e1b Merge pull request #62 from MetalheadSanya/57-point-verify-failure-to-verify-call
Cloned https://github.com/MetalheadSanya/swift-mock.git
Revision (git rev-parse @):
54b3e1b980e0383f0d9cf09335b6b5f1c11bfab5
SUCCESS checkout https://github.com/MetalheadSanya/swift-mock.git at 0.8.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/MetalheadSanya/swift-mock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
[2346/82329] Fetching swift-docc-plugin, swift-syntax
Fetched https://github.com/apple/swift-docc-plugin (2.98s)
Fetched https://github.com/apple/swift-syntax.git (3.00s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (4.15s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.19s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.53s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.75s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.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
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 881]
[Planning deferred tasks]
[168 / 363] SwiftSyntax509
[186 / 383] SwiftSyntax509
[189 / 385] SwiftSyntax509
[197 / 385] SwiftSyntax
[198 / 385] SwiftSyntax
[200 / 385] SwiftSyntax
[206 / 385] SwiftSyntax
[208 / 385] SwiftSyntax
[210 / 385] SwiftSyntax
[214 / 385] SwiftSyntax
[217 / 396] SwiftParser
[218 / 405] SwiftParser
[219 / 405] SwiftParser
[220 / 405] SwiftParser
[222 / 405] SwiftParser
[228 / 405] SwiftParser
[233 / 405] SwiftParser
[234 / 405] SwiftParser
[235 / 405] SwiftParser
[236 / 405] SwiftParser
[238 / 405] SwiftParser
[239 / 405] SwiftParser
[240 / 405] SwiftParser
[241 / 405] SwiftParser
[244 / 406] SwiftParser
[246 / 406] SwiftParser
[250 / 426] SwiftDiagnostics
[265 / 436] SwiftBasicFormat
[266 / 436] SwiftDiagnostics
[267 / 436] SwiftDiagnostics
[280 / 436] SwiftDiagnostics
[283 / 436] SwiftDiagnostics
[285 / 436] SwiftDiagnostics
[287 / 436] SwiftDiagnostics
[289 / 437] SwiftDiagnostics
[292 / 437] SwiftBasicFormat
[299 / 438] SwiftBasicFormat
[301 / 439]
[306 / 468] SwiftOperators
[306 / 469] SwiftBasicFormat
[308 / 470] SwiftBasicFormat
[318 / 471] SwiftParserDiagnostics
[329 / 471] SwiftParserDiagnostics
[330 / 471] SwiftParserDiagnostics
[332 / 471] SwiftParserDiagnostics
[333 / 471] SwiftParserDiagnostics
[334 / 471] SwiftSyntaxBuilder
[338 / 471] SwiftParser
[339 / 471] SwiftOperators
[342 / 471] SwiftOperators
[344 / 471] SwiftOperators
[347 / 471] SwiftOperators
[348 / 472] SwiftParserDiagnostics
[357 / 483] SwiftOperators
[359 / 493] SwiftSyntaxBuilder
[360 / 493] SwiftParserDiagnostics
[362 / 494] SwiftSyntaxBuilder
[365 / 494] SwiftOperators
[374 / 494] SwiftSyntaxMacros
[375 / 494] SwiftSyntaxMacros
[380 / 494] SwiftSyntaxBuilder
[383 / 494] SwiftOperators
[385 / 494] SwiftOperators
[385 / 494] SwiftSyntaxBuilder
[386 / 494] SwiftOperators
[390 / 504] SwiftSyntaxBuilder
[391 / 504] SwiftSyntaxBuilder
[393 / 505] SwiftSyntaxBuilder
[394 / 506] SwiftSyntaxBuilder
[397 / 506] SwiftSyntaxBuilder
[403 / 507] SwiftSyntaxBuilder
[409 / 507]
[413 / 517] SwiftSyntaxMacros
[418 / 517] SwiftSyntaxMacros
[430 / 536] SwiftSyntaxMacroExpansion
[436 / 536] SwiftSyntaxMacros
[443 / 537] SwiftSyntaxMacros
[446 / 537] SwiftSyntaxMacros
[450 / 538] SwiftSyntaxMacroExpansion
[456 / 538] SwiftSyntaxMacros
[457 / 538]
[462 / 555] SwiftCompilerPluginMessageHandling
[464 / 556] SwiftSyntaxMacroExpansion
[465 / 556] SwiftSyntaxMacroExpansion
[479 / 556] SwiftSyntaxMacroExpansion
[483 / 557] SwiftSyntaxMacroExpansion
[487 / 557] SwiftCompilerPluginMessageHandling
[489 / 558] SwiftParser
[493 / 559] SwiftCompilerPlugin
[500 / 569] SwiftSyntaxMacroExpansion
[513 / 572] SwiftOperators
[516 / 572] SwiftSyntaxMacros
[517 / 572] SwiftCompilerPluginMessageHandling
[525 / 573] SwiftCompilerPluginMessageHandling
[532 / 574] SwiftCompilerPlugin
[540 / 576] SwiftMockMacros
[547 / 585] SwiftMockMacros
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile CompilerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:103:19: error: cannot find 'dup' in scope
101 |     // Duplicate the `stdin` file descriptor, which we will then use for
102 |     // receiving messages from the plugin host.
103 |     let inputFD = dup(fileno(stdin))
    |                   `- error: cannot find 'dup' in scope
104 |     guard inputFD >= 0 else {
105 |       internalError("Could not duplicate `stdin`: \(describe(errno: errno)).")
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:117:20: error: cannot find 'dup' in scope
115 |     // Duplicate the `stdout` file descriptor, which we will then use for
116 |     // sending messages to the plugin host.
117 |     let outputFD = dup(fileno(stdout))
    |                    `- error: cannot find 'dup' in scope
118 |     guard outputFD >= 0 else {
119 |       internalError("Could not dup `stdout`: \(describe(errno: errno)).")
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:124:11: error: cannot find 'dup2' in scope
122 |     // Having duplicated the original standard-output descriptor, redirect
123 |     // `stdout` to `stderr` so that all free-form text output goes there.
124 |     guard dup2(fileno(stderr), fileno(stdout)) >= 0 else {
    |           `- error: cannot find 'dup2' in scope
125 |       internalError("Could not dup2 `stdout` to `stderr`: \(describe(errno: errno)).")
126 |     }
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.dia -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 -suppress-warnings -swift-version 5 -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/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftCompilerPlugin -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/SwiftCompilerPlugin_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.o -index-unit-output-path /swift-syntax.build/Debug-webassembly-wasm32/SwiftCompilerPlugin-t.build/Objects-normal/wasm32/CompilerPlugin.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm