Build Information
Failed to build swift-peg, reference 0.7.0 (948a4e), with Swift 6.4 for Wasm on 21 Sep 2026 17:55:54 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-1":/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: 0.7.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/LuizZak/swift-peg
* tag 0.7.0 -> FETCH_HEAD
HEAD is now at 948a4e2 Updating comments
Cloned https://github.com/LuizZak/swift-peg.git
Revision (git rev-parse @):
948a4e2f816e46a3c8c85ccc1effa343335f0dae
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/LuizZak/swift-peg.git at 0.7.0
========================================
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-53886769-1":/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/MiniDigraph.git
Fetching https://github.com/LuizZak/Console.git
Fetching https://github.com/LuizZak/SwiftAST.git
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/352] Fetching console
[294/596] Fetching console, minidigraph
Fetched https://github.com/LuizZak/MiniDigraph.git (0.46s)
[1/1065] Fetching swiftast
[1066/19983] Fetching swiftast, swift-argument-parser
[19984/99982] Fetching swiftast, swift-argument-parser, swift-syntax
Fetched https://github.com/LuizZak/SwiftAST.git (1.15s)
Fetched https://github.com/apple/swift-argument-parser.git (1.16s)
[4000/79999] Fetching swift-syntax
Fetched https://github.com/LuizZak/Console.git (3.05s)
Fetched https://github.com/apple/swift-syntax.git (3.07s)
Computing version for https://github.com/LuizZak/SwiftAST.git
Computed https://github.com/LuizZak/SwiftAST.git at 0.14.0 (3.25s)
Fetching https://github.com/LuizZak/MiniGraphviz.git
Fetching https://github.com/LuizZak/MiniLexer.git
[1/41] Fetching minigraphviz
Fetched https://github.com/LuizZak/MiniGraphviz.git (0.41s)
[1/780] Fetching minilexer
Fetched https://github.com/LuizZak/MiniLexer.git (0.92s)
Computing version for https://github.com/LuizZak/MiniDigraph.git
Computed https://github.com/LuizZak/MiniDigraph.git at 0.8.0 (1.06s)
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.16s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 600.0.0 (0.29s)
Computing version for https://github.com/LuizZak/MiniGraphviz.git
Computed https://github.com/LuizZak/MiniGraphviz.git at 0.1.0 (0.14s)
Computing version for https://github.com/LuizZak/MiniLexer.git
Computed https://github.com/LuizZak/MiniLexer.git at 0.10.0 (0.18s)
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/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/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
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
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 949]
[Planning deferred tasks]
[Starting]
[174 / 375]
[204 / 421] SwiftSyntax510
[217 / 421] SwiftSyntax509
[219 / 421] ArgumentParserToolInfo
[230 / 421] MiniLexer
[232 / 421] SwiftSyntax509
[246 / 423] SwiftSyntax509
[250 / 424] SwiftSyntax600
[254 / 425] MiniLexer-product
[258 / 425] MiniDigraph
[260 / 425] MiniLexer
[261 / 425] MiniDigraph-product
[263 / 425] MiniDigraph
[265 / 425] Console
[267 / 425] Console
[268 / 425] Console
[269 / 425] Console-product
[271 / 426] MiniDigraph
[275 / 426] SwiftSyntax600
[279 / 427]
[281 / 437] ArgumentParser
[283 / 446] ArgumentParser
[284 / 446] SwiftSyntax
[286 / 447] SwiftSyntax
[288 / 448] SwiftSyntax
[289 / 449] SwiftSyntax
[297 / 449] Console
[303 / 449] MiniLexer
[305 / 449] ArgumentParserToolInfo
[307 / 449] ArgumentParserToolInfo
[308 / 449] ArgumentParserToolInfo
[309 / 449] ArgumentParser
[310 / 449] ArgumentParser-product
[311 / 449] ArgumentParser-product
[312 / 449] ArgumentParser
[315 / 450] ArgumentParser
[315 / 450] SwiftSyntax
[327 / 468] SwiftDiagnostics
[328 / 477] SwiftParser
[329 / 477] SwiftParser
[333 / 477] SwiftDiagnostics
[342 / 477] SwiftParser
[343 / 477] SwiftParser
[344 / 477] SwiftParser
[345 / 477] SwiftParser
[347 / 477] SwiftParser
[351 / 477] SwiftParser
[352 / 477] SwiftParser-product
[353 / 477] SwiftParser-product
[354 / 477] SwiftDiagnostics
[356 / 477] SwiftDiagnostics
[357 / 477] SwiftOperators
[361 / 477] SwiftBasicFormat
[365 / 479]
[367 / 488] SwiftParserDiagnostics
[369 / 489] SwiftParserDiagnostics
[370 / 490] SwiftParserDiagnostics
[372 / 490] SwiftParserDiagnostics
[373 / 490] SwiftParserDiagnostics
[374 / 490] SwiftParserDiagnostics
[375 / 490] SwiftParserDiagnostics
[380 / 490] SwiftSyntaxBuilder
[384 / 492] SwiftOperators
[387 / 510] SwiftIDEUtils
[388 / 510] SwiftOperators
[390 / 510] SwiftOperators
[396 / 510] SwiftOperators
[399 / 510] SwiftIDEUtils
[404 / 510] SwiftOperators
[405 / 510] SwiftOperators
[406 / 510] SwiftIDEUtils
[409 / 510] SwiftIDEUtils
[410 / 510] SwiftIDEUtils
[411 / 510] SwiftIDEUtils
[414 / 511] SwiftIDEUtils
[418 / 521] SwiftSyntaxBuilder
[419 / 522] SwiftSyntaxBuilder
[422 / 522] SwiftSyntaxBuilder
[423 / 522] SwiftSyntaxBuilder
[425 / 523] SwiftSyntaxBuilder
[430 / 523] SwiftSyntaxBuilder
[439 / 533] SwiftSyntaxMacros
[443 / 533] SwiftSyntaxMacros
[454 / 543] SwiftSyntaxMacroExpansion
[455 / 544] SwiftSyntaxMacroExpansion
[457 / 544] SwiftSyntaxMacroExpansion
[466 / 545] SwiftSyntaxMacrosGenericTestSupport
[472 / 550] SwiftCompilerPluginMessageHandling
[473 / 558] SwiftCompilerPluginMessageHandling
[474 / 558] SwiftSyntaxMacrosGenericTestSupport
[475 / 558] SwiftSyntaxMacroExpansion
[480 / 558] SwiftSyntaxMacrosGenericTestSupport
[481 / 558] SwiftSyntaxMacrosTestSupport
[487 / 559] SwiftCompilerPluginMessageHandling
[492 / 559] SwiftSyntaxMacroExpansion
[492 / 560] SwiftCompilerPluginMessageHandling
[500 / 566] SwiftCompilerPlugin
[502 / 566] SwiftCompilerPlugin
[508 / 567] SwiftCompilerPluginMessageHandling
[508 / 567] SwiftSyntaxMacrosTestSupport
[513 / 567] SwiftCompilerPluginMessageHandling
[515 / 568] SwiftSyntaxMacrosTestSupport
[517 / 569] SwiftSyntax
[518 / 570] SwiftSyntax
[520 / 570] SwiftSyntax
[526 / 570] SwiftOperators
[532 / 570] SwiftSyntaxMacrosTestSupport
[543 / 572] SwiftASTMacros
[551 / 590] SwiftASTMacros
[553 / 590] SwiftASTMacros
[555 / 590] SwiftASTMacros
[557 / 590] SwiftPEGMacros
[558 / 590] SwiftPEGMacros
[559 / 590] SwiftPEGMacros
[560 / 590] SwiftPEGMacros
[563 / 590] SwiftASTMacros
[564 / 591] SwiftASTMacros
[567 / 591] SwiftPEGMacros
[568 / 592] SwiftPEGMacros
[571 / 592] SwiftASTMacros
[572 / 593] SwiftAST
[580 / 602] SwiftAST
[580 / 602] SwiftPEGMacros
[581 / 602]
[581 / 602] SwiftAST
[587 / 604] SwiftPEG
[591 / 612] SwiftPEG
[592 / 612] SwiftPEG
[593 / 612] SwiftPEG
[594 / 612] SwiftPEG
[596 / 612] SwiftAST
[599 / 613] SwiftPEG
[606 / 615] SwiftPEGSample-product
[612 / 631] SwiftPEGSample-product
[617 / 631] SwiftPEGSample-product
[619 / 631] SwiftPEGSample-product
[623 / 631] SwiftPEGGenerator-product
[624 / 631] SwiftPEGGenerator-product
[624 / 631] SwiftPEGSample-product
[628 / 632] SwiftPEGGenerator-product
[631 / 633] SwiftPEGGenerator-product
/host/spi-builder-workspace/Package.swift: SwiftPEGGenerator-product: clang: warning: argument unused during compilation: '-rdynamic' [-Wunused-command-line-argument]
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