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 modbus2mqtt, reference 2.6.0 (208a1e), with Swift 6.2 for Android on 3 Dec 2025 19:02:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Reference: 2.6.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.6.0      -> FETCH_HEAD
HEAD is now at 208a1e3 updated readme to refer to ghcr.io instead of docker as images are now built automatically on github.
Cloned https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Revision (git rev-parse @):
208a1e35ef0a91fa85c0f1ea817a78c0dd695bb2
SUCCESS checkout https://github.com/jollyjinx/modbus-2-mqtt-bridge.git at 2.6.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
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-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c3fe93b3f7c9edfd66b4287786a9b8caf7805f96d7219e301e257b4e0de911bb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetching https://github.com/jollyjinx/JLog
[1/488] Fetching swiftlibmodbus
[489/602] Fetching swiftlibmodbus, jlog
[603/17479] Fetching swiftlibmodbus, jlog, swift-argument-parser
Fetched https://github.com/jollyjinx/JLog from cache (0.34s)
[4370/17365] Fetching swiftlibmodbus, swift-argument-parser
Fetching https://github.com/sroebert/mqtt-nio.git
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.99s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.00s)
[1/1676] Fetching mqtt-nio
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.60s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (1.93s)
Fetching https://github.com/apple/swift-log.git
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 from cache (0.21s)
[1/5676] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.48s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (0.93s)
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 (2.63s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (0.50s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio.git
[1/2809] Fetching swift-nio-transport-services
[2810/83410] Fetching swift-nio-transport-services, swift-nio
[2811/98698] Fetching swift-nio-transport-services, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (6.36s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (6.39s)
Fetched https://github.com/apple/swift-nio.git from cache (6.48s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (6.96s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.7.0 (0.34s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.36s)
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.35s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.70s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.91.0 (0.83s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/5181] Fetching swift-system
[5182/23506] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.44s)
Fetched https://github.com/apple/swift-collections.git from cache (1.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (1.90s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.59s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.43s)
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.26.0
Creating working copy for https://github.com/jollyjinx/SwiftLibModbus
Working copy of https://github.com/jollyjinx/SwiftLibModbus resolved at 2.0.5
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.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.2
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.36.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.7.0
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/sroebert/mqtt-nio.git
Working copy of https://github.com/sroebert/mqtt-nio.git resolved at 2.8.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.91.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Write sources
[13/74] Copying DeviceDefinitions
[13/74] Write sources
[24/74] Compiling CNIOWASI CNIOWASI.c
[24/74] Compiling CNIOWindows WSAStartup.c
[26/74] Compiling CNIOWindows shim.c
[27/74] Compiling _AtomicsShims.c
[28/74] Compiling CNIOPosix event_loop_id.c
[29/74] Compiling CNIOOpenBSD shim.c
[30/74] Compiling CNIOLinux liburing_shims.c
[31/74] Compiling CNIOSHA1 c_nio_sha1.c
[32/74] Compiling CNIODarwin shim.c
[33/74] Compiling CNIOLLHTTP c_nio_http.c
[34/74] Compiling CModbus strlcpy.c
[34/74] Write swift-version--6B0C4D200E742BB1.txt
[36/74] Compiling CNIOLinux shim.c
[37/74] Compiling CNIOLLHTTP c_nio_api.c
[38/75] Compiling CModbus modbus-rtu.c
[39/75] Compiling CModbus modbus.c
[40/79] Compiling CModbus modbus-tcp.c
[41/80] Compiling CModbus modbus-data.c
[42/91] Compiling CNIOLLHTTP c_nio_llhttp.c
[42/91] Write sources
[47/121] Emitting module Atomics
[47/123] Compiling c-nioatomics.c
[48/125] Compiling c-atomics.c
[50/131] Compiling Atomics ManagedAtomic.swift
[51/131] Compiling Atomics ManagedAtomicLazyReference.swift
[52/133] Compiling NIOConcurrencyHelpers NIOLock.swift
[53/133] Compiling Atomics IntegerOperations.swift
[54/133] Compiling Atomics Unmanaged extensions.swift
[55/133] Compiling Atomics AtomicStorage.swift
[56/133] Compiling Atomics AtomicValue.swift
[57/133] Compiling Atomics OptionalRawRepresentable.swift
[58/133] Compiling Atomics RawRepresentable.swift
[59/133] Compiling Atomics AtomicBool.swift
[60/133] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[61/133] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[69/133] Compiling Atomics AtomicMemoryOrderings.swift
[70/133] Compiling Atomics DoubleWord.swift
[71/133] Emitting module InternalCollectionsUtilities
[72/133] Compiling Atomics IntegerConformances.swift
[73/133] Compiling Atomics PointerConformances.swift
[74/133] Compiling Atomics AtomicOptionalWrappable.swift
[75/133] Compiling Atomics AtomicReference.swift
[76/133] Compiling NIOConcurrencyHelpers lock.swift
[77/133] Compiling Atomics Primitives.native.swift
[78/133] Compiling Atomics AtomicInteger.swift
[86/134] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[87/134] Emitting module NIOConcurrencyHelpers
[88/134] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[89/134] Compiling NIOConcurrencyHelpers atomics.swift
[94/136] Emitting module _NIOBase64
[95/136] Compiling _NIOBase64 Base64.swift
[98/137] Compiling _NIODataStructures PriorityQueue.swift
[99/137] Compiling _NIODataStructures Heap.swift
[100/137] Emitting module _NIODataStructures
[101/137] Compiling _NIODataStructures _TinyArray.swift
[104/138] Emitting module ArgumentParserToolInfo
[105/138] Compiling ArgumentParserToolInfo ToolInfo.swift
[105/138] Wrapping AST for NIOConcurrencyHelpers for debugging
[106/139] Wrapping AST for _NIODataStructures for debugging
[107/140] Wrapping AST for InternalCollectionsUtilities for debugging
[108/142] Wrapping AST for _NIOBase64 for debugging
[110/154] Wrapping AST for Atomics for debugging
[112/154] Compiling DequeModule Deque+CustomReflectable.swift
[113/154] Compiling DequeModule Deque+Descriptions.swift
[113/154] Wrapping AST for ArgumentParserToolInfo for debugging
[115/200] Compiling ArgumentParser ArgumentHelp.swift
[116/200] Compiling ArgumentParser OptionGroup.swift
[117/200] Compiling ArgumentParser NameSpecification.swift
[118/200] Compiling ArgumentParser Option.swift
[119/200] Compiling ArgumentParser BashCompletionsGenerator.swift
[120/200] Compiling ArgumentParser CompletionsGenerator.swift
[121/200] Compiling ArgumentParser AsyncParsableCommand.swift
[122/200] Compiling ArgumentParser CommandConfiguration.swift
[123/200] Compiling ArgumentParser ArgumentVisibility.swift
[124/200] Compiling ArgumentParser CompletionKind.swift
[125/200] Compiling ArgumentParser FishCompletionsGenerator.swift
[126/200] Compiling ArgumentParser ZshCompletionsGenerator.swift
[127/200] Compiling ArgumentParser Argument.swift
[128/200] Compiling ArgumentParser ArgumentDiscussion.swift
[129/200] Emitting module DequeModule
[131/201] Compiling Logging LogHandler.swift
[131/201] Wrapping AST for DequeModule for debugging
[133/246] Compiling Logging MetadataProvider.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[134/264] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 |         let systemStderr = Glibc.stderr!
1359 |         #elseif canImport(Android)
1360 |         let systemStderr = Android.stderr
     |                                    `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 |         #elseif canImport(Musl)
1362 |         let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:64:23: note: var declared here
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
    |                       `- note: var declared here
 65 |
 66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 |         let systemStdout = Glibc.stdout!
1379 |         #elseif canImport(Android)
1380 |         let systemStdout = Android.stdout
     |                                    `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 |         #elseif canImport(Musl)
1382 |         let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
[135/264] Compiling Logging Locks.swift
[136/264] Compiling Logging Logging.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1360:36: error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1358 |         let systemStderr = Glibc.stderr!
1359 |         #elseif canImport(Android)
1360 |         let systemStderr = Android.stderr
     |                                    `- error: reference to var 'stderr' is not concurrency-safe because it involves shared mutable state
1361 |         #elseif canImport(Musl)
1362 |         let systemStderr = Musl.stderr!
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:64:23: note: var declared here
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
    |                       `- note: var declared here
 65 |
 66 | /* C99 and earlier plus current C++ standards say these must be macros. */
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:1380:36: error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1378 |         let systemStdout = Glibc.stdout!
1379 |         #elseif canImport(Android)
1380 |         let systemStdout = Android.stdout
     |                                    `- error: reference to var 'stdout' is not concurrency-safe because it involves shared mutable state
1381 |         #elseif canImport(Musl)
1382 |         let systemStdout = Musl.stdout!
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/stdio.h:63:23: note: var declared here
 61 | #if __ANDROID_API__ >= 23
 62 | extern FILE* _Nonnull stdin __INTRODUCED_IN(23);
 63 | extern FILE* _Nonnull stdout __INTRODUCED_IN(23);
    |                       `- note: var declared here
 64 | extern FILE* _Nonnull stderr __INTRODUCED_IN(23);
 65 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[137/264] Emitting module SwiftLibModbus
/host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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
[138/264] Compiling SwiftLibModbus ModbusDevice.swift
/host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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/.build/checkouts/SwiftLibModbus/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.2-RELEASE-android-0.1.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.2 android