Build Information
Failed to build modbus2mqtt, reference 2.6.0 (208a1e), with Swift 6.2 for Wasm on 3 Dec 2025 19:00:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build 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: 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-0":/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:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:302e3f347c593123f3d337e3da1bfe6e802bb8867614e9dfa745c72e13ca8eeb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/embedded-swift-sdk.json
Fetching https://github.com/jollyjinx/JLog
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetching https://github.com/sroebert/mqtt-nio.git
[1/1676] Fetching mqtt-nio
[940/2164] Fetching mqtt-nio, swiftlibmodbus
[1897/2278] Fetching mqtt-nio, swiftlibmodbus, jlog
[2279/19155] Fetching mqtt-nio, swiftlibmodbus, jlog, swift-argument-parser
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.24s)
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.24s)
[1296/16991] Fetching jlog, swift-argument-parser
Fetched https://github.com/jollyjinx/JLog from cache (0.61s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.62s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (0.96s)
Fetching https://github.com/Adorkable/swift-log-format-and-pipe
Fetching https://github.com/apple/swift-log.git
[1/5676] Fetching swift-log
[5677/5866] Fetching swift-log, swift-log-format-and-pipe
Fetched https://github.com/Adorkable/swift-log-format-and-pipe from cache (0.39s)
Fetched https://github.com/apple/swift-log.git from cache (0.39s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (0.76s)
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.05s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (0.39s)
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
[1/2809] Fetching swift-nio-transport-services
[2810/83410] Fetching swift-nio-transport-services, swift-nio
[4423/98698] Fetching swift-nio-transport-services, swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.91s)
[58424/83410] Fetching swift-nio-transport-services, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (4.99s)
Fetched https://github.com/apple/swift-nio.git from cache (5.13s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (5.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.7.0 (0.33s)
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.40s)
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.36s)
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.74s)
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.15s)
Fetched https://github.com/apple/swift-collections.git from cache (1.17s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (1.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.50s)
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.41s)
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/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/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.91.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/jollyjinx/JLog
Working copy of https://github.com/jollyjinx/JLog resolved at 0.0.9
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/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-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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.7.0
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.36.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.6.3
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Write sources
[17/74] Copying DeviceDefinitions
[17/74] Write sources
[24/74] Compiling CNIOWindows shim.c
[25/74] Compiling CNIOWASI CNIOWASI.c
[26/74] Compiling CNIOWindows WSAStartup.c
[27/74] Compiling _AtomicsShims.c
[28/74] Compiling CNIOOpenBSD shim.c
[29/74] Compiling CNIOPosix event_loop_id.c
[30/74] Compiling CNIOLinux liburing_shims.c
[31/74] Compiling CNIOLinux shim.c
[32/74] Compiling CNIODarwin shim.c
[33/74] Compiling CNIOSHA1 c_nio_sha1.c
[34/74] Compiling CNIOLLHTTP c_nio_http.c
[35/74] Write swift-version-24593BA9C3E375BF.txt
[36/74] Compiling CModbus strlcpy.c
[37/74] Compiling CNIOLLHTTP c_nio_api.c
In file included from /host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-tcp.c:28:
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
| ^
/host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-tcp.c:59:11: fatal error: 'netdb.h' file not found
59 | # include <netdb.h>
| ^~~~~~~~~
2 errors generated.
[38/74] Compiling CModbus modbus-tcp.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>
| ^~~~~~~~~~~
[38/74] Compiling CModbus modbus-rtu.c
[38/74] Compiling CNIOLLHTTP c_nio_llhttp.c
[38/74] Compiling c-atomics.c
[38/74] Compiling c-nioatomics.c
[38/74] Compiling CModbus modbus.c
BUILD FAILURE 6.2 wasm