The Swift Package Index logo.Swift Package Index

Build Information

Failed to build modbus2mqtt, reference main (287341), with Swift 6.4 for Android on 30 Sep 2026 23:03:53 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jollyjinx/modbus-2-mqtt-bridge.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/jollyjinx/modbus-2-mqtt-bridge
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 287341d Correct NIBE S2125 register definitions and metadata
Cloned https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Revision (git rev-parse @):
287341deb79b5027ff533e4275cdc7e506bc743e
SUCCESS checkout https://github.com/jollyjinx/modbus-2-mqtt-bridge.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-2":/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/jollyjinx/mqtt-nio.git
[1/2859] Fetching mqtt-nio
Fetched https://github.com/jollyjinx/mqtt-nio.git (0.70s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-http-types.git
[1/1939] Fetching swift-http-types
[79/5774] Fetching swift-http-types, swift-configuration
Fetched https://github.com/apple/swift-http-types.git (0.51s)
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-configuration.git (0.55s)
Fetching https://github.com/jollyjinx/JLog
[1/8213] Fetching swift-log
[8214/8327] Fetching swift-log, jlog
[8292/94564] Fetching swift-log, jlog, swift-nio
[8309/111427] Fetching swift-log, jlog, swift-nio, swift-nio-ssl
Fetched https://github.com/jollyjinx/JLog (0.46s)
Fetching https://github.com/apple/swift-argument-parser
[8889/111313] Fetching swift-log, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-log.git (0.58s)
Fetching https://github.com/jollyjinx/SwiftLibModbus
[4631/103100] Fetching swift-nio, swift-nio-ssl
[65909/103674] Fetching swift-nio, swift-nio-ssl, swiftlibmodbus
[69369/122684] Fetching swift-nio, swift-nio-ssl, swiftlibmodbus, swift-argument-parser
Fetched https://github.com/jollyjinx/SwiftLibModbus (0.50s)
[70016/122110] Fetching swift-nio, swift-nio-ssl, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser (1.08s)
[78954/103100] Fetching swift-nio, swift-nio-ssl
Fetching https://github.com/apple/swift-nio-extras.git
Fetched https://github.com/apple/swift-nio-ssl.git (2.28s)
[67265/86237] Fetching swift-nio
[86238/92930] Fetching swift-nio, swift-nio-extras
Fetched https://github.com/apple/swift-nio-extras.git (1.20s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2867] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git (0.77s)
Fetched https://github.com/apple/swift-nio.git (5.31s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 3.1.0 (5.50s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (0.18s)
Fetching https://github.com/Adorkable/swift-log-format-and-pipe
[1/190] Fetching swift-log-format-and-pipe
Fetched https://github.com/Adorkable/swift-log-format-and-pipe (0.45s)
Computing version for https://github.com/Adorkable/swift-log-format-and-pipe
Computed https://github.com/Adorkable/swift-log-format-and-pipe at 0.1.1 (1.96s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.1 (1.43s)
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/2849] Fetching swift-service-lifecycle
Fetched https://github.com/swift-server/swift-service-lifecycle (0.59s)
[1/28068] Fetching swift-collections
Fetching https://github.com/apple/swift-system
[28069/35103] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system (0.77s)
Fetched https://github.com/apple/swift-collections (2.42s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (2.75s)
Fetching https://github.com/apple/swift-atomics.git
[19/1885] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.75s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (1.21s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.29s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.58s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.25s)
Computing version for https://github.com/swift-server/swift-service-lifecycle
Computed https://github.com/swift-server/swift-service-lifecycle at 2.12.0 (0.24s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6792] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (0.68s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (1.11s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.1 (0.48s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.5 (0.48s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.8.0 (0.30s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.31s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.35.1 (0.84s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-nio-http2.git
[1/6159] Fetching swift-algorithms
[6160/18414] Fetching swift-algorithms, swift-nio-http2
Fetched https://github.com/apple/swift-algorithms.git (0.66s)
[368/12255] Fetching swift-nio-http2
[2820/13508] Fetching swift-nio-http2, swift-http-structured-headers
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
[13509/15494] Fetching swift-nio-http2, swift-http-structured-headers, swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.63s)
Fetched https://github.com/apple/swift-http-structured-headers.git (1.57s)
[1/7598] Fetching swift-certificates
Fetched https://github.com/apple/swift-nio-http2.git (1.71s)
Fetched https://github.com/apple/swift-certificates.git (0.89s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.11s)
Fetching https://github.com/apple/swift-numerics.git
[1/6651] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.63s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (1.20s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.52s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.43s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.53s)
Fetching https://github.com/apple/swift-crypto.git
[1/18572] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.83s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.0.0 (2.49s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.46.0 (0.35s)
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.5
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/Adorkable/swift-log-format-and-pipe
Working copy of https://github.com/Adorkable/swift-log-format-and-pipe resolved at 0.1.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
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/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.1
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.3
Creating working copy for https://github.com/jollyjinx/SwiftLibModbus
Working copy of https://github.com/jollyjinx/SwiftLibModbus resolved at 3.1.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.0.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.35.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/jollyjinx/JLog
Working copy of https://github.com/jollyjinx/JLog resolved at 0.0.9
Creating working copy for https://github.com/swift-server/swift-service-lifecycle
Working copy of https://github.com/swift-server/swift-service-lifecycle resolved at 2.12.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.21.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.46.0
Creating working copy for https://github.com/jollyjinx/mqtt-nio.git
Working copy of https://github.com/jollyjinx/mqtt-nio.git resolved at main (0d32051)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.103.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.8.0
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1406]
[Planning 711 / 1406]
[Planning 1082 / 1406]
[Planning deferred tasks]
[Constructing 574 / 3420]
[Starting]
[116 / 894] NIOEmbedded
[213 / 894] CNIOBoringSSLShims
[259 / 908] Logging
[263 / 926] Logging
[266 / 935] _NIOBase64
[275 / 953] InternalCollectionsUtilities
[276 / 953] _NIODataStructures
[278 / 953] _NIODataStructures
[292 / 953] _NIOBase64
[295 / 953] InternalCollectionsUtilities
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/SwiftLibModbus/ModbusDevice.swift:127:63: error: cannot find 'errno' in scope
125 |         else
126 |         {
127 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
128 |             modbus_free(modbusdevice)
129 |             throw ModbusError.couldNotCreateDevice(error: "Could not configure response timeout: \(errorString)")
/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/SwiftLibModbus/Sources/SwiftLibModbus/ModbusDevice.swift:166:63: error: cannot find 'errno' in scope
164 |         else
165 |         {
166 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
167 |             throw ModbusError.couldNotCreateDevice(error: "Could not create TCP device for \(networkAddress):\(port): \(errorString)")
168 |         }
/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/SwiftLibModbus/Sources/SwiftLibModbus/ModbusDevice.swift:173:63: error: cannot find 'errno' in scope
171 |         else
172 |         {
173 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
174 |             modbus_free(device)
175 |             throw ModbusError.couldNotCreateDevice(error: "Could not configure response timeout: \(errorString)")
/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 -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/SwiftLibModbus/ModbusDevice.swift -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 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -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 -user-module-version 3.1.0 -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 -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-android-aarch64/CModbus.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/SwiftLibModbus/Sources/CModbus/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftLibModbus -package-name swiftlibmodbus -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/SwiftLibModbus_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/Modules/SwiftLibModbus.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/Modules/SwiftLibModbus.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/SwiftLibModbus-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/SwiftLibModbus-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/SwiftLibModbus-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftLibModbus.build/Debug-android-aarch64/SwiftLibModbus-t.build/Objects-normal/aarch64/Modules/SwiftLibModbus.swiftmodule
[305 / 953] SystemPackage
error: Build failed
BUILD FAILURE 6.4 android