Build Information
Failed to build SwiftkubeClient, reference main (7fb2b5
), with Swift 6.1 for Wasm on 16 Aug 2025 13:12:48 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.66.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftkube/client.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/swiftkube/client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 7fb2b50 Use macOS-14 runner for iOS build
Cloned https://github.com/swiftkube/client.git
Revision (git rev-parse @):
7fb2b5092b94761fe0212419f302b4ee93ba3616
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftkube/client.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swiftkube/client.git
https://github.com/swiftkube/client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-metrics",
"requirement" : {
"range" : [
{
"lower_bound" : "2.5.1",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-metrics.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.80.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio"
},
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "5.1.3",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "model",
"requirement" : {
"range" : [
{
"lower_bound" : "0.18.0",
"upper_bound" : "0.19.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftkube/model.git"
},
{
"identity" : "async-http-client",
"requirement" : {
"range" : [
{
"lower_bound" : "1.24.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/async-http-client.git"
}
],
"manifest_display_name" : "SwiftkubeClient",
"name" : "SwiftkubeClient",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SwiftkubeClient",
"targets" : [
"SwiftkubeClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5",
"6"
],
"targets" : [
{
"c99name" : "SwiftkubeClientTests",
"module_type" : "SwiftTarget",
"name" : "SwiftkubeClientTests",
"path" : "Tests/SwiftkubeClientTests",
"sources" : [
"K8sCRDTests.swift",
"K8sConfigMapTests.swift",
"K8sNamespaceTests.swift",
"K8sNodeTests.swift",
"K8sServiceTests.swift",
"K8sTestCase.swift",
"RequestBuilderTests.swift",
"RetryStrategyTests.swift"
],
"target_dependencies" : [
"SwiftkubeClient"
],
"type" : "test"
},
{
"c99name" : "SwiftkubeClient",
"module_type" : "SwiftTarget",
"name" : "SwiftkubeClient",
"path" : "Sources/SwiftkubeClient",
"product_dependencies" : [
"AsyncHTTPClient",
"Logging",
"Metrics",
"NIO",
"NIOFoundationCompat",
"SwiftkubeModel",
"Yams"
],
"product_memberships" : [
"SwiftkubeClient"
],
"sources" : [
"API Groups/KubernetesClient+admissionregistration.v1.swift",
"API Groups/KubernetesClient+admissionregistration.v1alpha1.swift",
"API Groups/KubernetesClient+admissionregistration.v1beta1.swift",
"API Groups/KubernetesClient+apiextensions.v1.swift",
"API Groups/KubernetesClient+apiregistration.v1.swift",
"API Groups/KubernetesClient+apps.v1.swift",
"API Groups/KubernetesClient+authentication.v1.swift",
"API Groups/KubernetesClient+authorization.v1.swift",
"API Groups/KubernetesClient+autoscaling.v1.swift",
"API Groups/KubernetesClient+autoscaling.v2.swift",
"API Groups/KubernetesClient+batch.v1.swift",
"API Groups/KubernetesClient+certificates.v1.swift",
"API Groups/KubernetesClient+certificates.v1alpha1.swift",
"API Groups/KubernetesClient+certificates.v1beta1.swift",
"API Groups/KubernetesClient+coordination.v1.swift",
"API Groups/KubernetesClient+coordination.v1alpha2.swift",
"API Groups/KubernetesClient+coordination.v1beta1.swift",
"API Groups/KubernetesClient+discovery.v1.swift",
"API Groups/KubernetesClient+events.v1.swift",
"API Groups/KubernetesClient+flowcontrol.v1.swift",
"API Groups/KubernetesClient+internal.v1alpha1.swift",
"API Groups/KubernetesClient+networking.v1.swift",
"API Groups/KubernetesClient+networking.v1beta1.swift",
"API Groups/KubernetesClient+node.v1.swift",
"API Groups/KubernetesClient+policy.v1.swift",
"API Groups/KubernetesClient+rbac.v1.swift",
"API Groups/KubernetesClient+resource.v1alpha3.swift",
"API Groups/KubernetesClient+resource.v1beta1.swift",
"API Groups/KubernetesClient+resource.v1beta2.swift",
"API Groups/KubernetesClient+scheduling.v1.swift",
"API Groups/KubernetesClient+storage.v1.swift",
"API Groups/KubernetesClient+storage.v1alpha1.swift",
"API Groups/KubernetesClient+storage.v1beta1.swift",
"API Groups/KubernetesClient+storagemigration.v1alpha1.swift",
"Client/ClusterScopedGenericKubernetesClient.swift",
"Client/GenericKubernetesClient.swift",
"Client/KubernetesClient.swift",
"Client/KubernetesRequest.swift",
"Client/NamespacedGenericKubernetesClient+Pod.swift",
"Client/NamespacedGenericKubernetesClient.swift",
"Client/RequestBuilder.swift",
"Client/RequestHandlerType.swift",
"Client/Selectors.swift",
"Config/AuthInfo+Authentication.swift",
"Config/Cluster+TLS.swift",
"Config/KubeConfig+Loaders.swift",
"Config/KubeConfig.swift",
"Config/KubernetesClientConfig+Init.swift",
"Config/KubernetesClientConfig.swift",
"Discovery/DiscoveryRequestBuilder.swift",
"Discovery/KubernetesClient+Discovery.swift",
"Metrics/KubernetesClient+Metrics.swift",
"Model/UnstructuredResource+YAML.swift",
"SwiftkubeClient.swift",
"Watch/AnyDataStreamerTransformer.swift",
"Watch/DataStreamer.swift",
"Watch/IdentityTransfomer.swift",
"Watch/ResourceEventTransformer.swift",
"Watch/RetryStrategy.swift",
"Watch/SwiftkubeClientTask.swift",
"Watch/WatchEvent.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/swiftkube/model.git
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-log.git
[1/2219] Fetching swift-metrics
[1022/21955] Fetching swift-metrics, model
[1267/25841] Fetching swift-metrics, model, swift-log
[1529/36972] Fetching swift-metrics, model, swift-log, yams
[3660/51079] Fetching swift-metrics, model, swift-log, yams, async-http-client
[16354/128576] Fetching swift-metrics, model, swift-log, yams, async-http-client, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (0.99s)
[23570/124690] Fetching swift-metrics, model, yams, async-http-client, swift-nio
Fetched https://github.com/apple/swift-metrics.git from cache (3.16s)
[99222/122471] Fetching model, yams, async-http-client, swift-nio
Fetched https://github.com/jpsim/Yams.git from cache (3.21s)
[88866/111340] Fetching model, async-http-client, swift-nio
Fetched https://github.com/swiftkube/model.git from cache (11.91s)
Fetched https://github.com/swift-server/async-http-client.git from cache (11.93s)
Fetched https://github.com/apple/swift-nio from cache (12.16s)
Computing version for https://github.com/swiftkube/model.git
Computed https://github.com/swiftkube/model.git at 0.18.0 (15.94s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.95s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (1.20s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (1.04s)
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 (1.00s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-nio-http2.git
[1/1808] Fetching swift-atomics
[363/4509] Fetching swift-atomics, swift-nio-transport-services
[535/10636] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras
[2035/16604] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-algorithms
[3039/28265] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-algorithms, swift-nio-http2
[11167/43308] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-algorithms, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-algorithms.git from cache (2.95s)
Fetched https://github.com/apple/swift-atomics.git from cache (2.96s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (2.97s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (2.97s)
Fetched https://github.com/apple/swift-nio-extras.git from cache (3.60s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.64s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.25.1 (4.67s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.38.0 (1.94s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.86.0 (1.47s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4878] Fetching swift-system
[1514/21855] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (2.41s)
Fetched https://github.com/apple/swift-collections.git from cache (2.44s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.46s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.02s)
Fetching https://github.com/apple/swift-numerics.git
[1/6335] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.79s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.33.0 (1.88s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.07s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.29.0 (1.07s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-asn1.git
[1/917] Fetching swift-http-types
[918/3350] Fetching swift-http-types, swift-service-lifecycle
[1210/4979] Fetching swift-http-types, swift-service-lifecycle, swift-asn1
[1738/6155] Fetching swift-http-types, swift-service-lifecycle, swift-asn1, swift-http-structured-headers
[5092/11247] Fetching swift-http-types, swift-service-lifecycle, swift-asn1, swift-http-structured-headers, swift-async-algorithms
[5579/17707] Fetching swift-http-types, swift-service-lifecycle, swift-asn1, swift-http-structured-headers, swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.60s)
[8383/16531] Fetching swift-http-types, swift-service-lifecycle, swift-asn1, swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-asn1.git from cache (0.64s)
[8248/14902] Fetching swift-http-types, swift-service-lifecycle, swift-async-algorithms, swift-certificates
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.71s)
[8469/12469] Fetching swift-http-types, swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-http-types.git from cache (0.71s)
[7834/11552] Fetching swift-async-algorithms, swift-certificates
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.90s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.01s)
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.02s)
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.14s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.4.0 (1.29s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (1.10s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.12.0 (1.37s)
Fetching https://github.com/apple/swift-crypto.git
[1/16263] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.81s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.4.0 (3.89s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (1.25s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.14.0 (3.15s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.39s)
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-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.86.0
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.12.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/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/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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.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.14.0
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.29.0
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-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.38.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.25.1
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/swiftkube/model.git
Working copy of https://github.com/swiftkube/model.git resolved at 0.18.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.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.2
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-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.4.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.4
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.33.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.4.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Building for debugging...
[0/451] Write sources
[25/451] Compiling _NumericsShims _NumericsShims.c
[26/451] Compiling _AtomicsShims.c
[27/451] Compiling writer.c
[28/451] Compiling CNIOWindows shim.c
[29/451] Compiling CNIOWindows WSAStartup.c
[30/451] Compiling CNIOWASI CNIOWASI.c
[31/451] Compiling reader.c
[32/451] Compiling CNIOLinux shim.c
[32/451] Compiling CNIOPosix event_loop_id.c
[34/451] Compiling CNIOLinux liburing_shims.c
[35/451] Compiling CNIOLLHTTP c_nio_http.c
[36/451] Compiling CNIOExtrasZlib empty.c
[37/451] Compiling parser.c
[38/451] Compiling CNIODarwin shim.c
[39/451] Compiling CNIOLLHTTP c_nio_api.c
[40/451] Write swift-version-24593BA9C3E375BF.txt
[41/451] Compiling api.c
[42/451] Compiling fiat_curve25519_adx_square.S
[43/451] Compiling emitter.c
[44/451] Compiling fiat_p256_adx_sqr.S
[44/451] Compiling fiat_p256_adx_mul.S
[46/451] Compiling scanner.c
[47/457] Compiling CNIOBoringSSLShims shims.c
[49/506] Emitting module Logging
[49/682] Compiling CNIOLLHTTP c_nio_llhttp.c
[51/685] Emitting module RealModule
[52/686] Compiling SwiftkubeModel coreV1+ObjectReference.swift
[53/686] Compiling SwiftkubeModel coreV1+Pod.swift
[54/687] Compiling SwiftkubeModel CronJobExtensions+batch.v1.swift
[55/687] Compiling SwiftkubeModel Hashes.swift
[56/689] Compiling SwiftkubeModel Builders.swift
[57/689] Compiling SwiftkubeModel appsV1+Deployment.swift
[58/689] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[59/689] Compiling RealModule Float80+Real.swift
[60/689] Compiling RealModule Real.swift
[63/689] Compiling SwiftkubeModel coreV1+ConfigMap.swift
[64/689] Compiling SwiftkubeModel coreV1+Container.swift
[65/689] Compiling RealModule ElementaryFunctions.swift
[66/689] Compiling RealModule Float+Real.swift
[67/689] Emitting module InternalCollectionsUtilities
[68/689] Compiling SwiftkubeModel coreV1+ServiceAccount.swift
[69/689] Compiling SwiftkubeModel coreV1+Volume.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[70/689] Emitting module CoreMetrics
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
[71/689] Compiling CoreMetrics Metrics.swift
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
[72/689] Compiling CoreMetrics Locks.swift
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:56:49: error: cannot find type 'pthread_mutex_t' in scope
54 | UnsafeMutablePointer.allocate(capacity: 1)
55 | #else
56 | fileprivate let mutex: UnsafeMutablePointer<pthread_mutex_t> =
| `- error: cannot find type 'pthread_mutex_t' in scope
57 | UnsafeMutablePointer.allocate(capacity: 1)
58 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:65:20: error: cannot find 'pthread_mutexattr_t' in scope
63 | InitializeSRWLock(self.mutex)
64 | #else
65 | var attr = pthread_mutexattr_t()
| `- error: cannot find 'pthread_mutexattr_t' in scope
66 | pthread_mutexattr_init(&attr)
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:66:9: error: cannot find 'pthread_mutexattr_init' in scope
64 | #else
65 | var attr = pthread_mutexattr_t()
66 | pthread_mutexattr_init(&attr)
| `- error: cannot find 'pthread_mutexattr_init' in scope
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
68 |
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:9: error: cannot find 'pthread_mutexattr_settype' in scope
65 | var attr = pthread_mutexattr_t()
66 | pthread_mutexattr_init(&attr)
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'pthread_mutexattr_settype' in scope
68 |
69 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:48: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
65 | var attr = pthread_mutexattr_t()
66 | pthread_mutexattr_init(&attr)
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
68 |
69 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:67:43: error: cannot infer contextual base in reference to member 'init'
65 | var attr = pthread_mutexattr_t()
66 | pthread_mutexattr_init(&attr)
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
| `- error: cannot infer contextual base in reference to member 'init'
68 |
69 | let err = pthread_mutex_init(self.mutex, &attr)
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:69:19: error: cannot find 'pthread_mutex_init' in scope
67 | pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
68 |
69 | let err = pthread_mutex_init(self.mutex, &attr)
| `- error: cannot find 'pthread_mutex_init' in scope
70 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
71 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:78:19: error: cannot find 'pthread_mutex_destroy' in scope
76 | // SRWLOCK does not need to be free'd
77 | #else
78 | let err = pthread_mutex_destroy(self.mutex)
| `- error: cannot find 'pthread_mutex_destroy' in scope
79 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
80 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:92:19: error: cannot find 'pthread_mutex_lock' in scope
90 | AcquireSRWLockExclusive(self.mutex)
91 | #else
92 | let err = pthread_mutex_lock(self.mutex)
| `- error: cannot find 'pthread_mutex_lock' in scope
93 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
94 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:105:19: error: cannot find 'pthread_mutex_unlock' in scope
103 | ReleaseSRWLockExclusive(self.mutex)
104 | #else
105 | let err = pthread_mutex_unlock(self.mutex)
| `- error: cannot find 'pthread_mutex_unlock' in scope
106 | precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
107 | #endif
/host/spi-builder-workspace/.build/checkouts/swift-metrics/Sources/CoreMetrics/Locks.swift:177:14: error: value of type 'ReadWriteLock' has no member 'rwlock'
175 | precondition(err == 0, "\(#function) failed in pthread_rwlock with error \(err)")
176 | #endif
177 | self.rwlock.deallocate()
| `- error: value of type 'ReadWriteLock' has no member 'rwlock'
178 | }
179 |
[73/689] Compiling SwiftkubeModel coreV1+Namespace.swift
[74/689] Compiling SwiftkubeModel coreV1+Node.swift
[75/689] Compiling _NIODataStructures PriorityQueue.swift
[76/689] Compiling _NIODataStructures _TinyArray.swift
[77/689] Compiling RealModule Float16+Real.swift
[80/689] Emitting module _NIOBase64
[81/689] Compiling _NIOBase64 Base64.swift
[82/689] Compiling Logging LogHandler.swift
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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/403] Compiling fiat_curve25519_adx_mul.S
[1/403] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_both.cc:29:
/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.
[2/403] Compiling tls13_both.cc
[2/403] Compiling tls13_enc.cc
[2/403] Compiling tls_method.cc
[2/403] Compiling tls13_server.cc
[2/403] Compiling ssl_x509.cc
[2/403] Compiling tls_record.cc
[2/403] Compiling tls13_client.cc
[2/403] Compiling t1_enc.cc
BUILD FAILURE 6.1 wasm