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.2.0 (9fa711), with Swift 6.2 (beta) for Android on 21 Jun 2025 09:40:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" 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.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Reference: 2.2.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.2.0      -> FETCH_HEAD
HEAD is now at 9fa7119 updated readme with added new bits option.
Cloned https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Revision (git rev-parse @):
9fa7119ac5fcdb3c284745cf4c50949e0fefa628
SUCCESS checkout https://github.com/jollyjinx/modbus-2-mqtt-bridge.git at 2.2.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-4609320-0":/host -w "$PWD" 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:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/nicklockwood/SwiftFormat
[1/48941] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (30.41s)
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/sroebert/mqtt-nio.git
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetching https://github.com/jollyjinx/JLog
[1/1676] Fetching mqtt-nio
[1677/1769] Fetching mqtt-nio, jlog
[1757/2257] Fetching mqtt-nio, jlog, swiftlibmodbus
Fetched https://github.com/jollyjinx/JLog from cache (0.37s)
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.40s)
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.40s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.89s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (3.34s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2667] Fetching swift-nio-transport-services
[2668/6503] Fetching swift-nio-transport-services, swift-log
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.28s)
[921/3836] Fetching swift-log
[3837/18726] Fetching swift-log, swift-nio-ssl
[3986/95065] Fetching swift-log, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (1.97s)
[88939/91229] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.00s)
[75576/76339] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (4.10s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.7 (4.50s)
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.20s)
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 (0.56s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (0.32s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.35s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.38s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (0.42s)
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.36s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.22s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4436] Fetching swift-system
[4437/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.38s)
[1332/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.13s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.51s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.34s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.65s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.32.0 (0.52s)
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/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at main (6ebb96c)
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-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
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.32.0
Creating working copy for https://github.com/jollyjinx/JLog
Working copy of https://github.com/jollyjinx/JLog resolved at 0.0.7
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.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.2.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.6.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.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.5.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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
Building for debugging...
[2/70] Write sources
[11/70] Copying DeviceDefinitions
[13/70] Write sources
[23/70] Compiling CNIOWindows shim.c
[24/70] Compiling CNIOWindows WSAStartup.c
[24/70] Compiling _AtomicsShims.c
[26/70] Compiling CNIOWASI CNIOWASI.c
[27/70] Compiling CNIOLinux liburing_shims.c
[28/70] Compiling CNIOSHA1 c_nio_sha1.c
[29/70] Write swift-version-8C5A4AE7A8CE2BA.txt
[30/70] Compiling CNIOLLHTTP c_nio_http.c
[31/70] Compiling CNIODarwin shim.c
[32/70] Compiling CModbus strlcpy.c
[33/70] Compiling CNIOLLHTTP c_nio_api.c
[34/72] Compiling CNIOLinux shim.c
[35/95] Compiling CModbus modbus.c
[36/95] Compiling CNIOLLHTTP c_nio_llhttp.c
[37/95] Compiling CModbus modbus-tcp.c
[38/95] Compiling CModbus modbus-data.c
[39/95] Write sources
[40/95] Compiling CModbus modbus-rtu.c
[42/115] Emitting module InternalCollectionsUtilities
[43/116] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/116] 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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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
[44/116] Compiling c-nioatomics.c
[45/116] Write sources
[46/118] Compiling c-atomics.c
[48/118] Emitting module ArgumentParserToolInfo
[49/124] Compiling Atomics IntegerConformances.swift
[50/124] Compiling Atomics PointerConformances.swift
[51/124] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[52/124] Compiling Logging LogHandler.swift
[53/124] Compiling Atomics AtomicMemoryOrderings.swift
[54/124] Compiling Atomics DoubleWord.swift
[55/124] Compiling Atomics UnsafeAtomic.swift
[56/124] Compiling Atomics UnsafeAtomicLazyReference.swift
[57/124] Compiling Atomics ManagedAtomic.swift
[58/124] Compiling Atomics ManagedAtomicLazyReference.swift
[59/126] Compiling NIOConcurrencyHelpers NIOLock.swift
[60/126] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[61/126] Compiling Atomics AtomicInteger.swift
[62/126] Compiling Atomics AtomicOptionalWrappable.swift
[63/126] Compiling Atomics AtomicReference.swift
[64/126] Emitting module Atomics
[65/126] Compiling Atomics AtomicStorage.swift
[66/126] Compiling Atomics AtomicValue.swift
[67/126] Compiling Atomics AtomicBool.swift
[71/126] Compiling Atomics OptionalRawRepresentable.swift
[72/126] Compiling Atomics RawRepresentable.swift
[73/126] Compiling Atomics Primitives.native.swift
[77/127] Emitting module _NIOBase64
[78/127] Compiling _NIOBase64 Base64.swift
[80/128] Write sources
[82/128] Compiling NIOConcurrencyHelpers lock.swift
[83/128] Emitting module _NIODataStructures
[89/128] Wrapping AST for _NIOBase64 for debugging
[91/128] Compiling ArgumentParserToolInfo ToolInfo.swift
[91/129] Wrapping AST for InternalCollectionsUtilities for debugging
[94/138] Compiling _NIODataStructures PriorityQueue.swift
[95/140] Compiling _NIODataStructures _TinyArray.swift
[96/140] Compiling _NIODataStructures Heap.swift
[97/145] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[98/145] Wrapping AST for ArgumentParserToolInfo for debugging
[100/145] Emitting module NIOConcurrencyHelpers
[100/157] Wrapping AST for _NIODataStructures for debugging
[102/183] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[103/183] Compiling NIOConcurrencyHelpers atomics.swift
[105/184] Compiling ArgumentParser ParsableArguments.swift
[106/184] Compiling ArgumentParser ParsableArgumentsValidation.swift
[107/186] Compiling ArgumentParser Argument.swift
[108/186] Compiling ArgumentParser ArgumentHelp.swift
[109/186] Compiling ArgumentParser FishCompletionsGenerator.swift
[110/186] Compiling ArgumentParser ZshCompletionsGenerator.swift
[111/186] Compiling ArgumentParser Parsed.swift
[112/186] Compiling ArgumentParser ParsedValues.swift
[112/187] Wrapping AST for NIOConcurrencyHelpers for debugging
[114/187] Wrapping AST for Atomics for debugging
[116/187] Compiling ArgumentParser OptionGroup.swift
[117/187] Compiling ArgumentParser AsyncParsableCommand.swift
[118/187] Compiling DequeModule _DequeSlot.swift
[119/187] Compiling DequeModule _UnsafeWrappedBuffer.swift
[120/187] Compiling ArgumentParser CommandConfiguration.swift
[121/187] Compiling ArgumentParser CommandGroup.swift
[122/187] Compiling ArgumentParser EnumerableFlag.swift
[123/187] Compiling ArgumentParser ExpressibleByArgument.swift
[124/187] Compiling ArgumentParser BashCompletionsGenerator.swift
[125/187] Compiling ArgumentParser CompletionsGenerator.swift
[126/187] Emitting module DequeModule
[127/188] Wrapping AST for DequeModule for debugging
[129/248] Compiling Logging MetadataProvider.swift
[130/248] Compiling Logging Logging.swift
[131/248] Compiling Logging Locks.swift
[132/254] Wrapping AST for Logging for debugging
[134/255] Compiling LoggingFormatAndPipe Handler.swift
/host/spi-builder-workspace/.build/checkouts/swift-log-format-and-pipe/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:11:8: error: no such module 'Glibc'
 9 | import Darwin
10 | #else
11 | import Glibc
   |        `- error: no such module 'Glibc'
12 | #endif
13 |
[135/255] Compiling NIOCore ByteBuffer-hex.swift
[136/255] Compiling NIOCore ByteBuffer-int.swift
[137/255] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[138/255] Compiling NIOCore ByteBuffer-multi-int.swift
[139/255] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[140/260] Emitting module LoggingFormatAndPipe
/host/spi-builder-workspace/.build/checkouts/swift-log-format-and-pipe/Sources/LoggingFormatAndPipe/LoggerTextOutputStreamPipe.swift:11:8: error: no such module 'Glibc'
 9 | import Darwin
10 | #else
11 | import Glibc
   |        `- error: no such module 'Glibc'
12 | #endif
13 |
[141/260] 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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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-DEVELOPMENT-SNAPSHOT-2025-05-15-a-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