Build Information
Failed to build soto-cognito-authentication-kit, reference 5.0.0 (6ea926
), with Swift 6.1 for Wasm on 29 May 2025 20:19:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/soto-project/soto-cognito-authentication-kit.git
Reference: 5.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/soto-project/soto-cognito-authentication-kit
* tag 5.0.0 -> FETCH_HEAD
HEAD is now at 6ea9262 Swift testing (#53)
Cloned https://github.com/soto-project/soto-cognito-authentication-kit.git
Revision (git rev-parse @):
6ea926230d69fbc88447c8cd753b388014eee821
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/soto-project/soto-cognito-authentication-kit.git at 5.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/soto-project/soto-cognito-authentication-kit.git
https://github.com/soto-project/soto-cognito-authentication-kit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-crypto",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-crypto.git"
},
{
"identity" : "soto",
"requirement" : {
"range" : [
{
"lower_bound" : "7.1.0",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/soto-project/soto.git"
},
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.10.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/async-http-client.git"
},
{
"identity" : "jwt-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.0",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/jwt-kit.git"
},
{
"identity" : "big-num",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/adam-fowler/big-num.git"
}
],
"manifest_display_name" : "soto-cognito-authentication-kit",
"name" : "soto-cognito-authentication-kit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "16.0"
}
],
"products" : [
{
"name" : "SotoCognitoAuthenticationKit",
"targets" : [
"SotoCognitoAuthenticationKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SotoCognitoAuthenticationSRP",
"targets" : [
"SotoCognitoAuthenticationSRP"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SotoCognitoAuthenticationSRP",
"module_type" : "SwiftTarget",
"name" : "SotoCognitoAuthenticationSRP",
"path" : "Sources/SotoCognitoAuthenticationSRP",
"product_dependencies" : [
"BigNum"
],
"product_memberships" : [
"SotoCognitoAuthenticationSRP"
],
"sources" : [
"Authenticatable+SRP.swift",
"SRP.swift",
"UserPoolAuthenticationMethod+SRP.swift"
],
"target_dependencies" : [
"SotoCognitoAuthenticationKit"
],
"type" : "library"
},
{
"c99name" : "SotoCognitoAuthenticationKitTests",
"module_type" : "SwiftTarget",
"name" : "SotoCognitoAuthenticationKitTests",
"path" : "Tests/SotoCognitoAuthenticationKitTests",
"sources" : [
"CognitoTests.swift",
"SRPTests.swift"
],
"target_dependencies" : [
"SotoCognitoAuthenticationKit",
"SotoCognitoAuthenticationSRP"
],
"type" : "test"
},
{
"c99name" : "SotoCognitoAuthenticationKit",
"module_type" : "SwiftTarget",
"name" : "SotoCognitoAuthenticationKit",
"path" : "Sources/SotoCognitoAuthenticationKit",
"product_dependencies" : [
"SotoCognitoIdentity",
"SotoCognitoIdentityProvider",
"AsyncHTTPClient",
"JWTKit",
"Crypto"
],
"product_memberships" : [
"SotoCognitoAuthenticationKit",
"SotoCognitoAuthenticationSRP"
],
"sources" : [
"Authenticatable+JWT.swift",
"Authenticatable.swift",
"Configuration.swift",
"ContextData.swift",
"Identifiable.swift",
"Tokens.swift",
"UserPoolCredentialProvider.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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-crypto.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/soto-project/soto.git
Fetching https://github.com/vapor/jwt-kit.git
Fetching https://github.com/adam-fowler/big-num.git
[1/857] Fetching big-num
[858/14793] Fetching big-num, swift-crypto
[1555/28807] Fetching big-num, swift-crypto, async-http-client
Fetched https://github.com/adam-fowler/big-num.git from cache (0.42s)
[2938/27950] Fetching swift-crypto, async-http-client
[12321/36999] Fetching swift-crypto, async-http-client, jwt-kit
Fetched https://github.com/vapor/jwt-kit.git from cache (1.20s)
[20704/27950] Fetching swift-crypto, async-http-client
[27951/169025] Fetching swift-crypto, async-http-client, soto
Fetched https://github.com/swift-server/async-http-client.git from cache (92.73s)
Fetched https://github.com/apple/swift-crypto.git from cache (92.75s)
Fetched https://github.com/soto-project/soto.git from cache (93.40s)
Computing version for https://github.com/adam-fowler/big-num.git
Computed https://github.com/adam-fowler/big-num.git at 2.0.2 (95.36s)
Computing version for https://github.com/vapor/jwt-kit.git
Computed https://github.com/vapor/jwt-kit.git at 5.1.2 (0.45s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-certificates.git
[1/3836] Fetching swift-log
[3837/9991] Fetching swift-log, swift-certificates
Fetched https://github.com/apple/swift-log.git from cache (0.43s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.44s)
Computing version for https://github.com/soto-project/soto.git
Computed https://github.com/soto-project/soto.git at 7.7.0 (5.82s)
Fetching https://github.com/soto-project/soto-core.git
[1/56330] Fetching soto-core
Fetched https://github.com/soto-project/soto-core.git from cache (1.91s)
Computing version for https://github.com/soto-project/soto-core.git
Computed https://github.com/soto-project/soto-core.git at 7.7.1 (2.38s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/adam-fowler/jmespath.swift.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-metrics.git
[1/2667] Fetching swift-nio-transport-services
[508/7641] Fetching swift-nio-transport-services, swift-distributed-tracing
[3498/9847] Fetching swift-nio-transport-services, swift-distributed-tracing, swift-metrics
[8506/10505] Fetching swift-nio-transport-services, swift-distributed-tracing, swift-metrics, jmespath.swift
[10180/12215] Fetching swift-nio-transport-services, swift-distributed-tracing, swift-metrics, jmespath.swift, swift-atomics
Fetched https://github.com/apple/swift-metrics.git from cache (0.36s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.36s)
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.38s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.44s)
[581/15501] Fetching jmespath.swift, swift-nio-ssl
[10378/91609] Fetching jmespath.swift, swift-nio-ssl, swift-nio
Fetched https://github.com/adam-fowler/jmespath.swift.git from cache (1.58s)
[64314/90951] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.61s)
[50232/76108] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.89s)
Computing version for https://github.com/adam-fowler/jmespath.swift.git
Computed https://github.com/adam-fowler/jmespath.swift.git at 1.0.3 (4.73s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.48s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.2.0 (0.44s)
Fetching https://github.com/apple/swift-service-context.git
[1/1063] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.27s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.0 (0.70s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.71s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4391] Fetching swift-system
[4305/20982] Fetching swift-system, swift-collections
[3319/16591] Fetching swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.35s)
Fetched https://github.com/apple/swift-collections.git from cache (0.95s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.60s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.26.1 (0.52s)
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5914] Fetching swift-nio-extras
[1894/11873] Fetching swift-nio-extras, swift-algorithms
[6880/23400] Fetching swift-nio-extras, swift-algorithms, swift-nio-http2
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.60s)
[8726/17486] Fetching swift-algorithms, swift-nio-http2
Fetched https://github.com/apple/swift-algorithms.git from cache (0.63s)
[2998/11527] Fetching swift-nio-http2
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.40s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.24.0 (2.06s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.36.0 (0.68s)
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.68s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.27.1 (4.31s)
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-asn1.git
[1/904] Fetching swift-http-types
[905/2494] Fetching swift-http-types, swift-asn1
[969/3635] Fetching swift-http-types, swift-asn1, swift-http-structured-headers
[1373/6061] Fetching swift-http-types, swift-asn1, swift-http-structured-headers, swift-service-lifecycle
[2366/11046] Fetching swift-http-types, swift-asn1, swift-http-structured-headers, swift-service-lifecycle, swift-async-algorithms
Fetched https://github.com/apple/swift-asn1.git from cache (0.84s)
[9307/9456] Fetching swift-http-types, swift-http-structured-headers, swift-service-lifecycle, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.88s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.88s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.99s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.99s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.66s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.74s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (2.26s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.8.0 (3.84s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (1.27s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.53s)
Fetching https://github.com/apple/swift-numerics.git
[1/5706] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.50s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.03s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (0.46s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.3.0 (0.50s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (0.51s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.44s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.26.1
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.3.0
Creating working copy for https://github.com/adam-fowler/big-num.git
Working copy of https://github.com/adam-fowler/big-num.git resolved at 2.0.2
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/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.8.0
Creating working copy for https://github.com/vapor/jwt-kit.git
Working copy of https://github.com/vapor/jwt-kit.git resolved at 5.1.2
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.27.1
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/adam-fowler/jmespath.swift.git
Working copy of https://github.com/adam-fowler/jmespath.swift.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/soto-project/soto-core.git
Working copy of https://github.com/soto-project/soto-core.git resolved at 7.7.1
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.36.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.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/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.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-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.24.0
Creating working copy for https://github.com/soto-project/soto.git
Working copy of https://github.com/soto-project/soto.git resolved at 7.7.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
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
Building for debugging...
[0/974] Write sources
[42/974] Compiling CSotoExpat xmltok_impl.c
[42/974] Compiling _AtomicsShims.c
[44/974] Compiling _NumericsShims _NumericsShims.c
[45/974] Compiling CSotoExpat xmltok_ns.c
[46/974] Compiling CNIOWindows shim.c
[46/974] Compiling CNIOWindows WSAStartup.c
[48/974] Compiling CNIOWASI CNIOWASI.c
[48/974] Compiling CNIOLinux shim.c
[48/974] Compiling CSotoExpat xmlrole.c
[51/974] Compiling CNIOLinux liburing_shims.c
[52/974] Compiling CNIOLLHTTP c_nio_http.c
[53/974] Compiling CNIODarwin shim.c
[53/974] Compiling CNIOExtrasZlib empty.c
[55/974] Compiling CNIOLLHTTP c_nio_api.c
[56/974] Write swift-version-24593BA9C3E375BF.txt
[57/974] Compiling fiat_p256_adx_sqr.S
[58/974] Compiling fiat_p256_adx_mul.S
[59/974] Compiling fiat_curve25519_adx_square.S
[60/974] Compiling fiat_curve25519_adx_mul.S
[61/974] Compiling CSotoExpat xmlparse.c
[62/974] Compiling CSotoExpat xmltok.c
[63/999] Compiling CNIOBoringSSLShims shims.c
[64/1017] Compiling CNIOLLHTTP c_nio_llhttp.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[66/1022] Emitting module SotoXML
/host/spi-builder-workspace/.build/checkouts/soto-core/Sources/SotoXML/Expat.swift:36:8: error: Unsupported platform
34 | import Android
35 | #else
36 | #error("Unsupported platform")
| `- error: Unsupported platform
37 | #endif
38 |
[67/1022] Compiling RealModule AlgebraicField.swift
[68/1022] Compiling RealModule ApproximateEquality.swift
[69/1023] Emitting module Logging
[70/1023] Compiling Logging Locks.swift
[71/1023] Emitting module _CertificateInternals
[72/1023] Compiling _CertificateInternals _TinyArray.swift
[73/1023] Compiling RealModule ElementaryFunctions.swift
[74/1023] Emitting module _NIOBase64
[75/1023] Emitting module ServiceContextModule
[76/1024] Compiling _NIOBase64 Base64.swift
[77/1024] Compiling ServiceContextModule ServiceContext.swift
[78/1024] Compiling ServiceContextModule ServiceContextKey.swift
[79/1026] Emitting module SwiftASN1
[80/1028] Compiling _NIODataStructures PriorityQueue.swift
[81/1028] Compiling _NIODataStructures _TinyArray.swift
[82/1028] Compiling RealModule Float16+Real.swift
[83/1028] Compiling RealModule Float+Real.swift
[84/1028] Emitting module RealModule
[85/1028] Compiling RealModule AugmentedArithmetic.swift
[86/1028] Compiling RealModule Double+Real.swift
[87/1028] Compiling RealModule Float80+Real.swift
[88/1028] Compiling RealModule Real.swift
[92/1028] Compiling SwiftASN1 ASN1BitString.swift
[93/1028] Compiling SwiftASN1 ASN1Boolean.swift
[94/1028] Compiling SwiftASN1 ASN1Identifier.swift
[99/1028] Compiling SwiftASN1 TimeUtilities.swift
[100/1028] Compiling SwiftASN1 UTCTime.swift
[101/1028] Compiling RealModule RealFunctions.swift
[103/1060] Compiling Logging MetadataProvider.swift
[104/1062] Emitting module JMESPath
error: emit-module command failed with exit code 1 (use -v to see invocation)
[105/1063] Compiling Instrumentation NoOpInstrument.swift
[106/1063] Emitting module Instrumentation
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:38:8: error: Unsupported runtime
36 | import Musl
37 | #else
38 | #error("Unsupported runtime")
| `- error: Unsupported runtime
39 | #endif
40 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
46 | @_spi(Locking) // Use the `package` access modifier once min Swift version is increased.
47 | public final class ReadWriteLock {
48 | private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
| `- error: cannot find type 'pthread_rwlock_t' in scope
49 |
50 | /// Create a new lock.
[107/1063] Compiling JMESPath Token.swift
[108/1063] Compiling Logging LogHandler.swift
[109/1063] Compiling Logging Logging.swift
[111/1064] Compiling JMESPath Sendable.swift
[112/1064] Compiling Instrumentation Instrument.swift
[113/1064] Compiling Instrumentation MultiplexInstrument.swift
[114/1064] Compiling Instrumentation Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:38:8: error: Unsupported runtime
36 | import Musl
37 | #else
38 | #error("Unsupported runtime")
| `- error: Unsupported runtime
39 | #endif
40 |
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
46 | @_spi(Locking) // Use the `package` access modifier once min Swift version is increased.
47 | public final class ReadWriteLock {
48 | private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
| `- error: cannot find type 'pthread_rwlock_t' in scope
49 |
50 | /// Create a new lock.
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:52:19: error: cannot find 'pthread_rwlock_init' in scope
50 | /// Create a new lock.
51 | public init() {
52 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
53 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
54 | }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:52:52: error: 'nil' requires a contextual type
50 | /// Create a new lock.
51 | public init() {
52 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: 'nil' requires a contextual type
53 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
54 | }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:57:19: error: cannot find 'pthread_rwlock_destroy' in scope
55 |
56 | deinit {
57 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
58 | precondition(err == 0, "pthread_rwlock_destroy failed with error \(err)")
59 | self.rwlock.deallocate()
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:67:19: error: cannot find 'pthread_rwlock_rdlock' in scope
65 | /// `unlock`, to simplify lock handling.
66 | public func lockRead() {
67 | let err = pthread_rwlock_rdlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
68 | precondition(err == 0, "pthread_rwlock_rdlock failed with error \(err)")
69 | }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:76:19: error: cannot find 'pthread_rwlock_wrlock' in scope
74 | /// `unlock`, to simplify lock handling.
75 | public func lockWrite() {
76 | let err = pthread_rwlock_wrlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
77 | precondition(err == 0, "pthread_rwlock_wrlock failed with error \(err)")
78 | }
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:85:19: error: cannot find 'pthread_rwlock_unlock' in scope
83 | /// `lock`, to simplify lock handling.
84 | public func unlock() {
85 | let err = pthread_rwlock_unlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
86 | precondition(err == 0, "pthread_rwlock_unlock failed with error \(err)")
87 | }
[115/1064] Compiling Instrumentation InstrumentationSystem.swift
/host/spi-builder-workspace/.build/checkouts/swift-distributed-tracing/Sources/Instrumentation/Locks.swift:48:46: error: cannot find type 'pthread_rwlock_t' in scope
46 | @_spi(Locking) // Use the `package` access modifier once min Swift version is increased.
47 | public final class ReadWriteLock {
48 | private let rwlock: UnsafeMutablePointer<pthread_rwlock_t> = UnsafeMutablePointer.allocate(capacity: 1)
| `- error: cannot find type 'pthread_rwlock_t' in scope
49 |
50 | /// Create a new lock.
[116/1064] Compiling InternalCollectionsUtilities Descriptions.swift
[117/1064] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[118/1064] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[119/1065] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[120/1065] Compiling InternalCollectionsUtilities Debugging.swift
[121/1065] Emitting module InternalCollectionsUtilities
[122/1065] Compiling JMESPath Parser.swift
[123/1065] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[124/1065] Compiling InternalCollectionsUtilities Integer rank.swift
[125/1065] Emitting module INIParser
[126/1065] Emitting module _NIODataStructures
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/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>
| ^~~~~~~~~~~
1 error generated.
[0/910] Compiling tls13_client.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.
[0/910] Compiling tls_method.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/t1_enc.cc:28:
/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/910] Compiling t1_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/910] Compiling ssl_x509.cc
[0/910] Compiling tls13_server.cc
[0/910] Compiling tls13_enc.cc
[0/910] Compiling tls13_both.cc
[0/910] Compiling tls_record.cc
BUILD FAILURE 6.1 wasm