The Swift Package Index logo.Swift Package Index

Build Information

Failed to build why-foundation, reference main (02f991), with Swift 6.4 for Wasm on 25 Oct 2026 12:40:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/niktishakov/why-foundation.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/niktishakov/why-foundation
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-54344846-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:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swiftlang/swift-syntax
[1/19306] Fetching swift-argument-parser
[19307/100389] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser (3.67s)
Fetched https://github.com/swiftlang/swift-syntax (3.69s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.64s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
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]
[98 / 216] SwiftSyntax602
[114 / 233] SwiftSyntax510
[140 / 233] SwiftSyntax510
[143 / 234]
[151 / 245] ArgumentParser
[152 / 253] ArgumentParser
[153 / 254] SwiftSyntax601
[161 / 256] SwiftSyntax509
[165 / 258] SwiftSyntax602
[168 / 259] SwiftSyntax600
[170 / 259] SwiftSyntax600
[173 / 259] SwiftSyntax509
[180 / 259] ArgumentParserToolInfo
[181 / 259] SwiftSyntax
[183 / 259] SwiftSyntax
[185 / 259] ArgumentParserToolInfo
[186 / 259] ArgumentParser-product
[187 / 259] ArgumentParser-product
[189 / 259] ArgumentParser-product
[190 / 259]
[190 / 259] ArgumentParser
[193 / 260]
[193 / 260] SwiftSyntax
[205 / 279] SwiftBasicFormat
[206 / 288] SwiftParser
[207 / 288] SwiftDiagnostics
[209 / 288] SwiftDiagnostics
[216 / 288] SwiftBasicFormat
[221 / 288] SwiftParser
[222 / 288] SwiftParser
[224 / 288] SwiftParser
[228 / 288] SwiftParser
[229 / 288] SwiftParser-product
[230 / 288] SwiftParser-product
[231 / 288] SwiftParser-product
[232 / 288] SwiftOperators
[236 / 288] SwiftBasicFormat
[237 / 288] SwiftBasicFormat
[238 / 288] SwiftBasicFormat
[239 / 288] SwiftBasicFormat
[242 / 289] SwiftParser
[249 / 310] SwiftParserDiagnostics
[250 / 310] SwiftParserDiagnostics
[253 / 311] SwiftOperators
[263 / 311] SwiftParserDiagnostics
[264 / 311] SwiftSyntaxBuilder
[267 / 311] SwiftParser
[268 / 311] SwiftOperators
[270 / 311] SwiftOperators
[273 / 311] SwiftOperators
[275 / 311] SwiftOperators
[281 / 321] SwiftSyntaxBuilder
[283 / 321] SwiftSyntaxBuilder
[284 / 323] SwiftSyntaxBuilder
[286 / 323] SwiftSyntaxBuilder
[296 / 324]
[301 / 333] SwiftIfConfig
[304 / 333] SwiftIfConfig
[311 / 333] SwiftIfConfig
[315 / 343] WhyFoundationCore
[318 / 344] WhyFoundationCore
[319 / 345] WhyFoundationCore
[320 / 345] WhyFoundationCore
[330 / 345] SwiftIfConfig
[333 / 348] why-foundation-product
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: error: cannot find 'posix_spawn_file_actions_t' in scope
45 |         var actions: posix_spawn_file_actions_t? = nil
46 |         #else
47 |         var actions = posix_spawn_file_actions_t()
   |                       `- error: cannot find 'posix_spawn_file_actions_t' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:49:9: error: cannot find 'posix_spawn_file_actions_init' in scope
47 |         var actions = posix_spawn_file_actions_t()
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
   |         `- error: cannot find 'posix_spawn_file_actions_init' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:50:17: error: cannot find 'posix_spawn_file_actions_destroy' in scope
48 |         #endif
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
   |                 `- error: cannot find 'posix_spawn_file_actions_destroy' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         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: error: cannot find 'posix_spawn_file_actions_addopen' in scope
49 |         posix_spawn_file_actions_init(&actions)
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         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: error: cannot find 'posix_spawn_file_actions_addopen' in scope
50 |         defer { posix_spawn_file_actions_destroy(&actions) }
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
54 |
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:9: error: cannot find 'posix_spawn_file_actions_addopen' in scope
51 |         posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0)
52 |         posix_spawn_file_actions_addopen(&actions, 1, outputURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
53 |         posix_spawn_file_actions_addopen(&actions, 2, errorURL.path, O_WRONLY | O_CREAT | O_TRUNC, 0o600)
   |         `- error: cannot find 'posix_spawn_file_actions_addopen' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:64:27: error: cannot find 'posix_spawn' in scope
62 |
63 |         var pid = pid_t()
64 |         let spawnResult = posix_spawn(&pid, "/usr/bin/env", &actions, nil, argv, envp)
   |                           `- error: cannot find 'posix_spawn' in scope
65 |         guard spawnResult == 0 else {
66 |             throw Error.spawnFailed(arguments.joined(separator: " "), spawnResult)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:70:15: error: cannot find 'waitpid' in scope
68 |
69 |         var status: Int32 = 0
70 |         while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
   |               `- error: cannot find 'waitpid' in scope
71 |         // WIFEXITED / WEXITSTATUS, which aren't available as functions in Swift.
72 |         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