Build Information
Failed to build random-swift, reference main (8896ba), with Swift 6.1 for Wasm on 30 May 2025 01:54:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GiacomoLeopizzi/random-swift.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8896baa SPI
Cloned https://github.com/GiacomoLeopizzi/random-swift.git
Revision (git rev-parse @):
8896baade358e669aa6b8639400f1a76ab030b9a
SUCCESS checkout https://github.com/GiacomoLeopizzi/random-swift.git at main
========================================
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-4609320-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
[1634/90951] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl from cache (1.70s)
[53276/76108] Fetching swift-nio
Fetched https://github.com/apple/swift-nio from cache (4.35s)
Computing version for https://github.com/apple/swift-nio-ssl
Computed https://github.com/apple/swift-nio-ssl at 2.31.0 (6.36s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (0.90s)
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
[532/6101] Fetching swift-atomics, swift-system
[1513/22692] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (0.67s)
[8705/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.50s)
Fetched https://github.com/apple/swift-collections.git from cache (1.52s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (4.17s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (3.10s)
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.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
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
Building for debugging...
[0/423] Write sources
[12/423] Compiling CNIOWindows shim.c
[13/423] Compiling _AtomicsShims.c
[14/423] Compiling CNIOWindows WSAStartup.c
[15/423] Compiling CNIOWASI CNIOWASI.c
[16/423] Compiling CNIOLinux liburing_shims.c
[17/423] Compiling CNIOLinux shim.c
[18/423] Compiling CNIODarwin shim.c
[19/423] Compiling fiat_p256_adx_sqr.S
[20/423] Compiling fiat_p256_adx_mul.S
[21/423] Compiling fiat_curve25519_adx_mul.S
[22/423] Compiling fiat_curve25519_adx_square.S
[23/423] Compiling CNIOBoringSSLShims shims.c
[24/423] Compiling a_d2i_fp.cc
[25/423] Compiling a_dup.cc
[26/423] 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.
[27/423] Compiling a_bitstr.cc
[27/423] Compiling tls13_enc.cc
[27/423] Compiling tls13_both.cc
[27/423] Compiling tls13_client.cc
[27/423] Compiling tls_method.cc
[27/423] Compiling tls_record.cc
[27/423] Compiling a_bool.cc
[27/423] Compiling tls13_server.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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...
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>
| ^~~~~~~~~~~
1 error generated.
[0/397] Compiling tls13_server.cc
[0/397] Compiling ssl_x509.cc
[0/397] Compiling tls13_client.cc
[0/397] Compiling tls_method.cc
[0/397] Compiling t1_enc.cc
[0/397] Compiling tls13_both.cc
[0/397] Compiling tls_record.cc
[0/397] Compiling tls13_enc.cc
BUILD FAILURE 6.1 wasm