The Swift Package Index logo.Swift Package Index

Build Information

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

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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: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: 2.9.0
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
 * tag               2.9.0      -> FETCH_HEAD
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 2.9.0
========================================
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-53886770-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: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.54s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-configuration.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/8213] Fetching swift-log
[2/12048] Fetching swift-log, swift-configuration
[2915/14915] Fetching swift-log, swift-configuration, swift-nio-transport-services
[2916/16854] Fetching swift-log, swift-configuration, swift-nio-transport-services, swift-http-types
[16855/23547] Fetching swift-log, swift-configuration, swift-nio-transport-services, swift-http-types, swift-nio-extras
Fetched https://github.com/apple/swift-nio-transport-services.git (0.59s)
[15728/20680] Fetching swift-log, swift-configuration, swift-http-types, swift-nio-extras
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetched https://github.com/apple/swift-nio-extras.git (0.71s)
Fetching https://github.com/jollyjinx/JLog
[1/86237] Fetching swift-nio
[1726/86811] Fetching swift-nio, swiftlibmodbus
Fetched https://github.com/jollyjinx/SwiftLibModbus (0.38s)
Fetching https://github.com/apple/swift-argument-parser
[4312/86237] Fetching swift-nio
[4313/86351] Fetching swift-nio, jlog
Fetched https://github.com/jollyjinx/JLog (0.33s)
[5175/86237] Fetching swift-nio
Fetching https://github.com/apple/swift-nio-ssl.git
[56918/105247] Fetching swift-nio, swift-argument-parser
[82827/122110] Fetching swift-nio, swift-argument-parser, swift-nio-ssl
Fetched https://github.com/apple/swift-argument-parser (0.94s)
[68109/103100] Fetching swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git (2.05s)
Fetched https://github.com/apple/swift-configuration.git (4.16s)
Fetched https://github.com/apple/swift-http-types.git (4.16s)
Fetched https://github.com/apple/swift-log.git (4.16s)
Fetched https://github.com/apple/swift-nio.git (4.21s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 3.1.0 (4.57s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (0.19s)
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.43s)
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.95s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.1 (1.42s)
Fetching https://github.com/apple/swift-system
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/swift-server/swift-service-lifecycle
[1/2849] Fetching swift-service-lifecycle
[2850/9884] Fetching swift-service-lifecycle, swift-system
[3132/37952] Fetching swift-service-lifecycle, swift-system, swift-collections
Fetched https://github.com/swift-server/swift-service-lifecycle (1.27s)
Fetched https://github.com/apple/swift-system (1.27s)
Fetched https://github.com/apple/swift-collections (1.28s)
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 (1.49s)
Fetching https://github.com/apple/swift-atomics.git
[1/1885] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git (0.66s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.93s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.21s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.103.0 (0.45s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.18s)
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.18s)
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.55s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.78s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.7.1 (0.30s)
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.24s)
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.22s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.8.1 (0.23s)
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.51s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-certificates.git
[40/1986] Fetching swift-asn1
[816/8145] Fetching swift-asn1, swift-algorithms
[8146/15743] Fetching swift-asn1, swift-algorithms, swift-certificates
[8147/27998] Fetching swift-asn1, swift-algorithms, swift-certificates, swift-nio-http2
Fetched https://github.com/apple/swift-algorithms.git (0.52s)
[2413/21839] Fetching swift-asn1, swift-certificates, swift-nio-http2
Fetched https://github.com/apple/swift-certificates.git (0.65s)
[5295/14241] Fetching swift-asn1, swift-nio-http2
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetched https://github.com/apple/swift-asn1.git (0.96s)
Fetched https://github.com/apple/swift-nio-http2.git (0.96s)
[1/1253] Fetching swift-http-structured-headers
Fetched https://github.com/apple/swift-http-structured-headers.git (0.51s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.67s)
Fetching https://github.com/apple/swift-numerics.git
[1/6651] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.56s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.78s)
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.23s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.22s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.21.0 (0.25s)
Fetching https://github.com/apple/swift-crypto.git
[1/18572] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.37s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.0.0 (1.67s)
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.25s)
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-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/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
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-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/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/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-system
Working copy of https://github.com/apple/swift-system resolved at 1.8.1
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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
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-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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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/jollyjinx/JLog
Working copy of https://github.com/jollyjinx/JLog resolved at 0.0.9
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-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.7.1
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-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/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-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
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-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.7
Building for debugging...
[Computing dependencies]
[Provisioning 2 / 68]
[Constructing description]
[Pre-planning 1 / 1406]
[Planning 465 / 1406]
[Planning 970 / 1406]
[Planning 999 / 1406]
[Planning 1249 / 1406]
[Planning deferred tasks]
[Constructing 211 / 3420]
[Constructing 2811 / 3420]
[Starting]
[6 / 894] NIOTLS-product
[154 / 894] JLog
[246 / 894]
[261 / 909] SwiftLibModbus
[268 / 937] SystemPackage
[269 / 945] _NIOBase64
[273 / 945] _NIOBase64
[282 / 945] _NIODataStructures
[288 / 945] Logging
[295 / 945] SystemPackage
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
error: Build failed
BUILD FAILURE 6.4 android