The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-mock, reference main (674dbc), with Swift 6.4 for Android on 19 Sep 2026 21:02:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MetalheadSanya/swift-mock.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/MetalheadSanya/swift-mock
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 674dbc8 Merge pull request #63 from MetalheadSanya/57-point-verify-failure-to-verify-call-1
Cloned https://github.com/MetalheadSanya/swift-mock.git
Revision (git rev-parse @):
674dbc856462b2ffab51a7d86a61f7f9a19dd886
SUCCESS checkout https://github.com/MetalheadSanya/swift-mock.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/MetalheadSanya/swift-mock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-syntax.git
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin (0.60s)
[1/79984] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git (2.97s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (4.16s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.20s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3824] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.58s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.80s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 881]
[Planning deferred tasks]
[182 / 378] SwiftSyntax509
[201 / 398] SwiftSyntax
[202 / 399] SwiftSyntax509
[205 / 400] SwiftSyntax509
[210 / 400] SwiftSyntax509
[211 / 400] SwiftSyntax509
[212 / 400] SwiftSyntax
[215 / 400] SwiftSyntax
[216 / 400] SwiftSyntax
[217 / 400] SwiftSyntax
[224 / 400] SwiftSyntax
[228 / 400] SwiftParser
[229 / 401] SwiftParser
[230 / 410] SwiftSyntax509
[232 / 410] SwiftParser
[234 / 410] SwiftParser
[238 / 410] SwiftParser
[240 / 410] SwiftParser
[241 / 410] SwiftParser
[242 / 410] SwiftParser
[243 / 410] SwiftParser
[246 / 425] SwiftDiagnostics
[247 / 432] SwiftDiagnostics
[248 / 432] SwiftDiagnostics
[256 / 445] SwiftBasicFormat
[260 / 450] SwiftDiagnostics
[270 / 450] SwiftParser
[273 / 450] SwiftParser
[279 / 451] SwiftParser
[285 / 451] SwiftParser
[287 / 451] SwiftParser
[288 / 451] SwiftParser
[289 / 451] SwiftDiagnostics
[290 / 451] SwiftOperators
[291 / 451] SwiftOperators
[293 / 451] SwiftDiagnostics
[296 / 451] SwiftDiagnostics
[298 / 451] SwiftDiagnostics
[301 / 452] SwiftDiagnostics
[305 / 452] SwiftBasicFormat
[307 / 452] SwiftParser
[312 / 453] SwiftParser
[314 / 453] SwiftParserDiagnostics
[319 / 473] SwiftParserDiagnostics
[320 / 474] SwiftParserDiagnostics
[320 / 475] SwiftParserDiagnostics
[327 / 476] SwiftSyntaxBuilder
[328 / 476] SwiftParserDiagnostics
[336 / 476] SwiftParserDiagnostics
[338 / 476] SwiftParserDiagnostics
[339 / 476] SwiftSyntaxBuilder
[342 / 476] SwiftSyntaxBuilder
[344 / 476] SwiftParserDiagnostics
[346 / 476] SwiftBasicFormat
[350 / 477]
[353 / 487] SwiftOperators
[355 / 496] SwiftOperators
[358 / 496] SwiftOperators
[363 / 496] SwiftOperators
[365 / 496] SwiftOperators
[371 / 497] SwiftParserDiagnostics
[376 / 497] SwiftOperators
[378 / 498] SwiftOperators
[383 / 498] SwiftOperators
[389 / 518] SwiftSyntaxBuilder
[390 / 519] SwiftParserDiagnostics
[392 / 519] SwiftSyntaxBuilder
[392 / 520] SwiftOperators
[393 / 521] SwiftSyntaxBuilder
[395 / 521] SwiftSyntaxBuilder
[398 / 521] SwiftSyntaxBuilder
[405 / 521] SwiftSyntaxBuilder
[410 / 521] SwiftSyntaxMacros
[412 / 521] SwiftSyntaxBuilder
[415 / 521] SwiftSyntax
[419 / 521] SwiftParserDiagnostics
[426 / 541] SwiftSyntaxMacros
[429 / 541] SwiftSyntaxMacros
[444 / 541] SwiftSyntaxMacros
[446 / 541] SwiftSyntaxMacros
[453 / 544] SwiftSyntaxMacroExpansion
[460 / 545] SwiftSyntaxBuilder
[461 / 545] SwiftSyntaxBuilder
[470 / 563] SwiftSyntaxMacroExpansion
[473 / 563] SwiftSyntaxMacroExpansion
[485 / 564] SwiftSyntaxMacroExpansion
[494 / 566] SwiftCompilerPluginMessageHandling
[497 / 567] SwiftCompilerPluginMessageHandling
[502 / 580] SwiftCompilerPluginMessageHandling
[505 / 580] SwiftCompilerPluginMessageHandling
[509 / 580] SwiftCompilerPluginMessageHandling
[520 / 580] SwiftCompilerPluginMessageHandling
[521 / 580] SwiftCompilerPlugin
[528 / 583] SwiftDiagnostics
[529 / 584] SwiftSyntaxMacroExpansion
[530 / 584] SwiftSyntaxMacroExpansion
[530 / 584] SwiftSyntaxBuilder
[542 / 590] SwiftCompilerPluginMessageHandling
[548 / 590] SwiftCompilerPlugin
[553 / 590] SwiftCompilerPlugin
[558 / 590] SwiftCompilerPlugin
[566 / 592] SwiftMockMacros
[574 / 601] SwiftMockMacros
[576 / 601] SwiftMockMacros
[576 / 602] SwiftMockMacros
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile CompilerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:103:19: error: cannot find 'dup' in scope
101 |     // Duplicate the `stdin` file descriptor, which we will then use for
102 |     // receiving messages from the plugin host.
103 |     let inputFD = dup(fileno(stdin))
    |                   `- error: cannot find 'dup' in scope
104 |     guard inputFD >= 0 else {
105 |       internalError("Could not duplicate `stdin`: \(describe(errno: errno)).")
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:105:69: error: cannot find 'errno' in scope
103 |     let inputFD = dup(fileno(stdin))
104 |     guard inputFD >= 0 else {
105 |       internalError("Could not duplicate `stdin`: \(describe(errno: errno)).")
    |                                                                     `- error: cannot find 'errno' in scope
