Build Information
Failed to build JWT, reference 0.2.0 (327a62), with Swift 6.1 for Wasm on 27 May 2025 22:43:36 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/schwmi/jwt.git
Reference: 0.2.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/schwmi/jwt
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 327a62f Merge branch 'master' of github.com:schwmi/JWT
Cloned https://github.com/schwmi/jwt.git
Revision (git rev-parse @):
327a62f20ef2750fe82964d2c8ad3984b0d7039a
SUCCESS checkout https://github.com/schwmi/jwt.git at 0.2.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/schwmi/jwt.git
https://github.com/schwmi/jwt.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
}
],
"manifest_display_name" : "JWT",
"name" : "JWT",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "JWT",
"targets" : [
"JWT"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "JWTTests",
"module_type" : "SwiftTarget",
"name" : "JWTTests",
"path" : "Tests",
"sources" : [
"ASN1DERDecoderTests.swift",
"ES256KeyTests.swift",
"ES256RawSignatureBuilderTests.swift",
"JWTTests.swift",
"SHA256HasherTests.swift"
],
"target_dependencies" : [
"JWT"
],
"type" : "test"
},
{
"c99name" : "JWT",
"module_type" : "SwiftTarget",
"name" : "JWT",
"path" : "Sources",
"product_dependencies" : [
"Crypto"
],
"product_memberships" : [
"JWT"
],
"sources" : [
"ASN1DERDecoder.swift",
"ES256Key.swift",
"ES256RawSignatureBuilder.swift",
"ES256Signer.swift",
"Extensions/Data+Extensions.swift",
"JWT.swift",
"JWTHeader.swift",
"JWTPayload.swift",
"SHA256Hasher.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
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 -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/apple/swift-crypto.git
[1/13936] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.64s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 1.1.7 (2.29s)
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
Building for debugging...
[0/408] Write sources
[2/408] Compiling p256_beeu-x86_64-asm.linux.x86_64.S
[3/408] Compiling p256_beeu-x86_64-asm.mac.x86_64.S
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/rand/ctrdrbg.c:20:
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/rand/internal.h:21:
/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/fipsmodule/rand/../../internal.h:134:10: fatal error: 'pthread.h' file not found
134 | #include <pthread.h>
| ^~~~~~~~~~~
1 error generated.
[4/408] Compiling ctrdrbg.c
[4/408] Compiling v3_utl.c
[4/408] Compiling CCryptoBoringSSLShims shims.c
[4/408] Compiling v3_purp.c
[4/408] Compiling v3_pmaps.c
[4/408] Compiling v3_prn.c
[4/408] Compiling v3_skey.c
[4/408] Write swift-version-24593BA9C3E375BF.txt
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/404] Compiling v3_prn.c
[1/404] Compiling v3_skey.c
[2/404] Compiling CCryptoBoringSSLShims shims.c
[3/404] Compiling v3_pmaps.c
In file included from /host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/crypto/x509v3/v3_purp.c:70:
/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.
[4/404] Compiling v3_purp.c
[4/404] Compiling v3_pcia.c
[4/404] Compiling v3_ocsp.c
[4/404] Compiling v3_pci.c
[4/404] Compiling v3_ncons.c
[4/404] Compiling v3_pcons.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>
| ^~~~~~~~~~~
[4/404] Compiling v3_utl.c
[4/404] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm