Build Information
Failed to build modbus2mqtt, reference 2.7.5 (8016cd), with Swift 6.3 for Wasm on 24 Apr 2026 17:00:52 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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Reference: 2.7.5
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.7.5 -> FETCH_HEAD
HEAD is now at 8016cd4 Bump SwiftLibModbus to 2.1.2
Cloned https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
Revision (git rev-parse @):
8016cd4ce86b2350b79996a80e18a9038c9dce10
SUCCESS checkout https://github.com/jollyjinx/modbus-2-mqtt-bridge.git at 2.7.5
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
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/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/sroebert/mqtt-nio.git
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetching https://github.com/jollyjinx/JLog
Fetching https://github.com/apple/swift-argument-parser
[1/1676] Fetching mqtt-nio
[270/2196] Fetching mqtt-nio, swiftlibmodbus
[2198/2310] Fetching mqtt-nio, swiftlibmodbus, jlog
[2311/19774] Fetching mqtt-nio, swiftlibmodbus, jlog, swift-argument-parser
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.66s)
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.68s)
[813/17578] Fetching jlog, swift-argument-parser
Fetched https://github.com/jollyjinx/JLog from cache (1.74s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.77s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.1.2 (2.60s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (0.73s)
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
[191/6839] Fetching swift-log-format-and-pipe, swift-log
Fetched https://github.com/Adorkable/swift-log-format-and-pipe from cache (0.46s)
[2062/6649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.78s)
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 (4.70s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (0.91s)
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/2847] Fetching swift-nio-transport-services
[2848/18287] Fetching swift-nio-transport-services, swift-nio-ssl
[5164/101506] Fetching swift-nio-transport-services, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (3.70s)
[62875/98659] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.77s)
[48268/83219] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (11.04s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (12.61s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.93s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (1.64s)
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.94s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.79s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (1.73s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/23680] Fetching swift-collections
[949/29281] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.33s)
[11604/23680] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.77s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (3.59s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.08s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.88s)
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/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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
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.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.99.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.28.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.12.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-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.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.4.1
Creating working copy for https://github.com/jollyjinx/SwiftLibModbus
Working copy of https://github.com/jollyjinx/SwiftLibModbus resolved at 2.1.2
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.4
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Copying DeviceDefinitions
[3/74] Write sources
[24/74] Compiling CNIOWindows shim.c
[25/74] Compiling _AtomicsShims.c
[26/74] Compiling CNIOWASI CNIOWASI.c
[27/74] Compiling CNIOWindows WSAStartup.c
[28/74] Compiling CNIOOpenBSD shim.c
[29/74] Compiling CNIOLinux liburing_shims.c
[29/74] Compiling CNIOLinux shim.c
[29/74] Compiling CNIOPosix event_loop_id.c
[32/74] Compiling CNIOLLHTTP c_nio_http.c
[32/74] Compiling CNIOSHA1 c_nio_sha1.c
[34/74] Compiling CNIODarwin shim.c
[35/74] Compiling CModbus strlcpy.c
[36/74] Write swift-version-24593BA9C3E375BF.txt
[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.3-RELEASE_wasm.artifactbundle/swift-6.3-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
[38/74] Compiling CModbus modbus-rtu.c
[38/74] Compiling CModbus modbus.c
[38/74] Compiling CModbus modbus-data.c
[38/74] Compiling c-nioatomics.c
[38/74] Compiling CNIOLLHTTP c_nio_llhttp.c
[38/74] Compiling c-atomics.c
[39/78] Compiling _NIODataStructures _TinyArray.swift
[40/78] Compiling _NIODataStructures PriorityQueue.swift
[41/78] Emitting module _NIODataStructures
[42/78] Compiling _NIODataStructures Heap.swift
BUILD FAILURE 6.3 wasm