The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftLibModbus, reference main (7d5603), with Swift 6.1 for Android on 30 May 2025 22:40:04 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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 7d56036 updated readme
Cloned https://github.com/jollyjinx/SwiftLibModbus.git
Revision (git rev-parse @):
7d560360e6c08692be26c240216977ab96b54181
SUCCESS checkout https://github.com/jollyjinx/SwiftLibModbus.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jollyjinx/SwiftLibModbus.git
https://github.com/jollyjinx/SwiftLibModbus.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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] Write swift-version-24593BA9C3E375BF.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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftLibModbus/ModbusDevice.swift:101:59: error: cannot find 'errno' in scope
 99 |         }
100 |
101 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
102 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
103 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/SwiftLibModbus/ModbusDevice.swift:101:59: error: cannot find 'errno' in scope
 99 |         }
100 |
101 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
102 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
103 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:113:67: error: cannot find 'errno' in scope
111 |             if modbus_connect(self.modbusdevice) == -1
112 |             {
113 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
114 |                 continuation.resume(throwing: ModbusError.couldNotConnect(error: errorString))
115 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:201:67: error: cannot find 'errno' in scope
199 |             else
200 |             {
201 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
202 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
203 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:67: error: cannot find 'errno' in scope
218 |             else
219 |             {
220 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
221 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
222 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:243:67: error: cannot find 'errno' in scope
241 |             else
242 |             {
243 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
244 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
245 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:352:67: error: cannot find 'errno' in scope
350 |             else
351 |             {
352 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
353 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
354 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:379:71: error: cannot find 'errno' in scope
377 |                 else
378 |                 {
379 |                     let errorString = String(cString: modbus_strerror(errno))
    |                                                                       `- error: cannot find 'errno' in scope
380 |                     throw ModbusError.couldNotRead(error: errorString)
381 |                 }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:439:67: error: cannot find 'errno' in scope
437 |             else
438 |             {
439 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
440 |                 continuation.resume(throwing: ModbusError.couldNotWrite(error: errorString))
441 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] Emitting module SwiftLibModbus
/host/spi-builder-workspace/Sources/SwiftLibModbus/ModbusDevice.swift:101:59: error: cannot find 'errno' in scope
 99 |         }
100 |
101 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
102 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
103 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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
[3/3] Compiling SwiftLibModbus ModbusDevice.swift
/host/spi-builder-workspace/Sources/SwiftLibModbus/ModbusDevice.swift:101:59: error: cannot find 'errno' in scope
 99 |         }
100 |
101 |         let errorString = String(cString: modbus_strerror(errno))
    |                                                           `- error: cannot find 'errno' in scope
102 |         throw ModbusError.couldNotCreateDevice(error: "could not create device:\(errorString) ipAddresses:\(ipAddresses)")
103 |     }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:113:67: error: cannot find 'errno' in scope
111 |             if modbus_connect(self.modbusdevice) == -1
112 |             {
113 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
114 |                 continuation.resume(throwing: ModbusError.couldNotConnect(error: errorString))
115 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:201:67: error: cannot find 'errno' in scope
199 |             else
200 |             {
201 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
202 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
203 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:67: error: cannot find 'errno' in scope
218 |             else
219 |             {
220 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
221 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
222 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:243:67: error: cannot find 'errno' in scope
241 |             else
242 |             {
243 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
244 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
245 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:352:67: error: cannot find 'errno' in scope
350 |             else
351 |             {
352 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
353 |                 continuation.resume(throwing: ModbusError.couldNotRead(error: errorString))
354 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:379:71: error: cannot find 'errno' in scope
377 |                 else
378 |                 {
379 |                     let errorString = String(cString: modbus_strerror(errno))
    |                                                                       `- error: cannot find 'errno' in scope
380 |                     throw ModbusError.couldNotRead(error: errorString)
381 |                 }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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:439:67: error: cannot find 'errno' in scope
437 |             else
438 |             {
439 |                 let errorString = String(cString: modbus_strerror(errno))
    |                                                                   `- error: cannot find 'errno' in scope
440 |                 continuation.resume(throwing: ModbusError.couldNotWrite(error: errorString))
441 |             }
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-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.1 android