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 2.2.0 (9fa711), with Swift 6.1 for Wasm on 29 May 2025 07:23:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
https://github.com/jollyjinx/modbus-2-mqtt-bridge.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swiftformat",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    },
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "mqtt-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.8.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sroebert/mqtt-nio.git"
    },
    {
      "identity" : "jlog",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jollyjinx/JLog"
    },
    {
      "identity" : "swiftlibmodbus",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jollyjinx/SwiftLibModbus"
    }
  ],
  "manifest_display_name" : "modbus2mqtt",
  "name" : "modbus2mqtt",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "modbus2mqtt",
      "targets" : [
        "modbus2mqtt"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "modbus2mqttTests",
      "module_type" : "SwiftTarget",
      "name" : "modbus2mqttTests",
      "path" : "Tests/modbus2mqttTests",
      "sources" : [
        "modbus2mqttTests.swift"
      ],
      "target_dependencies" : [
        "modbus2mqtt"
      ],
      "type" : "test"
    },
    {
      "c99name" : "modbus2mqtt",
      "module_type" : "SwiftTarget",
      "name" : "modbus2mqtt",
      "path" : "Sources/modbus2mqtt",
      "product_dependencies" : [
        "ArgumentParser",
        "MQTTNIO",
        "JLog",
        "SwiftLibModbus"
      ],
      "product_memberships" : [
        "modbus2mqtt"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/modbus2mqtt/DeviceDefinitions",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "BitMappedValue.swift",
        "MQTTRequestResponse.swift",
        "ModbusDefinition.swift",
        "ModbusValue.swift",
        "modbus2mqtt.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/nicklockwood/SwiftFormat
[1/48182] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (24.37s)
Fetching https://github.com/jollyjinx/SwiftLibModbus
Fetching https://github.com/jollyjinx/JLog
[1/488] Fetching swiftlibmodbus
[16/581] Fetching swiftlibmodbus, jlog
Fetching https://github.com/apple/swift-argument-parser
Fetched https://github.com/jollyjinx/JLog from cache (0.32s)
Fetching https://github.com/sroebert/mqtt-nio.git
Fetched https://github.com/jollyjinx/SwiftLibModbus from cache (0.35s)
[1/1676] Fetching mqtt-nio
Fetched https://github.com/sroebert/mqtt-nio.git from cache (0.49s)
[1/15379] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.13s)
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-ssl.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[232/6503] Fetching swift-log, swift-nio-transport-services
[6504/21346] Fetching swift-log, swift-nio-transport-services, swift-nio-ssl
[7989/97439] Fetching swift-log, swift-nio-transport-services, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (0.72s)
[5507/93603] Fetching swift-nio-transport-services, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (7.28s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (7.31s)
Fetched https://github.com/apple/swift-nio.git from cache (7.37s)
Computing version for https://github.com/jollyjinx/JLog
Computed https://github.com/jollyjinx/JLog at 0.0.7 (15.70s)
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.39s)
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.57s)
Computing version for https://github.com/jollyjinx/SwiftLibModbus
Computed https://github.com/jollyjinx/SwiftLibModbus at 2.0.5 (0.42s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.48s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.50s)
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.69s)
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.44s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.33s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
[4041/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.51s)
[2821/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.50s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (3.53s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.49s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.00s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (1.28s)
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-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/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-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.31.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/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at main (1d02d0f)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.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.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/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
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
Building for debugging...
[2/70] Compiling CModbus modbus-data.c
[3/70] Compiling CModbus strlcpy.c
[4/70] Copying DeviceDefinitions
[4/70] Write sources
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.
[8/70] Compiling CModbus modbus-rtu.c
[8/70] Compiling _AtomicsShims.c
[8/70] Compiling CModbus modbus.c
[8/70] Compiling CNIOLLHTTP c_nio_api.c
[8/70] Compiling CNIOWindows shim.c
In file included from /host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-tcp.c:28:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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.
[8/70] Compiling CModbus modbus-tcp.c
[8/70] Compiling c-atomics.c
[8/70] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin SwiftFormatPlugin
Building for debugging...
[2/64] Write sources
[19/64] Compiling CNIOWindows shim.c
[19/64] Compiling CNIOWindows WSAStartup.c
[21/64] Compiling CNIOWASI CNIOWASI.c
[21/64] Compiling _AtomicsShims.c
[23/64] Compiling CNIOLinux liburing_shims.c
[24/64] Compiling CNIOLinux shim.c
[25/64] Compiling CNIOSHA1 c_nio_sha1.c
[26/64] Compiling CNIODarwin shim.c
[27/64] Compiling CNIOLLHTTP c_nio_http.c
In file included from /host/spi-builder-workspace/.build/checkouts/SwiftLibModbus/Sources/CModbus/modbus-tcp.c:28:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/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.
[28/64] Compiling CModbus modbus-tcp.c
[28/64] Compiling CNIOLLHTTP c_nio_llhttp.c
[28/64] Compiling c-nioatomics.c
[28/64] Compiling CModbus modbus-rtu.c
[28/64] Compiling CModbus modbus.c
[28/64] Compiling c-atomics.c
[28/64] Compiling CNIOLLHTTP c_nio_api.c
[28/64] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm