The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftLibModbus, reference main (5da5e5), with Swift 6.3 for Android on 18 Jul 2026 02:22:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-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: 333316120c8b89ed7d21f1b34865290794301d91
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jollyjinx/SwiftLibModbus.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/SwiftLibModbus
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5da5e53 Add per-operation Modbus device addressing
Cloned https://github.com/jollyjinx/SwiftLibModbus.git
Revision (git rev-parse @):
5da5e53d39c7f9eeda066ac08964613237572efc
SUCCESS checkout https://github.com/jollyjinx/SwiftLibModbus.git at main
========================================
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-54344844-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:451958f7df55f9af673f8b0851dc526f2aee3222db374ae53b89fa21ad564bc8
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 strlcpy.c
[2/7] Compiling CModbus modbus-data.c
[3/7] Compiling CModbus modbus-rtu.c
[4/7] Compiling CModbus modbus-tcp.c
[5/7] Compiling CModbus modbus.c
[6/7] Write swift-version-272D24FF697CF451.txt
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:128:59: error: cannot find 'errno' in scope
126 |         }
127 |
128 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
129 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
130 |     }
/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:128:59: error: cannot find 'errno' in scope
126 |         }
127 |
128 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
129 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
130 |     }
/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:136:63: error: cannot find 'errno' in scope
134 |         if modbus_connect(self.modbusdevice) == -1
135 |         {
136 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
137 |             throw ModbusError.couldNotConnect(error: errorString)
138 |         }
/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:167:63: error: cannot find 'errno' in scope
165 |         else
166 |         {
167 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
168 |             throw ModbusError.couldNotConnect(error: "Could not select Modbus device address \(address): \(errorString)")
169 |         }
/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:234:63: error: cannot find 'errno' in scope
232 |         else
233 |         {
234 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
235 |             throw ModbusError.couldNotRead(error: errorString)
236 |         }
/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:254:63: error: cannot find 'errno' in scope
252 |         else
253 |         {
254 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
255 |             throw ModbusError.couldNotRead(error: errorString)
256 |         }
/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:277:63: error: cannot find 'errno' in scope
275 |         else
276 |         {
277 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
278 |             throw ModbusError.couldNotRead(error: errorString)
279 |         }
/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:380:63: error: cannot find 'errno' in scope
378 |         else
379 |         {
380 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
381 |             throw ModbusError.couldNotRead(error: errorString)
382 |         }
/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:417:63: error: cannot find 'errno' in scope
415 |         else
416 |         {
417 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
418 |             throw ModbusError.couldNotRead(error: errorString)
419 |         }
/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:462:63: error: cannot find 'errno' in scope
460 |         else
461 |         {
462 |             let errorString = String(cString: modbus_strerror(errno))
    |                                                               `- error: cannot find 'errno' in scope
463 |             throw ModbusError.couldNotWrite(error: errorString)
464 |         }
/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