The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftLibModbus, reference 3.1.0 (decb53), with Swift 6.3 for Android on 26 Sep 2026 05:46:58 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-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/jollyjinx/SwiftLibModbus.git
Reference: 3.1.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/SwiftLibModbus
 * tag               3.1.0      -> FETCH_HEAD
HEAD is now at decb53c Add configurable Modbus response timeout
Cloned https://github.com/jollyjinx/SwiftLibModbus.git
Revision (git rev-parse @):
decb53ca200086e921c5715f31f526f96f1d3cf3
SUCCESS checkout https://github.com/jollyjinx/SwiftLibModbus.git at 3.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.3
Building package at path:  $PWD
https://github.com/jollyjinx/SwiftLibModbus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:8ca9e1e6d70fd53f5b05e4f64d92569d697563f7f457a1485802bc9eb2cd1382
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/7] Write sources
[1/7] Compiling CModbus modbus-data.c
[2/7] Compiling CModbus modbus-tcp.c
[3/7] Compiling CModbus modbus-rtu.c
[4/7] Compiling CModbus strlcpy.c
[5/7] Write swift-version-272D24FF697CF451.txt
[6/7] Compiling CModbus modbus.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] Emitting module SwiftLibModbus
/host/spi-builder-workspace/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)")
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/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 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/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)")
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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
[9/9] Compiling SwiftLibModbus ModbusDevice.swift
/host/spi-builder-workspace/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)")
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/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 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/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)")
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:189:63: error: cannot find 'errno' in scope
187 |         if modbus_connect(self.modbusdevice) == -1
188 |         {
189 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
190 |             throw ModbusError.couldNotConnect(error: errorString)
191 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:220:63: error: cannot find 'errno' in scope
218 |         else
219 |         {
220 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
221 |             throw ModbusError.couldNotConnect(error: "Could not select Modbus device address \(address): \(errorString)")
222 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:287:63: error: cannot find 'errno' in scope
285 |         else
286 |         {
287 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
288 |             throw ModbusError.couldNotRead(error: errorString)
289 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:307:63: error: cannot find 'errno' in scope
305 |         else
306 |         {
307 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
308 |             throw ModbusError.couldNotRead(error: errorString)
309 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:330:63: error: cannot find 'errno' in scope
328 |         else
329 |         {
330 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
331 |             throw ModbusError.couldNotRead(error: errorString)
332 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:433:63: error: cannot find 'errno' in scope
431 |         else
432 |         {
433 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
434 |             throw ModbusError.couldNotRead(error: errorString)
435 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:470:63: error: cannot find 'errno' in scope
468 |         else
469 |         {
470 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
471 |             throw ModbusError.couldNotRead(error: errorString)
472 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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/Sources/SwiftLibModbus/ModbusDevice.swift:515:63: error: cannot find 'errno' in scope
513 |         else
514 |         {
515 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
516 |             throw ModbusError.couldNotWrite(error: errorString)
517 |         }
/root/.swiftpm/swift-sdks/swift-6.3.2-RELEASE_android.artifactbundle/swift-android/ndk-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
BUILD FAILURE 6.3 android