The Swift Package Index logo.Swift Package Index

Build Information

Failed to build random-swift, reference 1.0.0 (a716c4), with Swift 6.1 for Wasm on 30 May 2025 01:54:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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/random-swift.git
Reference: 1.0.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/GiacomoLeopizzi/random-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a716c4b README
Cloned https://github.com/GiacomoLeopizzi/random-swift.git
Revision (git rev-parse @):
a716c4b221d862d16730680560e62f749ca689ea
SUCCESS checkout https://github.com/GiacomoLeopizzi/random-swift.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/GiacomoLeopizzi/random-swift.git
https://github.com/GiacomoLeopizzi/random-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl"
    }
  ],
  "manifest_display_name" : "random-swift",
  "name" : "random-swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Random",
      "targets" : [
        "Random"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RandomTests",
      "module_type" : "SwiftTarget",
      "name" : "RandomTests",
      "path" : "Tests/RandomTests",
      "product_dependencies" : [
        "NIO"
      ],
      "sources" : [
        "ArrayTests.swift",
        "ByteBufferTests.swift",
        "SecureRandomNumberGeneratorTests.swift"
      ],
      "target_dependencies" : [
        "Random"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Random",
      "module_type" : "SwiftTarget",
      "name" : "Random",
      "path" : "Sources/Random",
      "product_dependencies" : [
        "NIO",
        "NIOSSL"
      ],
      "product_memberships" : [
        "Random"
      ],
      "sources" : [
        "Array-Extension.swift",
        "ByteBuffer-Extension.swift",
        "SecureRandomBytesGenerator.swift",
        "UnsafeMutableBufferPointer-Extension.swift",
        "UnsafeMutablePointer-Extension.swift",
        "UnsafeMutableRawBufferPointer-Extension.swift",
        "UnsafeMutableRawPointer-Extension.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
[1486/90951] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl from cache (5.62s)
Fetched https://github.com/apple/swift-nio from cache (5.70s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.31.0 (8.35s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (1.53s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1710] Fetching swift-atomics
[1216/6101] Fetching swift-atomics, swift-system
[1890/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.51s)
[6024/18301] Fetching swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.76s)
Fetched https://github.com/apple/swift-collections.git from cache (1.79s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.41s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.10s)
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-nio
Working copy of https://github.com/apple/swift-nio 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
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
Building for debugging...
[0/423] Write sources
[12/423] Compiling aesni-x86_64-linux.S
[13/423] Compiling aesni-x86-linux.S
[14/423] Compiling _AtomicsShims.c
[15/423] Compiling CNIOWASI CNIOWASI.c
[16/423] Compiling CNIOLinux shim.c
[17/423] Compiling CNIOWindows shim.c
[18/423] Compiling aesni-x86_64-apple.S
[19/423] Compiling CNIOWindows WSAStartup.c
[20/423] Compiling CNIODarwin shim.c
[20/423] Compiling CNIOLinux liburing_shims.c
[22/423] Compiling fiat_p256_adx_sqr.S
[23/423] Compiling fiat_curve25519_adx_square.S
[24/423] Compiling fiat_p256_adx_mul.S
[25/423] Compiling fiat_curve25519_adx_mul.S
[26/423] Write swift-version-24593BA9C3E375BF.txt
[27/423] Compiling CNIOBoringSSLShims shims.c
[28/423] Compiling a_bool.cc
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.
[29/427] Compiling tls_record.cc
[29/427] Compiling tls13_client.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>
      |          ^~~~~~~~~~~
[29/427] Compiling tls13_server.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>
      |          ^~~~~~~~~~~
[29/427] Compiling tls13_enc.cc
[29/427] Compiling tls13_both.cc
[29/427] Compiling tls_method.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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...
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.
[0/395] Compiling tls_method.cc
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>
      |          ^~~~~~~~~~~
[0/395] 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>
      |          ^~~~~~~~~~~
[0/395] Compiling tls13_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/ssl_x509.cc:23:
/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>
      |          ^~~~~~~~~~~
[0/395] Compiling ssl_x509.cc
[0/395] Compiling tls13_server.cc
[0/395] Compiling tls13_both.cc
[0/395] Compiling tls13_client.cc
[0/395] Compiling t1_enc.cc
BUILD FAILURE 6.1 wasm