106 |     }
107 |
/android-ndk/android-ndk-r27d/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
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:111:11: error: cannot find 'close' in scope
109 |     // `stdin` so that attempts by the plugin to read console input (which
110 |     // are usually a mistake) return errors instead of blocking.
111 |     guard close(fileno(stdin)) >= 0 else {
    |           `- error: cannot find 'close' in scope
112 |       internalError("Could not close `stdin`: \(describe(errno: errno)).")
113 |     }
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:112:65: error: cannot find 'errno' in scope
110 |     // are usually a mistake) return errors instead of blocking.
111 |     guard close(fileno(stdin)) >= 0 else {
112 |       internalError("Could not close `stdin`: \(describe(errno: errno)).")
    |                                                                 `- error: cannot find 'errno' in scope
113 |     }
114 |
/android-ndk/android-ndk-r27d/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
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:117:20: error: cannot find 'dup' in scope
115 |     // Duplicate the `stdout` file descriptor, which we will then use for
116 |     // sending messages to the plugin host.
117 |     let outputFD = dup(fileno(stdout))
    |                    `- error: cannot find 'dup' in scope
118 |     guard outputFD >= 0 else {
119 |       internalError("Could not dup `stdout`: \(describe(errno: errno)).")
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:119:64: error: cannot find 'errno' in scope
117 |     let outputFD = dup(fileno(stdout))
118 |     guard outputFD >= 0 else {
119 |       internalError("Could not dup `stdout`: \(describe(errno: errno)).")
    |                                                                `- error: cannot find 'errno' in scope
120 |     }
121 |
/android-ndk/android-ndk-r27d/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
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:124:11: error: cannot find 'dup2' in scope
122 |     // Having duplicated the original standard-output descriptor, redirect
123 |     // `stdout` to `stderr` so that all free-form text output goes there.
124 |     guard dup2(fileno(stderr), fileno(stdout)) >= 0 else {
    |           `- error: cannot find 'dup2' in scope
125 |       internalError("Could not dup2 `stdout` to `stderr`: \(describe(errno: errno)).")
126 |     }
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift:125:77: error: cannot find 'errno' in scope
123 |     // `stdout` to `stderr` so that all free-form text output goes there.
124 |     guard dup2(fileno(stderr), fileno(stdout)) >= 0 else {
125 |       internalError("Could not dup2 `stdout` to `stderr`: \(describe(errno: errno)).")
    |                                                                             `- error: cannot find 'errno' in scope
126 |     }
127 |
/android-ndk/android-ndk-r27d/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.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftCompilerPlugin/CompilerPlugin.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/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 -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 /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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_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-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -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/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftCompilerPlugin -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/SwiftCompilerPlugin_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.o -index-unit-output-path /swift-syntax.build/Debug-android-aarch64/SwiftCompilerPlugin-t.build/Objects-normal/aarch64/CompilerPlugin.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android