Build Information
Failed to build modbus2mqtt, reference 2.2.0 (9fa711
), with Swift 6.2 (beta) for Wasm on 21 Jun 2025 09:39:39 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 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: wasm
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-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/nicklockwood/SwiftFormat
[490/48941] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (26.05s)
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/93] Fetching jlog
[94/581] Fetching jlog, swiftlibmodbus
[95/2257] Fetching jlog, swiftlibmodbus, mqtt-nio
Fetched https://github.com/jollyjinx/JLog from cache (0.24s)
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.25s)
[1/15380] Fetching swift-argument-parser
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.87s)
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 (1.35s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio.git
[1/2667] Fetching swift-nio-transport-services
[2348/6503] Fetching swift-nio-transport-services, swift-log
[6504/82842] Fetching swift-nio-transport-services, swift-log, swift-nio
[8031/97732] Fetching swift-nio-transport-services, swift-log, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.27s)
[62994/82842] Fetching swift-nio-transport-services, swift-log, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (5.98s)
Fetched https://github.com/apple/swift-log.git from cache (5.98s)
Fetched https://github.com/apple/swift-nio.git from cache (6.07s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.7 (6.51s)
Fetching https://github.com/Adorkable/swift-log-format-and-pipe
[2/190] Fetching swift-log-format-and-pipe
Fetched https://github.com/Adorkable/swift-log-format-and-pipe from cache (0.23s)
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.68s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (0.39s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.40s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.42s)
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.41s)
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.40s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.31s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4436] Fetching swift-system
[356/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.47s)
Fetched https://github.com/apple/swift-collections.git from cache (1.51s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.09s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (3.61s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (6.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 (4.01s)
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.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.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/JLog
Working copy of https://github.com/jollyjinx/JLog resolved at 0.0.7
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-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/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
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-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/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
Building for debugging...
[2/70] Copying DeviceDefinitions
[3/70] Write sources
[23/70] Compiling CModbus modbus-data.c
[24/70] Compiling _AtomicsShims.c
[25/70] Compiling CNIOWindows shim.c
[26/70] Compiling CNIOWindows WSAStartup.c
In file included from /host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-rtu.c:38:
/host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-rtu-private.h:31:10: fatal error: 'termios.h' file not found
31 | #include <termios.h>
| ^~~~~~~~~~~
1 error generated.
[27/70] Compiling CModbus modbus-rtu.c
[27/70] Write swift-version-24593BA9C3E375BF.txt
[27/70] Compiling c-nioatomics.c
[27/70] Compiling CModbus modbus.c
[27/70] Compiling c-atomics.c
[27/70] Compiling CNIOLinux shim.c
[27/70] Compiling CNIOWASI CNIOWASI.c
[27/70] Compiling CNIOSHA1 c_nio_sha1.c
BUILD FAILURE 6.2 wasm