The Swift Package Index logo.Swift Package Index

Build Information

Failed to build modbus2mqtt, reference main (8016cd), with Swift 6.3 for Wasm on 24 Apr 2026 17:02:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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 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 main
========================================
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-4606859-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/apple/swift-argument-parser
Fetching https://github.com/jollyjinx/JLog
Fetching https://github.com/jollyjinx/SwiftLibModbus
[1/114] Fetching jlog
[115/1790] Fetching jlog, mqtt-nio
Fetched https://github.com/jollyjinx/JLog from cache (0.24s)
[51/1676] Fetching mqtt-nio
[873/2196] Fetching mqtt-nio, swiftlibmodbus
[1525/19660] Fetching mqtt-nio, swiftlibmodbus, swift-argument-parser
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.34s)
[3074/19140] Fetching mqtt-nio, swift-argument-parser
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.83s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.84s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.1.2 (1.30s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.9 (0.44s)
Fetching https://github.com/Adorkable/swift-log-format-and-pipe
Fetching https://github.com/apple/swift-log.git
[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.35s)
[1796/6649] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.60s)
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 (3.45s)
Computing version for https://github.com/sroebert/mqtt-nio.git
Computed https://github.com/sroebert/mqtt-nio.git at 2.8.1 (0.59s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio.git
[1/2847] Fetching swift-nio-transport-services
[2848/18287] Fetching swift-nio-transport-services, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.47s)
[309/15440] Fetching swift-nio-ssl
[2781/98659] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (7.93s)
Fetched https://github.com/apple/swift-nio.git from cache (8.11s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (9.00s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (1.60s)
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 (0.95s)
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.81s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.66s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (1.55s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/23680] Fetching swift-collections
[712/29281] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.91s)
[1895/23680] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.95s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (3.80s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.19s)
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.70s)
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-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
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.37.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.4
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.28.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.99.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/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/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.1.2
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/74] Copying DeviceDefinitions
[3/74] Write sources
[24/74] Compiling CNIOWASI CNIOWASI.c
[24/74] Compiling _AtomicsShims.c
[26/74] Compiling CNIOWindows WSAStartup.c
[27/74] Compiling CNIOWindows shim.c
[28/74] Compiling CNIOPosix event_loop_id.c
[29/74] Compiling CNIOOpenBSD shim.c
[30/74] Compiling CNIOLinux shim.c
[31/74] Compiling CNIOLinux liburing_shims.c
[32/74] Write swift-version-24593BA9C3E375BF.txt
[33/74] Compiling CNIOSHA1 c_nio_sha1.c
[34/74] Compiling CNIODarwin shim.c
[35/74] Compiling CNIOLLHTTP c_nio_http.c
[36/74] Compiling CNIOLLHTTP c_nio_api.c
[37/74] Compiling CModbus strlcpy.c
[38/104] Compiling CModbus modbus.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.
[39/104] Compiling CModbus modbus-tcp.c
[39/104] Compiling c-atomics.c
[39/104] Compiling CNIOLLHTTP c_nio_llhttp.c
[39/104] Compiling c-nioatomics.c
BUILD FAILURE 6.3 wasm