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 HAP, reference 0.7.0 (f0ffaa), with Swift 6.1 for Wasm on 27 May 2025 07:56:31 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/bouke/hap.git
Reference: 0.7.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/bouke/hap
 * tag               0.7.0      -> FETCH_HEAD
HEAD is now at f0ffaa2 Changelog updated for 0.7.0
Cloned https://github.com/bouke/hap.git
Revision (git rev-parse @):
f0ffaa2f3a0cd364ade2b33263ca7a3f21ab3834
SUCCESS checkout https://github.com/bouke/hap.git at 0.7.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bouke/hap.git
https://github.com/bouke/hap.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "srp",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Bouke/SRP.git"
    },
    {
      "identity" : "hkdf",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Bouke/HKDF.git"
    },
    {
      "identity" : "bluecryptor",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.21",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/IBM-Swift/BlueCryptor.git"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/crossroadlabs/Regex.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "netservice",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Bouke/NetService.git"
    }
  ],
  "manifest_display_name" : "HAP",
  "name" : "HAP",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "HAP",
      "targets" : [
        "HAP"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "hap-server",
      "targets" : [
        "hap-server"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "hap_server",
      "module_type" : "SwiftTarget",
      "name" : "hap-server",
      "path" : "Sources/hap-server",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "hap-server"
      ],
      "sources" : [
        "FoundationCompat.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "HAP"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "HTTP",
      "module_type" : "SwiftTarget",
      "name" : "HTTP",
      "path" : "Sources/HTTP",
      "product_dependencies" : [
        "NIO",
        "NIOHTTP1",
        "NIOFoundationCompat"
      ],
      "product_memberships" : [
        "HAP",
        "hap-server"
      ],
      "sources" : [
        "Body/HTTPBody.swift",
        "Body/HTTPBodyRepresentable.swift",
        "Body/HTTPBodyStorage.swift",
        "Exports.swift",
        "Message/HTTPHeaderName.swift",
        "Message/HTTPHeaders.swift",
        "Message/HTTPMessage.swift",
        "Message/HTTPRequest.swift",
        "Message/HTTPResponse.swift",
        "Responder/HTTPServerResponder.swift",
        "Utilities/Debug.swift",
        "Utilities/RFC1123.swift",
        "Utilities/RequestHandler.swift"
      ],
      "target_dependencies" : [
        "COperatingSystem"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HAPTests",
      "module_type" : "SwiftTarget",
      "name" : "HAPTests",
      "path" : "Tests/HAPTests",
      "sources" : [
        "AccessoriesTests.swift",
        "CharacteristicTests.swift",
        "DeviceTests.swift",
        "EndpointTests.swift",
        "PairSetupControllerTests.swift",
        "PairVerifyControllerTests.swift",
        "PairingsEndpointTests.swift",
        "Server/CryptographerTests.swift",
        "StorageTests.swift",
        "TLV8Tests.swift",
        "Utils/MockContext.swift"
      ],
      "target_dependencies" : [
        "HAP"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HAP",
      "module_type" : "SwiftTarget",
      "name" : "HAP",
      "path" : "Sources/HAP",
      "product_dependencies" : [
        "SRP",
        "Cryptor",
        "Logging",
        "HKDF",
        "Regex",
        "NetService"
      ],
      "product_memberships" : [
        "HAP",
        "hap-server"
      ],
      "sources" : [
        "Accessories/AirQualitySensor.swift",
        "Accessories/BatteryService.swift",
        "Accessories/BridgingState.swift",
        "Accessories/ContactSensor.swift",
        "Accessories/Door.swift",
        "Accessories/Fan.swift",
        "Accessories/GarageDoorOpener.swift",
        "Accessories/HumiditySensor.swift",
        "Accessories/LightSensor.swift",
        "Accessories/Lightbulb.swift",
        "Accessories/LockMechanism.swift",
        "Accessories/MotionSensor.swift",
        "Accessories/OccupancySensor.swift",
        "Accessories/Outlet.swift",
        "Accessories/SecuritySystem.swift",
        "Accessories/SmokeSensor.swift",
        "Accessories/Switch.swift",
        "Accessories/Television.swift",
        "Accessories/Thermometer.swift",
        "Accessories/Thermostat.swift",
        "Accessories/Window.swift",
        "Accessories/WindowCovering.swift",
        "Base/Accessory.swift",
        "Base/Characteristic.swift",
        "Base/CharacteristicValueType.swift",
        "Base/Constants.swift",
        "Base/Generated.swift",
        "Base/Info.swift",
        "Base/Service.swift",
        "Controllers/PairSetupController.swift",
        "Controllers/PairVerifyController.swift",
        "Controllers/PairingsController.swift",
        "Endpoints/HTTPExtensions.swift",
        "Endpoints/Protocol.swift",
        "Endpoints/accessories().swift",
        "Endpoints/characteristics().swift",
        "Endpoints/identify().swift",
        "Endpoints/pairSetup().swift",
        "Endpoints/pairVerify().swift",
        "Endpoints/pairings().swift",
        "Endpoints/root().swift",
        "Security/ChaCha20Poly1305.swift",
        "Security/Cryptographer.swift",
        "Security/Ed25519.swift",
        "Server/ChannelHandlers.swift",
        "Server/Configuration.swift",
        "Server/Device.SetupCode.swift",
        "Server/Device.swift",
        "Server/DeviceDelegate.swift",
        "Server/JSON.swift",
        "Server/Pairing.swift",
        "Server/Server.swift",
        "Server/Storage.swift",
        "Utils/ByteBuffer+Extensions.swift",
        "Utils/Crypto.swift",
        "Utils/Data+Extensions.swift",
        "Utils/DataScanner.swift",
        "Utils/Event.swift",
        "Utils/FileManager+Extensions.swift",
        "Utils/Integer+Data.swift",
        "Utils/QRCode.swift",
        "Utils/Random.swift",
        "Utils/Sequence+Extensions.swift",
        "Utils/String+padLeft.swift",
        "Utils/TLV8.swift",
        "Utils/WeakObjectSet.swift"
      ],
      "target_dependencies" : [
        "CQRCode",
        "HTTP",
        "CLibSodium"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CQRCode",
      "module_type" : "ClangTarget",
      "name" : "CQRCode",
      "path" : "Sources/CQRCode",
      "product_memberships" : [
        "HAP",
        "hap-server"
      ],
      "sources" : [
        "qrcode.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "COperatingSystem",
      "module_type" : "SwiftTarget",
      "name" : "COperatingSystem",
      "path" : "Sources/COperatingSystem",
      "product_memberships" : [
        "HAP",
        "hap-server"
      ],
      "sources" : [
        "libc.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CLibSodium",
      "module_type" : "SystemLibraryTarget",
      "name" : "CLibSodium",
      "path" : "Sources/CLibSodium",
      "product_memberships" : [
        "HAP",
        "hap-server"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.0"
}
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/IBM-Swift/BlueCryptor.git
Fetching https://github.com/Bouke/HKDF.git
Fetching https://github.com/Bouke/NetService.git
Fetching https://github.com/crossroadlabs/Regex.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
[1/134] Fetching hkdf
[135/1002] Fetching hkdf, netservice
[1003/2298] Fetching hkdf, netservice, regex
[1963/6134] Fetching hkdf, netservice, regex, swift-log
[2462/7788] Fetching hkdf, netservice, regex, swift-log, bluecryptor
Fetched https://github.com/Bouke/NetService.git from cache (0.28s)
[1951/6920] Fetching hkdf, regex, swift-log, bluecryptor
Fetching https://github.com/Bouke/SRP.git
Fetched https://github.com/Bouke/HKDF.git from cache (0.47s)
[6451/82823] Fetching regex, swift-log, bluecryptor, swift-nio
Fetched https://github.com/IBM-Swift/BlueCryptor.git from cache (0.54s)
[5557/81169] Fetching regex, swift-log, swift-nio
[6318/81802] Fetching regex, swift-log, swift-nio, srp
Fetched https://github.com/Bouke/SRP.git from cache (0.44s)
[9359/81169] Fetching regex, swift-log, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (7.01s)
Fetched https://github.com/crossroadlabs/Regex.git from cache (7.02s)
Fetched https://github.com/apple/swift-nio.git from cache (7.14s)
Computing version for https://github.com/Bouke/HKDF.git
Computed https://github.com/Bouke/HKDF.git at 3.1.0 (10.45s)
Computing version for https://github.com/crossroadlabs/Regex.git
Computed https://github.com/crossroadlabs/Regex.git at 1.2.0 (0.83s)
Computing version for https://github.com/Bouke/NetService.git
Computed https://github.com/Bouke/NetService.git at 0.8.1 (0.90s)
Computing version for https://github.com/Bouke/SRP.git
Computed https://github.com/Bouke/SRP.git at 3.2.1 (0.96s)
Fetching https://github.com/attaswift/BigInt.git
Fetching https://github.com/apple/swift-crypto.git
[1/4776] Fetching bigint
[3822/18712] Fetching bigint, swift-crypto
Fetched https://github.com/attaswift/BigInt.git from cache (2.37s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.40s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 1.1.7 (6.42s)
Computing version for https://github.com/attaswift/BigInt.git
Computed https://github.com/attaswift/BigInt.git at 5.5.2 (0.88s)
Computing version for https://github.com/IBM-Swift/BlueCryptor.git
Computed https://github.com/IBM-Swift/BlueCryptor.git at 1.0.200 (1.09s)
Fetching https://github.com/Kitura/OpenSSL.git
[1/203] Fetching openssl
Fetched https://github.com/Kitura/OpenSSL.git from cache (0.69s)
Computing version for https://github.com/Kitura/OpenSSL.git
Computed https://github.com/Kitura/OpenSSL.git at 2.3.1 (3.00s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.47s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.75s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
[3997/20982] Fetching swift-system, swift-collections
[4130/22692] Fetching swift-system, swift-collections, swift-atomics
Fetched https://github.com/apple/swift-system.git from cache (0.52s)
[4531/18301] Fetching swift-collections, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.68s)
Fetched https://github.com/apple/swift-collections.git from cache (1.71s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.30s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.43s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.76s)
Creating working copy for https://github.com/crossroadlabs/Regex.git
Working copy of https://github.com/crossroadlabs/Regex.git resolved at 1.2.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.2.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.4.2
Creating working copy for https://github.com/Bouke/NetService.git
Working copy of https://github.com/Bouke/NetService.git resolved at 0.8.1
Creating working copy for https://github.com/IBM-Swift/BlueCryptor.git
Working copy of https://github.com/IBM-Swift/BlueCryptor.git resolved at 1.0.200
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/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/attaswift/BigInt.git
Working copy of https://github.com/attaswift/BigInt.git resolved at 5.5.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 1.1.7
Creating working copy for https://github.com/Bouke/HKDF.git
Working copy of https://github.com/Bouke/HKDF.git resolved at 3.1.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.6.3
Creating working copy for https://github.com/Bouke/SRP.git
Working copy of https://github.com/Bouke/SRP.git resolved at 3.2.1
Creating working copy for https://github.com/Kitura/OpenSSL.git
Working copy of https://github.com/Kitura/OpenSSL.git resolved at 2.3.1
warning: you may be able to install avahi-compat-libdns_sd using your system-packager:
    apt-get install libavahi-compat-libdnssd-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
warning: you may be able to install avahi-compat-libdns_sd using your system-packager:
    apt-get install libavahi-compat-libdnssd-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
Building for debugging...
[0/469] Write sources
[22/469] Compiling CNIOWASI CNIOWASI.c
[23/469] Compiling _AtomicsShims.c
[24/469] Compiling CNIOWindows WSAStartup.c
[24/469] Compiling CNIOWindows shim.c
[24/469] Compiling CNIOLinux shim.c
[27/469] Compiling CNIOLinux liburing_shims.c
[27/469] Compiling CQRCode qrcode.c
[27/469] Write swift-version-24593BA9C3E375BF.txt
[30/469] Compiling CNIODarwin shim.c
[30/469] Compiling CNIOLLHTTP c_nio_http.c
[32/469] Compiling CNIOLLHTTP c_nio_api.c
[33/472] Compiling CCryptoBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/v3_utl.c:73:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[34/475] Compiling v3_utl.c
[34/475] Compiling c-atomics.c
[34/475] Compiling CNIOLLHTTP c_nio_llhttp.c
[34/475] Compiling c-nioatomics.c
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:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: you may be able to install avahi-compat-libdns_sd using your system-packager:
    apt-get install libavahi-compat-libdnssd-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
warning: you may be able to install avahi-compat-libdns_sd using your system-packager:
    apt-get install libavahi-compat-libdnssd-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install openssl libssl-dev
warning: you may be able to install libsodium using your system-packager:
    apt-get install libsodium-dev
[0/1] Planning build
Building for debugging...
[0/435] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/v3_utl.c:73:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/../internal.h:134:10: fatal error: 'pthread.h' file not found
  134 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[1/436] Compiling v3_prn.c
[2/436] Compiling v3_utl.c
[2/436] Compiling c-atomics.c
[2/436] Compiling v3_skey.c
[2/436] Compiling c-nioatomics.c
[2/436] Compiling CNIOLLHTTP c_nio_llhttp.c
[2/436] Compiling v3_pmaps.c
[2/436] Compiling v3_purp.c
[2/436] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm