Build Information
Failed to build SwiftLibModbus, reference main (9ec8ff), with Swift 6.3 for Android on 20 Apr 2026 22:27:27 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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 9ec8ff8 Preserve TCP response timeout across reconnects
Cloned https://github.com/jollyjinx/SwiftLibModbus.git
Revision (git rev-parse @):
9ec8ff8e9be56af486bcc446a29b5b9608f6ce01
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-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/7] Write sources
[1/7] Compiling CModbus modbus-data.c
[2/7] Compiling CModbus strlcpy.c
[3/7] Write swift-version--4F562202D5529B1.txt
[4/7] Compiling CModbus modbus-tcp.c
[5/7] Compiling CModbus modbus-rtu.c
[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:113:59: error: cannot find 'errno' in scope
111 | }
112 |
113 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
114 | throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
115 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:113:59: error: cannot find 'errno' in scope
111 | }
112 |
113 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
114 | throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
115 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:121:63: error: cannot find 'errno' in scope
119 | if modbus_connect(self.modbusdevice) == -1
120 | {
121 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
122 | throw ModbusError.couldNotConnect(error: errorString)
123 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:198:63: error: cannot find 'errno' in scope
196 | else
197 | {
198 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
199 | throw ModbusError.couldNotRead(error: errorString)
200 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:212:63: error: cannot find 'errno' in scope
210 | else
211 | {
212 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
213 | throw ModbusError.couldNotRead(error: errorString)
214 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:229:63: error: cannot find 'errno' in scope
227 | else
228 | {
229 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
230 | throw ModbusError.couldNotRead(error: errorString)
231 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:306:63: error: cannot find 'errno' in scope
304 | else
305 | {
306 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
307 | throw ModbusError.couldNotRead(error: errorString)
308 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:337:63: error: cannot find 'errno' in scope
335 | else
336 | {
337 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
338 | throw ModbusError.couldNotRead(error: errorString)
339 | }
/root/.swiftpm/swift-sdks/swift-6.3-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:376:63: error: cannot find 'errno' in scope
374 | else
375 | {
376 | let errorString = String(cString: modbus_strerror(errno))
| `- error: cannot find 'errno' in scope
377 | throw ModbusError.couldNotWrite(error: errorString)
378 | }
/root/.swiftpm/swift-sdks/swift-6.3-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