The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 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:         android
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-54344849-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ec638249ee9496bfd8413990a8663326bfd4883adb2b1d6b616fd753c8ff99b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/swiftlang/swift-syntax
[1/19306] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.23s)
[1/81083] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax (3.63s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.59s)
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/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Building for debugging...
[Computing dependencies]
[Provisioning 2 / 24]
[Pre-planning 1 / 564]
[Planning deferred tasks]
[49 / 233] SwiftSyntax600
[147 / 251] SwiftSyntax600
[162 / 261] SwiftSyntax602
[164 / 262] SwiftSyntax601
[174 / 264] SwiftSyntax602
[180 / 265] SwiftSyntax510
[185 / 266] SwiftSyntax600
[186 / 267] SwiftSyntax
[188 / 267] SwiftSyntax
[193 / 268]
[195 / 277] ArgumentParser
[196 / 277] ArgumentParser
[197 / 277] ArgumentParser
[200 / 277] ArgumentParser
[208 / 277] SwiftSyntax
[212 / 277] SwiftSyntax
[217 / 296] SwiftBasicFormat
[219 / 305] SwiftParser
[231 / 305] SwiftParser
[231 / 306] SwiftParser
[233 / 306] SwiftParser
[237 / 306] SwiftParser
[242 / 306] SwiftParser-product
[243 / 306] SwiftParser-product
[244 / 306] SwiftParser-product
[246 / 306] SwiftOperators
[249 / 306] SwiftDiagnostics
[251 / 306] SwiftBasicFormat
[253 / 307] SwiftParserDiagnostics
[257 / 307] SwiftBasicFormat
[258 / 307] ArgumentParser
[264 / 318] SwiftParserDiagnostics
[265 / 318] SwiftParserDiagnostics
[266 / 318] SwiftParserDiagnostics
[267 / 318] SwiftParserDiagnostics
[274 / 318] SwiftParserDiagnostics
[275 / 318] SwiftSyntaxBuilder
[280 / 321] SwiftOperators
[282 / 329] SwiftOperators
[284 / 329] SwiftOperators
[292 / 329] SwiftOperators
[294 / 329]
[298 / 339] SwiftOperators
[301 / 340] SwiftSyntaxBuilder
[304 / 341] SwiftSyntaxBuilder
[317 / 351] SwiftIfConfig
[318 / 351] SwiftIfConfig
[321 / 351] SwiftSyntaxBuilder
[331 / 353]
[336 / 362] WhyFoundationCore
[338 / 363] WhyFoundationCore
[340 / 363] WhyFoundationCore
error: SwiftCompile normal aarch64 /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:51:68: error: cannot find 'O_RDONLY' 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 'O_RDONLY' 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:52:71: error: cannot find 'O_WRONLY' 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 'O_WRONLY' 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:52:82: error: cannot find 'O_CREAT' 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 'O_CREAT' 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:52:92: error: cannot find 'O_TRUNC' 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 'O_TRUNC' 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:53:70: error: cannot find 'O_WRONLY' 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 'O_WRONLY' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:81: error: cannot find 'O_CREAT' 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 'O_CREAT' in scope
54 |
55 |         let argv: [UnsafeMutablePointer<CChar>?] = (["/usr/bin/env"] + arguments).map { strdup($0) } + [nil]
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:53:91: error: cannot find 'O_TRUNC' 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 'O_TRUNC' 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)
/host/spi-builder-workspace/Sources/WhyFoundationCore/Command.swift:70:49: error: cannot find 'errno' in scope
68 |
69 |         var status: Int32 = 0
70 |         while waitpid(pid, &status, 0) == -1 && errno == EINTR {}
   |                                                 `- error: cannot find 'errno' 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)
/android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/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-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -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 /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/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_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include/module.modulemap -Xcc -fno-omit-frame-pointer -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-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/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-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/WhyFoundationCore_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.o -index-unit-output-path /why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Analyzer.o -index-unit-output-path /why-foundation.build/Debug-android-aarch64/WhyFoundationCore-t.build/Objects-normal/aarch64/Command.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android