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 nostr-kit, reference 0.5.0 (f60503), with Swift 6.1 for Wasm on 28 May 2025 17:22:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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/tannerdsilva/nostr-kit.git
Reference: 0.5.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/tannerdsilva/nostr-kit
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at f60503e release v0.5.0
Cloned https://github.com/tannerdsilva/nostr-kit.git
Revision (git rev-parse @):
f60503e2ac73b41fd0bfa03ed8eb279c5d417113
SUCCESS checkout https://github.com/tannerdsilva/nostr-kit.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tannerdsilva/nostr-kit.git
https://github.com/tannerdsilva/nostr-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "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.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.32.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.5.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    },
    {
      "identity" : "swift-extras-base64",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-extras/swift-extras-base64.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "quickjson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.1",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tannerdsilva/QuickJSON.git"
    },
    {
      "identity" : "rawdog",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tannerdsilva/rawdog.git"
    },
    {
      "identity" : "secp256k1.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.7.0",
            "upper_bound" : "0.8.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/GigaBitcoin/secp256k1.swift"
    },
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.5.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    },
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system.git"
    }
  ],
  "manifest_display_name" : "nostr-kit",
  "name" : "nostr-kit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "nostr",
      "targets" : [
        "nostr"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "nostr-cc",
      "targets" : [
        "nostr-cc"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "nostr_kitTests",
      "module_type" : "SwiftTarget",
      "name" : "nostr-kitTests",
      "path" : "Tests/nostr-kitTests",
      "sources" : [
        "Bech32Tests.swift",
        "DateTests.swift",
        "HexTests.swift",
        "nostr_eventTests.swift",
        "nostr_keyTests.swift",
        "nostr_kitTests.swift"
      ],
      "target_dependencies" : [
        "nostr"
      ],
      "type" : "test"
    },
    {
      "c99name" : "nostr_cc",
      "module_type" : "SwiftTarget",
      "name" : "nostr-cc",
      "path" : "Sources/nostr-cc",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "nostr-cc"
      ],
      "sources" : [
        "CLI/CLI + KeyPair.swift",
        "CLI/CLI + Relay.swift",
        "CLI/CLI.swift",
        "Colors.swift",
        "Extensions/KeyPair.swift",
        "Extensions/String.swift",
        "Profile.swift",
        "nostr-cc.swift"
      ],
      "target_dependencies" : [
        "nostr"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "nostr",
      "module_type" : "SwiftTarget",
      "name" : "nostr",
      "path" : "Sources/nostr",
      "product_dependencies" : [
        "ExtrasBase64",
        "NIOSSL",
        "NIO",
        "NIOWebSocket",
        "Logging",
        "QuickJSON",
        "secp256k1",
        "RAW",
        "Crypto",
        "SystemPackage"
      ],
      "product_memberships" : [
        "nostr",
        "nostr-cc"
      ],
      "sources" : [
        "Errors.swift",
        "Event/Event + Commitment.swift",
        "Event/Event + Kind.swift",
        "Event/Event + NIP42.swift",
        "Event/Event.swift",
        "Event/Tags/Event + Tag + Name.swift",
        "Event/Tags/Event + Tag.swift",
        "Event/Tags/Event + Tags.swift",
        "Filter/Filter.swift",
        "Frozen Structs/Date.swift",
        "Frozen Structs/Event + Signature.swift",
        "Frozen Structs/Event + UID.swift",
        "Frozen Structs/Key/KeyPair.swift",
        "Frozen Structs/Key/PublicKey.swift",
        "Frozen Structs/Key/SecretKey.swift",
        "Hex.swift",
        "Message/Message.swift",
        "Network/NIO/Relay/Configurations/ClientConfiguration.swift",
        "Network/NIO/Relay/Relay + Catcher.swift",
        "Network/NIO/Relay/Relay + Consumable.swift",
        "Network/NIO/Relay/Relay + Error.swift",
        "Network/NIO/Relay/Relay + Handler.swift",
        "Network/NIO/Relay/Relay + Publishing.swift",
        "Network/NIO/Relay/Relay.swift",
        "Network/NIO/Relay/URL/RelayURL + NOSTR_tag_infofield.swift",
        "Network/NIO/Relay/URL/RelayURL + Parser.swift",
        "Network/NIO/Relay/URL/RelayURL + Split.swift",
        "Network/NIO/Relay/URL/RelayURL.swift",
        "Network/NIO/Relay/URL/RelayURLParameters.swift",
        "Network/NIO/Relay/WebSockets/HTTP2WSUpgrade/RelayInitialHTTPRequestWriter.swift",
        "Network/NIO/Relay/WebSockets/HTTP2WSUpgrade/WebSocket + Upgrader.swift",
        "Network/NIO/Relay/WebSockets/WebSocket + FrameSequence.swift",
        "Network/NIO/Relay/WebSockets/WebSocket + Handler.swift",
        "Network/NIO/Relay/WebSockets/WebSocket.swift",
        "Protocols/BECH32.swift",
        "Protocols/HEX/HEX_convertible.swift",
        "Protocols/HEX/HEX_decodable.swift",
        "Protocols/HEX/HEX_encodable.swift",
        "Protocols/NOSTR_date.swift",
        "Protocols/NOSTR_event.swift",
        "Protocols/NOSTR_filter.swift",
        "Protocols/NOSTR_kind.swift",
        "Protocols/NOSTR_message.swift",
        "Protocols/TAG/Instance/Additional/NOSTR_tag_addlfield.swift",
        "Protocols/TAG/Instance/Index/NOSTR_tag_infofield.swift",
        "Protocols/TAG/Instance/NOSTR_tag.swift",
        "Protocols/TAG/Instance/Name/NOSTR_tag_name.swift",
        "Protocols/TAG/Instance/Name/NOSTR_tag_name_generic.swift",
        "Protocols/TAG/NOSTR_tagged.swift",
        "Utils/Extensions/ByteBuffer.swift",
        "Utils/FlatDictionary.swift",
        "Utils/RandomBytes.swift",
        "Utils/SHA1.swift",
        "Utils/SHA256.swift",
        "bech32.swift",
        "nostr.swift"
      ],
      "target_dependencies" : [
        "cnostr"
      ],
      "type" : "library"
    },
    {
      "c99name" : "cnostr",
      "module_type" : "ClangTarget",
      "name" : "cnostr",
      "path" : "Sources/cnostr",
      "product_memberships" : [
        "nostr",
        "nostr-cc"
      ],
      "sources" : [
        "cnostr.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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/tannerdsilva/rawdog.git
Fetching https://github.com/tannerdsilva/QuickJSON.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/GigaBitcoin/secp256k1.swift
[1/3284] Fetching rawdog
[67/7120] Fetching rawdog, swift-log
[2740/11949] Fetching rawdog, swift-log, secp256k1.swift
[7574/12252] Fetching rawdog, swift-log, secp256k1.swift, quickjson
[8580/16643] Fetching rawdog, swift-log, secp256k1.swift, quickjson, swift-system
[15108/30579] Fetching rawdog, swift-log, secp256k1.swift, quickjson, swift-system, swift-crypto
Fetched https://github.com/GigaBitcoin/secp256k1.swift from cache (0.52s)
[12790/25750] Fetching rawdog, swift-log, quickjson, swift-system, swift-crypto
Fetching https://github.com/swift-extras/swift-extras-base64.git
Fetched https://github.com/apple/swift-system.git from cache (0.64s)
[9235/21359] Fetching rawdog, swift-log, quickjson, swift-crypto
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/tannerdsilva/rawdog.git from cache (0.66s)
[6369/18075] Fetching swift-log, quickjson, swift-crypto
Fetched https://github.com/apple/swift-log.git from cache (0.67s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-argument-parser.git
[2673/14239] Fetching quickjson, swift-crypto
[3231/15072] Fetching quickjson, swift-crypto, swift-extras-base64
[7827/29915] Fetching quickjson, swift-crypto, swift-extras-base64, swift-nio-ssl
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.66s)
[8756/29082] Fetching quickjson, swift-crypto, swift-nio-ssl
[18693/105175] Fetching quickjson, swift-crypto, swift-nio-ssl, swift-nio
[18694/120526] Fetching quickjson, swift-crypto, swift-nio-ssl, swift-nio, swift-argument-parser
Fetched https://github.com/tannerdsilva/QuickJSON.git from cache (3.80s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (3.14s)
[80523/104872] Fetching swift-crypto, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-crypto.git from cache (3.83s)
[67348/90936] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.59s)
[60875/76093] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (6.38s)
Computing version for https://github.com/GigaBitcoin/secp256k1.swift
Computed https://github.com/GigaBitcoin/secp256k1.swift at 0.7.0 (9.60s)
Computing version for https://github.com/tannerdsilva/rawdog.git
Computed https://github.com/tannerdsilva/rawdog.git at 0.0.7 (0.56s)
Computing version for https://github.com/tannerdsilva/QuickJSON.git
Computed https://github.com/tannerdsilva/QuickJSON.git at 0.1.1 (1.91s)
Fetching https://github.com/ibireme/yyjson.git
[1/3780] Fetching yyjson
Fetched https://github.com/ibireme/yyjson.git from cache (1.54s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.7.0 (2.11s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 2.6.0 (1.04s)
Computing version for https://github.com/swift-extras/swift-extras-base64.git
Computed https://github.com/swift-extras/swift-extras-base64.git at 0.7.0 (0.65s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.0 (0.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.52s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.56s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.31.0 (0.72s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.04s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
[1711/18301] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (2.97s)
Fetched https://github.com/apple/swift-collections.git from cache (3.00s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (4.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.80s)
Creating working copy for https://github.com/swift-extras/swift-extras-base64.git
Working copy of https://github.com/swift-extras/swift-extras-base64.git resolved at 0.7.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/GigaBitcoin/secp256k1.swift
Working copy of https://github.com/GigaBitcoin/secp256k1.swift resolved at 0.7.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/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/tannerdsilva/rawdog.git
Working copy of https://github.com/tannerdsilva/rawdog.git resolved at 0.0.7
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/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.7.0
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.5.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/tannerdsilva/QuickJSON.git
Working copy of https://github.com/tannerdsilva/QuickJSON.git resolved at 0.1.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 2.6.0
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/893] Compiling cnostr cnostr.c
[2/893] Compiling a_gentm.c
[3/893] Compiling a_d2i_fp.c
[4/893] Write sources
[5/893] Compiling asn_pack.c
[6/893] Compiling f_int.c
[7/893] Compiling a_bool.c
[8/893] Compiling a_i2d_fp.c
[8/893] Compiling a_bitstr.c
[10/893] Write sources
[33/893] Compiling CSystem shims.c
[34/893] Compiling _AtomicsShims.c
[35/893] Compiling Utility.c
[36/893] Compiling CNIOWindows shim.c
[37/893] Compiling CRAW CRAW.c
[38/893] Compiling CNIOWASI CNIOWASI.c
[39/893] Compiling CNIOWindows WSAStartup.c
[40/893] Compiling CNIOLinux shim.c
[41/893] Compiling CNIOLinux liburing_shims.c
[42/893] Compiling CNIOSHA1 c_nio_sha1.c
[43/893] Compiling CNIOLLHTTP c_nio_http.c
[44/893] Compiling precomputed_ecmult_gen.c
[45/893] Compiling CNIODarwin shim.c
[46/893] Compiling CNIOLLHTTP c_nio_api.c
[47/893] Compiling fiat_p256_adx_sqr.S
[48/893] Compiling fiat_p256_adx_mul.S
[49/893] Compiling fiat_curve25519_adx_square.S
[50/893] Compiling fiat_curve25519_adx_mul.S
[51/893] Write swift-version-24593BA9C3E375BF.txt
[51/893] Compiling secp256k1.c
[53/893] Compiling CNIOBoringSSLShims shims.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[54/897] Compiling tls_record.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[54/897] Compiling tls_method.cc
[54/897] Compiling tls13_server.cc
[54/897] Compiling tls13_enc.cc
[54/897] Compiling yyjson.c
[54/897] Compiling CNIOLLHTTP c_nio_llhttp.c
[54/897] Compiling precomputed_ecmult.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Building for debugging...
[1/840] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[4/841] Compiling tls13_enc.cc
[4/841] Compiling tls_method.cc
[4/841] Compiling tls13_client.cc
[4/841] Compiling precomputed_ecmult.c
[4/841] Compiling tls_record.cc
[4/841] Compiling tls13_server.cc
[4/841] Compiling yyjson.c
[4/841] Compiling CNIOLLHTTP c_nio_llhttp.c
BUILD FAILURE 6.1 wasm