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 main (1d878c), with Swift 6.2 (beta) for Android on 21 Jun 2025 09:41:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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: 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/modbus-2-mqtt-bridge
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1d878cd Merge pull request #6 from ThomasSchoeller/patch-1
Cloned https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Revision (git rev-parse @):
1d878cd79d0cf6e0e8487532907a41ae24c90156
SUCCESS checkout https://github.com/jollyjinx/modbus-2-mqtt-bridge.git at main
========================================
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-1":/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 (31.07s)
Fetching https://github.com/jollyjinx/JLog
Fetching https://github.com/sroebert/mqtt-nio.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jollyjinx/SwiftLibModbus
[1/488] Fetching swiftlibmodbus
[480/2164] Fetching swiftlibmodbus, mqtt-nio
[486/2257] Fetching swiftlibmodbus, mqtt-nio, jlog
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.51s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.64s)
Fetched https://github.com/jollyjinx/JLog from cache (1.42s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.42s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (2.33s)
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[117/6503] Fetching swift-log, swift-nio-transport-services
[4932/82842] Fetching swift-log, swift-nio-transport-services, swift-nio
[5201/97732] Fetching swift-log, swift-nio-transport-services, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-log.git from cache (0.86s)
[7806/93896] Fetching swift-nio-transport-services, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (8.91s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (8.95s)
Fetched https://github.com/apple/swift-nio.git from cache (9.07s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.7 (9.85s)
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.33s)
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 (1.03s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (0.67s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.76s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.81s)
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.84s)
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.62s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (2.09s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/16640] Fetching swift-collections
[501/21076] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.79s)
[3828/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.00s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.77s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.02s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.09s)
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.96s)
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/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-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/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at main (6ebb96c)
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-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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.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/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/jollyjinx/SwiftLibModbus
Working copy of https://github.com/jollyjinx/SwiftLibModbus resolved at 2.0.5
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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
Building for debugging...
[2/70] Write sources
[5/70] Copying DeviceDefinitions
[6/70] Write sources
[23/70] Compiling _AtomicsShims.c
[24/70] Compiling CNIOWindows shim.c
[25/70] Compiling CNIOWindows WSAStartup.c
[26/70] Write swift-version-8C5A4AE7A8CE2BA.txt
[27/70] Compiling CModbus strlcpy.c
[28/70] Compiling CNIOWASI CNIOWASI.c
[28/70] Compiling CModbus modbus-data.c
[30/70] Compiling CModbus modbus-rtu.c
[31/70] Compiling CModbus modbus-tcp.c
[32/70] Compiling CNIOLinux liburing_shims.c
[33/70] Compiling CModbus modbus.c
[34/70] Compiling CNIOLinux shim.c
[35/73] Compiling CNIOSHA1 c_nio_sha1.c
[36/83] Compiling CNIOLLHTTP c_nio_http.c
[37/95] Compiling CNIODarwin shim.c
[38/97] Compiling CNIOLLHTTP c_nio_api.c
[39/97] Compiling CNIOLLHTTP c_nio_llhttp.c
[39/97] Write sources
[44/115] Emitting module Atomics
[44/117] Compiling c-nioatomics.c
[45/119] Compiling c-atomics.c
[47/125] Compiling NIOConcurrencyHelpers NIOLock.swift
[48/125] Compiling Atomics ManagedAtomic.swift
[49/125] Compiling Atomics ManagedAtomicLazyReference.swift
[50/126] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[51/126] Compiling Logging LogHandler.swift
[52/126] Compiling Atomics AtomicMemoryOrderings.swift
[53/126] Compiling Atomics DoubleWord.swift
[54/126] Compiling Atomics AtomicOptionalWrappable.swift
[55/126] Compiling Atomics AtomicReference.swift
[56/126] Compiling Atomics UnsafeAtomic.swift
[57/126] Compiling Atomics UnsafeAtomicLazyReference.swift
[58/126] Compiling Atomics OptionalRawRepresentable.swift
[59/126] Compiling Atomics RawRepresentable.swift
[62/126] Compiling Atomics AtomicBool.swift
[63/126] Compiling Atomics AtomicInteger.swift
[69/126] Compiling Atomics AtomicStorage.swift
[70/126] Compiling Atomics AtomicValue.swift
[71/126] Compiling Atomics IntegerOperations.swift
[72/126] Compiling Atomics Unmanaged extensions.swift
[73/126] Compiling NIOConcurrencyHelpers lock.swift
[74/126] Emitting module InternalCollectionsUtilities
[77/126] Emitting module NIOConcurrencyHelpers
[78/126] Emitting module _NIODataStructures
[79/126] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[80/127] Emitting module _NIOBase64
[81/127] Compiling _NIOBase64 Base64.swift
[85/127] Compiling Atomics IntegerConformances.swift
[86/127] Compiling Atomics PointerConformances.swift
[87/127] Compiling Atomics Primitives.native.swift
[88/129] Compiling _NIODataStructures PriorityQueue.swift
[89/129] Compiling _NIODataStructures _TinyArray.swift
[90/129] Compiling _NIODataStructures Heap.swift
[94/130] Wrapping AST for Atomics for debugging
[95/137] Wrapping AST for InternalCollectionsUtilities for debugging
[96/139] Wrapping AST for _NIOBase64 for debugging
[98/145] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[99/145] Compiling NIOConcurrencyHelpers atomics.swift
[99/145] Wrapping AST for _NIODataStructures for debugging
[101/145] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[103/146] Compiling DequeModule Deque+Equatable.swift
[104/146] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[105/148] Compiling DequeModule Deque+CustomReflectable.swift
[106/148] Compiling DequeModule Deque+Descriptions.swift
[106/148] Wrapping AST for NIOConcurrencyHelpers for debugging
[108/148] Emitting module ArgumentParserToolInfo
[109/148] Compiling ArgumentParserToolInfo ToolInfo.swift
[110/149] Wrapping AST for ArgumentParserToolInfo for debugging
[112/149] Compiling DequeModule _DequeBuffer.swift
[113/149] Compiling DequeModule _DequeBufferHeader.swift
[114/187] Compiling ArgumentParser CommandConfiguration.swift
[115/187] Compiling ArgumentParser CommandGroup.swift
[116/187] Compiling ArgumentParser BashCompletionsGenerator.swift
[117/187] Compiling ArgumentParser CompletionsGenerator.swift
[118/187] Compiling ArgumentParser FishCompletionsGenerator.swift
[119/187] Compiling ArgumentParser ZshCompletionsGenerator.swift
[120/187] Compiling ArgumentParser Argument.swift
[121/187] Compiling ArgumentParser ArgumentHelp.swift
[122/187] Compiling ArgumentParser ArgumentVisibility.swift
[123/187] Compiling ArgumentParser CompletionKind.swift
[124/187] Emitting module DequeModule
[126/188] Compiling Logging MetadataProvider.swift
[127/188] Compiling Logging Locks.swift
[128/188] Emitting module Logging
[128/188] Wrapping AST for DequeModule for debugging
[130/248] Compiling Logging Logging.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[131/248] 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
[132/248] 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