The Swift Package Index logo.Swift Package Index

Build Information

Failed to build agora-dynamic-key-swift, reference 1.0.1 (602167), with Swift 6.1 for Wasm on 30 May 2025 01:57:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/GiacomoLeopizzi/agora-dynamic-key-swift.git
Reference: 1.0.1
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/GiacomoLeopizzi/agora-dynamic-key-swift
 * tag               1.0.1      -> FETCH_HEAD
HEAD is now at 6021671 SPI
Submodule path 'Sources/CAgoraDynamicKey/libAgoraDynamicKey': checked out 'f2e90750f96020b24dabb31041ddd4c0c1165073'
Submodule 'Sources/CAgoraDynamicKey/libAgoraDynamicKey' (https://github.com/AgoraIO/Tools) registered for path 'Sources/CAgoraDynamicKey/libAgoraDynamicKey'
Cloning into '/host/spi-builder-workspace/Sources/CAgoraDynamicKey/libAgoraDynamicKey'...
Cloned https://github.com/GiacomoLeopizzi/agora-dynamic-key-swift.git
Revision (git rev-parse @):
6021671486db04271dd849a288bd274ad5b54569
SUCCESS checkout https://github.com/GiacomoLeopizzi/agora-dynamic-key-swift.git at 1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/GiacomoLeopizzi/agora-dynamic-key-swift.git
https://github.com/GiacomoLeopizzi/agora-dynamic-key-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++14",
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.21.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl"
    }
  ],
  "manifest_display_name" : "agora-dynamic-key-swift",
  "name" : "agora-dynamic-key-swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "AgoraDynamicKey",
      "targets" : [
        "AgoraDynamicKey"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CAgoraDynamicKey",
      "module_type" : "ClangTarget",
      "name" : "CAgoraDynamicKey",
      "path" : "Sources/CAgoraDynamicKey",
      "product_dependencies" : [
        "NIOSSL"
      ],
      "product_memberships" : [
        "AgoraDynamicKey"
      ],
      "sources" : [
        "include/testing/AccessToken2CInterface.cpp",
        "libAgoraDynamicKey/DynamicKey/AgoraDynamicKey/cpp/src/md5/md5.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AgoraDynamicKeyTests",
      "module_type" : "SwiftTarget",
      "name" : "AgoraDynamicKeyTests",
      "path" : "Tests/AgoraDynamicKeyTests",
      "product_dependencies" : [
        "NIO"
      ],
      "sources" : [
        "ChatTokenBuilderTests.swift",
        "RtcTokenBuilderTests.swift",
        "RtmTokenBuilderTests.swift",
        "StringTests.swift",
        "TestConstant.swift",
        "TimeAmountTests.swift",
        "UserRoleTests.swift"
      ],
      "target_dependencies" : [
        "AgoraDynamicKey",
        "CAgoraDynamicKey"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AgoraDynamicKey",
      "module_type" : "SwiftTarget",
      "name" : "AgoraDynamicKey",
      "path" : "Sources/AgoraDynamicKey",
      "product_dependencies" : [
        "NIO"
      ],
      "product_memberships" : [
        "AgoraDynamicKey"
      ],
      "sources" : [
        "ChatTokenBuilder.swift",
        "Extensions/String-Extension.swift",
        "Extensions/TimeAmount-Extension.swift",
        "RtcTokenBuilder.swift",
        "RtmTokenBuilder.swift",
        "UserRole.swift"
      ],
      "target_dependencies" : [
        "CAgoraDynamicKey"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 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/apple/swift-nio
Fetching https://github.com/apple/swift-nio-ssl
[1/14843] Fetching swift-nio-ssl
[298/90951] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl from cache (5.54s)
Fetched https://github.com/apple/swift-nio from cache (5.62s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.31.0 (8.57s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (0.93s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1710] Fetching swift-atomics
[1711/6101] Fetching swift-atomics, swift-system
[1931/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.25s)
Fetched https://github.com/apple/swift-system.git from cache (1.25s)
Fetched https://github.com/apple/swift-collections.git from cache (1.28s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.81s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.60s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.08s)
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-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-ssl
Working copy of https://github.com/apple/swift-nio-ssl resolved at 2.31.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
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
Building for debugging...
[0/425] Write sources
[6/425] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/a_bitstr.cc:18:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/crypto/asn1/../internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[7/425] Compiling a_bitstr.cc
[7/425] Write sources
[7/425] Compiling a_i2d_fp.cc
[7/425] Compiling a_dup.cc
[7/425] Compiling a_time.cc
[7/425] Compiling derive_key.cc
[7/425] Compiling a_bool.cc
[7/425] Compiling a_gentm.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
Building for debugging...
[0/418] Write sources
[7/419] Compiling _AtomicsShims.c
[8/419] Compiling CNIOWindows shim.c
[9/419] Compiling CNIOWASI CNIOWASI.c
[10/419] Compiling CNIOLinux shim.c
[11/419] Compiling CNIOLinux liburing_shims.c
[12/419] Compiling CNIODarwin shim.c
[13/419] Compiling fiat_p256_adx_sqr.S
[14/419] Compiling fiat_curve25519_adx_square.S
[15/419] Compiling fiat_curve25519_adx_mul.S
[16/419] Compiling CNIOWindows WSAStartup.c
[17/419] Write swift-version-24593BA9C3E375BF.txt
[18/419] Compiling fiat_p256_adx_mul.S
[19/423] Compiling CNIOBoringSSLShims shims.c
[21/425] Emitting module _NIODataStructures
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.
[21/425] Compiling tls_record.cc
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>
      |          ^~~~~~~~~~~
[21/425] Compiling tls13_enc.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>
      |          ^~~~~~~~~~~
[21/425] Compiling tls_method.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/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>
      |          ^~~~~~~~~~~
[21/425] Compiling tls13_both.cc
[21/425] Compiling tls13_server.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.cc:30:
/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>
      |          ^~~~~~~~~~~
[21/425] Compiling tls13_client.cc
BUILD FAILURE 6.1 wasm