Build Information
Failed to build SwiftTelegramBot, reference master (86c911), with Swift 6.4 for Wasm on 21 Nov 2026 10:37:05 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerzh/swift-telegram-bot.git
Reference: master
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/nerzh/swift-telegram-bot
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 86c9111 cleaning
Cloned https://github.com/nerzh/swift-telegram-bot.git
Revision (git rev-parse @):
86c9111fd7e5327e140bc476dc4bedcfc1a562a9
SUCCESS checkout https://github.com/nerzh/swift-telegram-bot.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/nerzh/swift-telegram-bot.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/nerzh/swift-custom-logger
Fetching https://github.com/nerzh/swift-regular-expression
Fetching https://github.com/nerzh/swift-extensions-pack.git
[1/61] Fetching swift-regular-expression
[62/98] Fetching swift-regular-expression, swift-custom-logger
[99/1603] Fetching swift-regular-expression, swift-custom-logger, swift-extensions-pack
Fetched https://github.com/nerzh/swift-regular-expression (0.40s)
Fetched https://github.com/nerzh/swift-custom-logger (0.40s)
Fetched https://github.com/nerzh/swift-extensions-pack.git (0.40s)
Computing version for https://github.com/nerzh/swift-regular-expression
Computed https://github.com/nerzh/swift-regular-expression at 0.2.4 (1.30s)
Computing version for https://github.com/nerzh/swift-extensions-pack.git
Computed https://github.com/nerzh/swift-extensions-pack.git at 2.15.0 (0.15s)
Fetching https://github.com/bytehubio/ed25519
Fetching https://github.com/apple/swift-crypto
[1/204] Fetching ed25519
[205/19191] Fetching ed25519, swift-crypto
Fetched https://github.com/bytehubio/ed25519 (1.20s)
Fetched https://github.com/apple/swift-crypto (1.21s)
Computing version for https://github.com/bytehubio/ed25519
Computed https://github.com/bytehubio/ed25519 at 1.1.0 (1.35s)
Computing version for https://github.com/nerzh/swift-custom-logger
Computed https://github.com/nerzh/swift-custom-logger at 1.1.1 (0.13s)
Fetching https://github.com/apple/swift-log
[1/8544] Fetching swift-log
Fetched https://github.com/apple/swift-log (0.49s)
Computing version for https://github.com/apple/swift-crypto
Computed https://github.com/apple/swift-crypto at 5.1.2 (1.43s)
Fetching https://github.com/apple/swift-asn1.git
[1/2082] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.60s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.17.2 (0.15s)
Creating working copy for https://github.com/nerzh/swift-extensions-pack.git
Working copy of https://github.com/nerzh/swift-extensions-pack.git resolved at 2.15.0
Creating working copy for https://github.com/nerzh/swift-custom-logger
Working copy of https://github.com/nerzh/swift-custom-logger resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-crypto
Working copy of https://github.com/apple/swift-crypto resolved at 5.1.2
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.17.2
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.4
Creating working copy for https://github.com/bytehubio/ed25519
Working copy of https://github.com/bytehubio/ed25519 resolved at 1.1.0
Creating working copy for https://github.com/nerzh/swift-regular-expression
Working copy of https://github.com/nerzh/swift-regular-expression resolved at 0.2.4
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 485]
[Planning deferred tasks]
[Starting]
[53 / 531] CryptoBoringWrapper
[91 / 571] SwiftASN1
[92 / 571] Logging
[104 / 571] CryptoBoringWrapper
[110 / 571] SwiftASN1
[121 / 571] SwiftRegularExpression-product
[126 / 571] SwiftASN1-product
[127 / 571] SwiftASN1-product
[130 / 571] Logging
[134 / 571] Logging
[137 / 572] Ed25519-product
[141 / 572] CryptoBoringWrapper
[149 / 573] SwiftRegularExpression
[164 / 576]
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Printer.swift
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:51:43: [1;31merror: [1;39mcannot find type 'FILE' in scope[0;0m
[0;36m49 |[0;0m private struct OutputStream: TextOutputStream {
[0;36m50 |[0;0m
[0;36m51 |[0;0m public let file: UnsafeMutablePointer<[4;39mFILE[0;0m>
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FILE' in scope[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m public func write(_ string: String) {
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:70:25: [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m #elseif canImport(WASILibc)
[0;36m70 |[0;0m static let stderr = [4;39mOutputStream(file: WASILibc.stderr!)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m71 |[0;0m static let stdout = OutputStream(file: WASILibc.stdout!)
[0;36m72 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:71:25: [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m69 |[0;0m #elseif canImport(WASILibc)
[0;36m70 |[0;0m static let stderr = OutputStream(file: WASILibc.stderr!)
[0;36m71 |[0;0m static let stdout = [4;39mOutputStream(file: WASILibc.stdout!)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m #elseif canImport(Glibc)
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:55:13: [1;31merror: [1;39mcannot find 'flockfile' in scope[0;0m
[0;36m53 |[0;0m public func write(_ string: String) {
[0;36m54 |[0;0m string.withCString { ptr in
[0;36m55 |[0;0m [4;39mflockfile[0;0m(file)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'flockfile' in scope[0;0m
[0;36m56 |[0;0m defer { funlockfile(file) }
[0;36m57 |[0;0m _ = fputs(ptr, file)
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/BasicFormatter.swift /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/CustomHandler.swift /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/LogFormatter.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.dia -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 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.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/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftCustomLogger -package-name swift_custom_logger -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/SwiftCustomLogger_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/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.o -index-unit-output-path /SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Printer.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:51:43: [1;31merror: [1;39mcannot find type 'FILE' in scope[0;0m
[0;36m49 |[0;0m private struct OutputStream: TextOutputStream {
[0;36m50 |[0;0m
[0;36m51 |[0;0m public let file: UnsafeMutablePointer<[4;39mFILE[0;0m>
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'FILE' in scope[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m public func write(_ string: String) {
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:70:25: [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m #elseif canImport(WASILibc)
[0;36m70 |[0;0m static let stderr = [4;39mOutputStream(file: WASILibc.stderr!)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m71 |[0;0m static let stdout = OutputStream(file: WASILibc.stdout!)
[0;36m72 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.swift:71:25: [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m69 |[0;0m #elseif canImport(WASILibc)
[0;36m70 |[0;0m static let stderr = OutputStream(file: WASILibc.stderr!)
[0;36m71 |[0;0m static let stdout = [4;39mOutputStream(file: WASILibc.stdout!)[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mfailed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)[0;0m
[0;36m72 |[0;0m
[0;36m73 |[0;0m #elseif canImport(Glibc)
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/BasicFormatter.swift /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/CustomHandler.swift /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/LogFormatter.swift /host/spi-builder-workspace/.build/checkouts/swift-custom-logger/Sources/SwiftCustomLogger/Printer.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 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.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/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftCustomLogger -package-name swift_custom_logger -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/SwiftCustomLogger_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/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Modules/SwiftCustomLogger.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Modules/SwiftCustomLogger.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/SwiftCustomLogger-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/SwiftCustomLogger-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/SwiftCustomLogger-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftCustomLogger.build/Debug-webassembly-wasm32/SwiftCustomLogger-t.build/Objects-normal/wasm32/Modules/SwiftCustomLogger.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm