Build Information
Failed to build why-foundation, reference 0.2.1 (02f991), with Swift 6.4 for Wasm on 25 Oct 2026 12:40: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.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/niktishakov/why-foundation.git
Reference: 0.2.1
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/niktishakov/why-foundation
* tag 0.2.1 -> FETCH_HEAD
HEAD is now at 02f9917 Report privacy-manifest-only targets separately and skip targets outside library products
Cloned https://github.com/niktishakov/why-foundation.git
Revision (git rev-parse @):
02f99173b555fb4593974da4ae583d6506585ec9
SUCCESS checkout https://github.com/niktishakov/why-foundation.git at 0.2.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/niktishakov/why-foundation.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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-argument-parser
[1/19306] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (0.81s)
[1/81083] Fetching swift-syntax
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.42s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.16s)
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 564]
[Planning deferred tasks]
[61 / 215] SwiftSyntax602
[143 / 234] _SwiftSyntaxCShims
[145 / 243] SwiftSyntax601
[159 / 245] SwiftSyntax
[167 / 247] ArgumentParserToolInfo
[170 / 249] SwiftSyntax509
[176 / 250] SwiftSyntax510
[178 / 259] ArgumentParser
[179 / 259] ArgumentParser
[180 / 259] ArgumentParser
[181 / 259] ArgumentParser
[183 / 259] ArgumentParser
[187 / 259] ArgumentParser
[188 / 259] ArgumentParser-product
[189 / 259] ArgumentParser-product
[190 / 259] ArgumentParser-product
[190 / 259] ArgumentParser
[193 / 260] SwiftSyntax
[206 / 288] SwiftParser
[207 / 288] SwiftBasicFormat
[220 / 288] SwiftParser
[221 / 288] SwiftParser
[222 / 288] SwiftParser
[228 / 288] SwiftParser
[229 / 288] SwiftParser-product
[230 / 288] SwiftParser-product
[232 / 288] SwiftOperators
[235 / 288] SwiftDiagnostics
[236 / 288] SwiftDiagnostics
[237 / 288] SwiftDiagnostics
[239 / 288] SwiftBasicFormat
[243 / 289] SwiftDiagnostics
[246 / 299] SwiftParserDiagnostics
[247 / 300] SwiftBasicFormat
[251 / 301] SwiftParserDiagnostics
[253 / 301] SwiftParserDiagnostics
[257 / 301] SwiftParserDiagnostics
[261 / 301]
[266 / 321] SwiftSyntaxBuilder
[268 / 321] SwiftSyntaxBuilder
[268 / 321] SwiftParserDiagnostics
[276 / 321] SwiftSyntaxBuilder
[277 / 321] SwiftSyntaxBuilder
[279 / 322] SwiftSyntaxBuilder
[285 / 322] SwiftParserDiagnostics
[288 / 322] SwiftOperators
[293 / 323] SwiftOperators
[296 / 323] SwiftSyntaxBuilder
[301 / 333] SwiftIfConfig
[304 / 333] SwiftIfConfig
[314 / 343] WhyFoundationCore
[316 / 344] WhyFoundationCore
[317 / 344] WhyFoundationCore
[318 / 344] WhyFoundationCore
[321 / 345] WhyFoundationCore
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Command.swift
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:47:23: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_t' in scope[0;0m
[0;36m45 |[0;0m var actions: posix_spawn_file_actions_t? = nil
[0;36m46 |[0;0m #else
[0;36m47 |[0;0m var actions = [4;39mposix_spawn_file_actions_t[0;0m()
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_t' in scope[0;0m
[0;36m48 |[0;0m #endif
[0;36m49 |[0;0m posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:49:9: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_init' in scope[0;0m
[0;36m47 |[0;0m var actions = posix_spawn_file_actions_t()
[0;36m48 |[0;0m #endif
[0;36m49 |[0;0m [4;39mposix_spawn_file_actions_init[0;0m(&actions)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_init' in scope[0;0m
[0;36m50 |[0;0m defer { posix_spawn_file_actions_destroy(&actions) }
[0;36m51 |[0;0m posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:50:17: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_destroy' in scope[0;0m
[0;36m48 |[0;0m #endif
[0;36m49 |[0;0m posix_spawn_file_actions_init(&actions)
[0;36m50 |[0;0m defer { [4;39mposix_spawn_file_actions_destroy[0;0m(&actions) }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_destroy' in scope[0;0m
[0;36m51 |[0;0m posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
[0;36m52 |[0;0m posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:51:9: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m49 |[0;0m posix_spawn_file_actions_init(&actions)
[0;36m50 |[0;0m defer { posix_spawn_file_actions_destroy(&actions) }
[0;36m51 |[0;0m [4;39mposix_spawn_file_actions_addopen[0;0m(&actions, 0, "/dev/null", O_RDONLY, 0)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m52 |[0;0m posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
[0;36m53 |[0;0m posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:52:9: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m50 |[0;0m defer { posix_spawn_file_actions_destroy(&actions) }
[0;36m51 |[0;0m posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
[0;36m52 |[0;0m [4;39mposix_spawn_file_actions_addopen[0;0m(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m53 |[0;0m posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
[0;36m54 |[0;0m
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:9: [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m51 |[0;0m posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
[0;36m52 |[0;0m posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
[0;36m53 |[0;0m [4;39mposix_spawn_file_actions_addopen[0;0m(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn_file_actions_addopen' in scope[0;0m
[0;36m54 |[0;0m
[0;36m55 |[0;0m let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:27: [1;31merror: [1;39mcannot find 'posix_spawn' in scope[0;0m
[0;36m62 |[0;0m
[0;36m63 |[0;0m var pid = pid_t()
[0;36m64 |[0;0m let spawnResult = [4;39mposix_spawn[0;0m(&pid, "/usr/bin/env", &actions, nil, argv, envp)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'posix_spawn' in scope[0;0m
[0;36m65 |[0;0m guard spawnResult == 0 else {
[0;36m66 |[0;0m throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:70:15: [1;31merror: [1;39mcannot find 'waitpid' in scope[0;0m
[0;36m68 |[0;0m
[0;36m69 |[0;0m var status: Int32 = 0
[0;36m70 |[0;0m while [4;39mwaitpid[0;0m(pid, &status, 0) == -1 && errno == EINTR {}
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'waitpid' in scope[0;0m
[0;36m71 |[0;0m // WIFEXITED / WEXITSTATUS, which aren't available as functions in Swift.
[0;36m72 |[0;0m let exitCode: Int32 = (status & 0x7f) == 0 ? (status >> 8) & 0xff : 128 + (status & 0x7f)
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/WhyFoundationCore/Analyzer.swift -primary-file /host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/ExitStatus.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/ImportScanner.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/MemberAPI.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/OneLineFix.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/PackageGraph.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/SourceLocator.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/SwiftVersion.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/TargetPlatform.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/TextReport.swift /host/spi-builder-workspace/Sources/WhyFoundationCore/XcodeProjectImporter.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.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 -swift-version 6 -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 -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include/module.modulemap -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/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name WhyFoundationCore -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/WhyFoundationCore_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/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.o -index-unit-output-path /why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Analyzer.o -index-unit-output-path /why-foundation.build/Debug-webassembly-wasm32/WhyFoundationCore-t.build/Objects-normal/wasm32/Command.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm