Build Information
Failed to build swift-peg, reference main (726760), with Swift 6.4 for Wasm on 21 Sep 2026 17:55:28 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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LuizZak/swift-peg.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/LuizZak/swift-peg
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 726760a Updating README.md
Cloned https://github.com/LuizZak/swift-peg.git
Revision (git rev-parse @):
726760a32912a9f498525a586878f03bf40f39b1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/LuizZak/swift-peg.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/LuizZak/swift-peg.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
Fetching https://github.com/LuizZak/SwiftAST.git
Fetching https://github.com/LuizZak/Console.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/LuizZak/MiniDigraph.git
[1/244] Fetching minidigraph
[245/1309] Fetching minidigraph, swiftast
Fetched https://github.com/LuizZak/MiniDigraph.git (0.47s)
[32/1065] Fetching swiftast
[427/1417] Fetching swiftast, console
Fetched https://github.com/LuizZak/Console.git (0.52s)
Fetched https://github.com/LuizZak/SwiftAST.git (0.52s)
[1/18918] Fetching swift-argument-parser
[18919/98917] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser.git (3.01s)
Fetched https://github.com/apple/swift-syntax.git (3.03s)
Computing version for https://github.com/LuizZak/SwiftAST.git
Computed https://github.com/LuizZak/SwiftAST.git at 0.14.0 (3.21s)
Fetching https://github.com/LuizZak/MiniLexer.git
Fetching https://github.com/LuizZak/MiniGraphviz.git
[1/41] Fetching minigraphviz
Fetched https://github.com/LuizZak/MiniGraphviz.git (0.49s)
[1/780] Fetching minilexer
Fetched https://github.com/LuizZak/MiniLexer.git (1.01s)
Computing version for https://github.com/LuizZak/MiniDigraph.git
Computed https://github.com/LuizZak/MiniDigraph.git at 0.8.0 (1.17s)
Computing version for https://github.com/LuizZak/Console.git
Computed https://github.com/LuizZak/Console.git at 0.14.1 (1.05s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.4.0 (0.17s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.0 (0.30s)
Computing version for https://github.com/LuizZak/MiniGraphviz.git
Computed https://github.com/LuizZak/MiniGraphviz.git at 0.1.0 (0.15s)
Computing version for https://github.com/LuizZak/MiniLexer.git
Computed https://github.com/LuizZak/MiniLexer.git at 0.10.0 (0.19s)
Creating working copy for https://github.com/LuizZak/MiniLexer.git
Working copy of https://github.com/LuizZak/MiniLexer.git resolved at 0.10.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.4.0
Creating working copy for https://github.com/LuizZak/MiniGraphviz.git
Working copy of https://github.com/LuizZak/MiniGraphviz.git resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 600.0.0
Creating working copy for https://github.com/LuizZak/Console.git
Working copy of https://github.com/LuizZak/Console.git resolved at 0.14.1
Creating working copy for https://github.com/LuizZak/MiniDigraph.git
Working copy of https://github.com/LuizZak/MiniDigraph.git resolved at 0.8.0
Creating working copy for https://github.com/LuizZak/SwiftAST.git
Working copy of https://github.com/LuizZak/SwiftAST.git resolved at 0.14.0
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 949]
[Planning deferred tasks]
[188 / 392] MiniLexer
[217 / 421] _SwiftSyntaxCShims
[223 / 421] MiniDigraph
[230 / 421] MiniLexer
[242 / 421] MiniLexer
[247 / 423] MiniLexer-product
[251 / 425] _SwiftSyntaxGenericTestSupport
[255 / 425] MiniDigraph
[258 / 425] MiniDigraph
[262 / 425] MiniDigraph-product
[266 / 425] Console-product
[268 / 425] Console
[270 / 425] Console
[271 / 425] ArgumentParserToolInfo
[277 / 426] ArgumentParser
[281 / 436] SwiftSyntax
[286 / 438] SwiftSyntax
[288 / 439] SwiftSyntax
[289 / 439] MiniLexer
[293 / 439] MiniLexer
[298 / 441] ArgumentParser
[300 / 449] ArgumentParser
[301 / 449] ArgumentParser
[301 / 449] SwiftSyntax
[303 / 449] ArgumentParser
[308 / 449] ArgumentParser
[309 / 449] ArgumentParser-product
[310 / 449] ArgumentParser-product
[311 / 449] ArgumentParser
[312 / 449]
[312 / 449] ArgumentParser
[315 / 450] SwiftSyntax
[327 / 477] SwiftBasicFormat
[330 / 477] SwiftDiagnostics
[332 / 477] SwiftDiagnostics
[338 / 477] SwiftBasicFormat
[343 / 477] SwiftParser
[344 / 477] SwiftParser
[346 / 477] SwiftParser
[352 / 477] SwiftParser-product
[353 / 477] SwiftParser-product
[356 / 477] SwiftOperators
[359 / 477] SwiftBasicFormat
[363 / 478]
[367 / 488] SwiftParserDiagnostics
[369 / 488] SwiftParserDiagnostics
[370 / 488] SwiftParserDiagnostics
[374 / 489] SwiftParserDiagnostics
[378 / 489] SwiftParserDiagnostics
[379 / 489] SwiftSyntaxBuilder
[387 / 509] SwiftSyntaxBuilder
[388 / 510] SwiftSyntaxBuilder
[390 / 510] SwiftSyntaxBuilder
[400 / 510] SwiftSyntaxBuilder-product
[403 / 510] SwiftSyntaxBuilder
[408 / 511] SwiftParserDiagnostics
[413 / 511] SwiftOperators
[415 / 511] SwiftOperators
[416 / 512]
[418 / 522] SwiftIDEUtils
[425 / 531] SwiftSyntaxMacros
[432 / 532] SwiftSyntaxMacros-product
[440 / 533] SwiftIDEUtils
[447 / 534] SwiftIDEUtils
[450 / 534] SwiftIDEUtils
[456 / 544] SwiftSyntaxMacroExpansion
[458 / 544] SwiftSyntaxMacroExpansion
[463 / 545] SwiftIDEUtils
[471 / 548] SwiftSyntaxMacrosGenericTestSupport
[481 / 561] SwiftCompilerPluginMessageHandling
[482 / 561] SwiftCompilerPluginMessageHandling
[483 / 561] SwiftCompilerPluginMessageHandling
[484 / 562] SwiftSyntaxMacrosGenericTestSupport
[491 / 562] SwiftCompilerPluginMessageHandling
[493 / 562] SwiftCompilerPluginMessageHandling
[494 / 563] SwiftSyntaxMacroExpansion
[496 / 563] SwiftSyntaxMacroExpansion
[500 / 563] SwiftSyntaxMacrosTestSupport
[507 / 566] SwiftCompilerPlugin
[511 / 567] SwiftCompilerPlugin
[513 / 567] SwiftSyntaxMacrosTestSupport
[517 / 569] SwiftSyntax
[520 / 570] SwiftSyntax
[528 / 570] SwiftSyntaxMacros
[543 / 572] SwiftASTMacros
[552 / 590] SwiftPEGMacros
[556 / 590] SwiftASTMacros
[560 / 590] SwiftPEGMacros
[563 / 590] SwiftPEGMacros
[567 / 591] SwiftASTMacros
[571 / 592] SwiftPEGMacros
[571 / 592] SwiftASTMacros
[581 / 602] SwiftAST
[593 / 612] SwiftPEG
[594 / 612] SwiftPEG
[595 / 612] SwiftPEG
[597 / 613] SwiftAST
[599 / 613] SwiftPEG
[613 / 631] SwiftPEGSample-product
[618 / 631] SwiftPEGGenerator-product
[621 / 631] SwiftPEGGenerator-product
[624 / 632] SwiftPEGGenerator-product
[628 / 632] SwiftPEGGenerator-product
/host/spi-builder-workspace/Package.swift: SwiftPEGGenerator-product: clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
[631 / 633] SwiftPEGGenerator-product
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/SwiftPEGSample/Common/Stopwatch.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Stopwatch.swift
/host/spi-builder-workspace/Sources/SwiftPEGSample/Common/Stopwatch.swift:9:27: [1;31merror: [1;39mcannot find 'CLOCK_MONOTONIC_RAW' in scope[0;0m
[0;36m7 |[0;0m private init() {
[0;36m8 |[0;0m if #available(OSX 10.12, *) {
[0;36m9 |[0;0m clock_gettime([4;39mCLOCK_MONOTONIC_RAW[0;0m, &start)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'CLOCK_MONOTONIC_RAW' in scope[0;0m
[0;36m10 |[0;0m } else {
[0;36m11 |[0;0m fatalError()
/host/spi-builder-workspace/Sources/SwiftPEGSample/Common/Stopwatch.swift:18:27: [1;31merror: [1;39mcannot find 'CLOCK_MONOTONIC_RAW' in scope[0;0m
[0;36m16 |[0;0m var end: timespec = timespec()
[0;36m17 |[0;0m if #available(OSX 10.12, *) {
[0;36m18 |[0;0m clock_gettime([4;39mCLOCK_MONOTONIC_RAW[0;0m, &end)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'CLOCK_MONOTONIC_RAW' in scope[0;0m
[0;36m19 |[0;0m } else {
[0;36m20 |[0;0m fatalError()
/host/spi-builder-workspace/Sources/SwiftPEGSample/Common/Stopwatch.swift:23:24: [1;31merror: [1;39mthe compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions[0;0m
[0;36m21 |[0;0m }
[0;36m22 |[0;0m
[0;36m23 |[0;0m let delta_us = [4;39m(end.tv_sec - start.tv_sec) * 1000000 + (end.tv_nsec - start.tv_nsec) / 1000[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mthe compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions[0;0m
[0;36m24 |[0;0m
[0;36m25 |[0;0m return TimeInterval(delta_us) / 1_000_000
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/SwiftPEGSample/Common/ArrayRawTokenizer.swift /host/spi-builder-workspace/Sources/SwiftPEGSample/Common/FileHandle+Ext.swift -primary-file /host/spi-builder-workspace/Sources/SwiftPEGSample/Common/Stopwatch.swift /host/spi-builder-workspace/Sources/SwiftPEGSample/GrammarParsingSample.swift /host/spi-builder-workspace/Sources/SwiftPEGSample/PerformanceTest.swift /host/spi-builder-workspace/Sources/SwiftPEGSample/SwiftPEGSample.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.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 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/SwiftASTMacros\#SwiftASTMacros -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/SwiftPEGMacros\#SwiftPEGMacros -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-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftPEGSample -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/SwiftPEGSample_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-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.o -index-unit-output-path /swift-peg.build/Debug-webassembly-wasm32/SwiftPEGSample-p.build/Objects-normal/wasm32/Stopwatch.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm