Build Information
Failed to build hummingbird-lambda, reference 2.0.0-rc.4 (414379
), with Swift 6.1 for Wasm on 28 May 2025 01:45:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/hummingbird-project/hummingbird-lambda.git
Reference: 2.0.0-rc.4
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/hummingbird-project/hummingbird-lambda
* tag 2.0.0-rc.4 -> FETCH_HEAD
HEAD is now at 414379b Bump github.com/swift-server/swift-aws-lambda-events from 0.5.0 to 1.0.0 in the all-dependencies group (#46)
Cloned https://github.com/hummingbird-project/hummingbird-lambda.git
Revision (git rev-parse @):
414379b227c3d01b645846be2cb2b423aef352a4
SUCCESS checkout https://github.com/hummingbird-project/hummingbird-lambda.git at 2.0.0-rc.4
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/hummingbird-project/hummingbird-lambda.git
https://github.com/hummingbird-project/hummingbird-lambda.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-aws-lambda-runtime",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0-alpha.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-aws-lambda-runtime.git"
},
{
"identity" : "swift-aws-lambda-events",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-aws-lambda-events.git"
},
{
"identity" : "swift-extras-base64",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-extras/swift-extras-base64.git"
},
{
"identity" : "hummingbird",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/hummingbird-project/hummingbird.git"
},
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.32.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
}
],
"manifest_display_name" : "hummingbird-lambda",
"name" : "hummingbird-lambda",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "HummingbirdLambda",
"targets" : [
"HummingbirdLambda"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HummingbirdLambdaTesting",
"targets" : [
"HummingbirdLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HBLambdaTest",
"targets" : [
"HBLambdaTest"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "HummingbirdLambdaTests",
"module_type" : "SwiftTarget",
"name" : "HummingbirdLambdaTests",
"path" : "Tests/HummingbirdLambdaTests",
"product_dependencies" : [
"NIOPosix"
],
"sources" : [
"LambdaTests.swift"
],
"target_dependencies" : [
"HummingbirdLambda",
"HummingbirdLambdaTesting"
],
"type" : "test"
},
{
"c99name" : "HummingbirdLambdaTesting",
"module_type" : "SwiftTarget",
"name" : "HummingbirdLambdaTesting",
"path" : "Sources/HummingbirdLambdaTesting",
"product_memberships" : [
"HummingbirdLambdaTesting"
],
"sources" : [
"APIGatewayLambda.swift",
"APIGatewayV2Lambda.swift",
"HBLambdaTestFramework.swift",
"Lambda+Testing.swift",
"LambdaEvent.swift"
],
"target_dependencies" : [
"HummingbirdLambda"
],
"type" : "library"
},
{
"c99name" : "HummingbirdLambda",
"module_type" : "SwiftTarget",
"name" : "HummingbirdLambda",
"path" : "Sources/HummingbirdLambda",
"product_dependencies" : [
"AWSLambdaRuntime",
"AWSLambdaEvents",
"ExtrasBase64",
"Hummingbird"
],
"product_memberships" : [
"HummingbirdLambda",
"HummingbirdLambdaTesting",
"HBLambdaTest"
],
"sources" : [
"APIGatewayLambda.swift",
"APIGatewayV2Lambda.swift",
"BasicLambdaRequestContext.swift",
"CollateResponseBodyWriter.swift",
"Deprecations.swift",
"Exports.swift",
"LambdaFunction.swift",
"LambdaHandler.swift",
"LambdaRequestContext.swift",
"Request+APIGateway.swift",
"Response+APIGateway.swift"
],
"type" : "library"
},
{
"c99name" : "HBLambdaTest",
"module_type" : "SwiftTarget",
"name" : "HBLambdaTest",
"path" : "Sources/HBLambdaTest",
"product_memberships" : [
"HBLambdaTest"
],
"sources" : [
"maths.swift"
],
"target_dependencies" : [
"HummingbirdLambda"
],
"type" : "executable"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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-nio.git
Fetching https://github.com/swift-extras/swift-extras-base64.git
Fetching https://github.com/hummingbird-project/hummingbird.git
Fetching https://github.com/swift-server/swift-aws-lambda-runtime.git
Fetching https://github.com/swift-server/swift-aws-lambda-events.git
[1/11517] Fetching swift-aws-lambda-runtime
[117/13953] Fetching swift-aws-lambda-runtime, swift-aws-lambda-events
[870/14786] Fetching swift-aws-lambda-runtime, swift-aws-lambda-events, swift-extras-base64
[3846/39269] Fetching swift-aws-lambda-runtime, swift-aws-lambda-events, swift-extras-base64, hummingbird
Fetched https://github.com/swift-extras/swift-extras-base64.git from cache (0.31s)
[3257/38436] Fetching swift-aws-lambda-runtime, swift-aws-lambda-events, hummingbird
[9480/114491] Fetching swift-aws-lambda-runtime, swift-aws-lambda-events, hummingbird, swift-nio
Fetched https://github.com/swift-server/swift-aws-lambda-events.git from cache (2.91s)
Fetched https://github.com/hummingbird-project/hummingbird.git from cache (2.93s)
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (2.96s)
Fetched https://github.com/apple/swift-nio.git from cache (3.58s)
Computing version for https://github.com/swift-extras/swift-extras-base64.git
Computed https://github.com/swift-extras/swift-extras-base64.git at 1.0.0 (5.64s)
Computing version for https://github.com/swift-server/swift-aws-lambda-events.git
Computed https://github.com/swift-server/swift-aws-lambda-events.git at 1.0.0 (0.43s)
Fetching https://github.com/apple/swift-http-types.git
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.23s)
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.69s)
Computing version for https://github.com/hummingbird-project/hummingbird.git
Computed https://github.com/hummingbird-project/hummingbird.git at 2.14.0 (0.64s)
Fetching https://github.com/swift-server/async-http-client.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
[1/2426] Fetching swift-service-lifecycle
[2427/16440] Fetching swift-service-lifecycle, async-http-client
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-http2.git
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (0.42s)
[981/14014] Fetching async-http-client
Fetching https://github.com/apple/swift-distributed-tracing.git
[13455/19928] Fetching async-http-client, swift-nio-extras
[14069/24902] Fetching async-http-client, swift-nio-extras, swift-distributed-tracing
[16014/36429] Fetching async-http-client, swift-nio-extras, swift-distributed-tracing, swift-nio-http2
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.97s)
Fetching https://github.com/apple/swift-metrics.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.99s)
[16896/25541] Fetching async-http-client, swift-nio-http2
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/swift-server/async-http-client.git from cache (1.81s)
[1/2206] Fetching swift-metrics
Fetching https://github.com/apple/swift-collections.git
[2207/6042] Fetching swift-metrics, swift-log
Fetched https://github.com/apple/swift-metrics.git from cache (0.65s)
[1036/3836] Fetching swift-log
Fetching https://github.com/apple/swift-atomics.git
[3837/20427] Fetching swift-log, swift-collections
[4501/23094] Fetching swift-log, swift-collections, swift-nio-transport-services
Fetched https://github.com/apple/swift-log.git from cache (0.85s)
[2069/19258] Fetching swift-collections, swift-nio-transport-services
Fetching https://github.com/apple/swift-async-algorithms.git
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.91s)
[6816/20968] Fetching swift-collections, swift-nio-transport-services, swift-atomics
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.64s)
[4862/18301] Fetching swift-collections, swift-atomics
[4948/33144] Fetching swift-collections, swift-atomics, swift-nio-ssl
[7807/38129] Fetching swift-collections, swift-atomics, swift-nio-ssl, swift-async-algorithms
Fetched https://github.com/apple/swift-atomics.git from cache (0.58s)
[14280/36419] Fetching swift-collections, swift-nio-ssl, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.50s)
[13081/31434] Fetching swift-collections, swift-nio-ssl
Fetched https://github.com/apple/swift-collections.git from cache (1.71s)
[13656/14843] Fetching swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (2.76s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (6.80s)
Fetching https://github.com/apple/swift-system.git
[1/4391] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.37s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.90s)
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.54s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (0.57s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (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.54s)
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.25s)
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.82s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.72s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.83s)
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 (0.73s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.27.1 (0.60s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-http-structured-headers.git
[1/1141] Fetching swift-http-structured-headers
[230/2731] Fetching swift-http-structured-headers, swift-asn1
[2732/8690] Fetching swift-http-structured-headers, swift-asn1, swift-algorithms
[5414/14845] Fetching swift-http-structured-headers, swift-asn1, swift-algorithms, swift-certificates
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.49s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.49s)
Fetched https://github.com/apple/swift-certificates.git from cache (0.49s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.49s)
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 (1.09s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.64s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.89s)
Fetching https://github.com/apple/swift-crypto.git
[1/13936] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (1.43s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (3.54s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.51s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.61s)
Fetching https://github.com/apple/swift-numerics.git
[1/5691] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.41s)
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.99s)
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.58s)
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/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.26.1 (0.50s)
Computing version for https://github.com/swift-server/swift-aws-lambda-runtime.git
Computed https://github.com/swift-server/swift-aws-lambda-runtime.git at 1.0.0-alpha.3 (0.50s)
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/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-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-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/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/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/swift-server/swift-aws-lambda-runtime.git
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime.git resolved at 1.0.0-alpha.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-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-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-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-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-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.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.4.2
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/swift-extras/swift-extras-base64.git
Working copy of https://github.com/swift-extras/swift-extras-base64.git resolved at 1.0.0
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/hummingbird-project/hummingbird.git
Working copy of https://github.com/hummingbird-project/hummingbird.git resolved at 2.14.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.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.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-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/swift-server/swift-aws-lambda-events.git
Working copy of https://github.com/swift-server/swift-aws-lambda-events.git resolved at 1.0.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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/97] Write sources
[36/97] Compiling CNIOWindows shim.c
[37/97] Compiling CNIOWindows WSAStartup.c
[38/97] Compiling CNIOLinux shim.c
[38/97] Compiling _AtomicsShims.c
[40/97] Compiling CNIOWASI CNIOWASI.c
[41/97] Compiling CNIOLLHTTP c_nio_http.c
[42/97] Write sources
[48/97] Compiling CNIOLinux liburing_shims.c
[49/97] Compiling CNIODarwin shim.c
[50/97] Compiling CNIOLLHTTP c_nio_api.c
[51/97] Write swift-version-24593BA9C3E375BF.txt
[52/125] Compiling CNIOLLHTTP c_nio_llhttp.c
[54/133] Emitting module HTTPTypes
[55/134] Compiling _NIODataStructures PriorityQueue.swift
[56/134] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[57/135] Emitting module InternalCollectionsUtilities
[58/135] Compiling ServiceContextModule ServiceContextKey.swift
[59/135] Compiling InternalCollectionsUtilities Descriptions.swift
[60/135] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[61/135] Compiling ServiceContextModule ServiceContext.swift
[62/135] Emitting module ServiceContextModule
[63/135] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[64/135] Compiling InternalCollectionsUtilities Integer rank.swift
[65/136] Compiling HTTPTypes ISOLatin1String.swift
[66/136] Emitting module _NIOBase64
[67/136] Emitting module Logging
[68/136] Compiling Logging Locks.swift
[69/136] Compiling HTTPTypes HTTPFieldName.swift
[70/136] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[71/136] Compiling InternalCollectionsUtilities Debugging.swift
[72/136] Compiling _NIOBase64 Base64.swift
[73/136] Compiling HTTPTypes HTTPParsedFields.swift
[74/136] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[75/136] Compiling InternalCollectionsUtilities _SortedCollection.swift
[76/136] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[77/136] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[78/136] Compiling _NIODataStructures _TinyArray.swift
[79/136] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[80/136] Compiling InternalCollectionsUtilities UInt+reversed.swift
[83/137] Compiling HTTPTypes HTTPField.swift
[83/137] Compiling c-nioatomics.c
[85/138] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[86/147] Compiling HTTPTypes HTTPRequest.swift
[88/150] Compiling Instrumentation NoOpInstrument.swift
[89/150] 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 | }
[90/150] Compiling HTTPTypes NIOLock.swift
[91/150] Compiling Instrumentation MultiplexInstrument.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[92/150] 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.
[93/150] Compiling Instrumentation Instrument.swift
[94/150] 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.
[95/150] Compiling Logging MetadataProvider.swift
[95/150] Compiling c-atomics.c
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
[1/1] Compiling plugin AWSLambdaPackager
Building for debugging...
[1/45] Write swift-version-24593BA9C3E375BF.txt
[3/84] Compiling Logging MetadataProvider.swift
[4/84] Compiling _NIODataStructures PriorityQueue.swift
[5/84] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[6/84] Emitting module ServiceContextModule
[7/85] Emitting module Logging
[8/85] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[9/85] Compiling InternalCollectionsUtilities Debugging.swift
[10/85] Compiling InternalCollectionsUtilities Descriptions.swift
[11/85] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[12/85] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[13/85] Compiling InternalCollectionsUtilities UInt+reversed.swift
[14/85] Compiling ServiceContextModule ServiceContextKey.swift
[15/85] Compiling ServiceContextModule ServiceContext.swift
[16/86] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[17/86] Compiling InternalCollectionsUtilities Integer rank.swift
[19/86] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[20/86] Compiling _NIODataStructures Heap.swift
[21/86] Emitting module _NIODataStructures
[22/86] Compiling _NIODataStructures _TinyArray.swift
[23/87] Compiling HTTPTypes ISOLatin1String.swift
[24/87] Compiling _NIOBase64 Base64.swift
[25/87] Emitting module _NIOBase64
[28/89] Emitting module InternalCollectionsUtilities
[29/89] Compiling HTTPTypes HTTPParsedFields.swift
[30/89] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[31/89] Compiling InternalCollectionsUtilities _SortedCollection.swift
[32/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[33/89] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[34/90] Compiling HTTPTypes NIOLock.swift
[36/90] Compiling Logging LogHandler.swift
[37/90] Compiling Logging Locks.swift
[38/90] Compiling Logging Logging.swift
[39/91] Compiling HTTPTypes HTTPRequest.swift
[40/91] Compiling HTTPTypes HTTPResponse.swift
[41/91] Compiling c-atomics.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/94] 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
[44/94] 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
[45/94] 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 |
[46/94] Emitting module HTTPTypes
[47/94] Compiling HTTPTypes HTTPField.swift
[48/94] Compiling HTTPTypes HTTPFieldName.swift
[49/94] Compiling HTTPTypes HTTPFields.swift
[51/95] Compiling ExtrasBase64 Base32.swift
[52/101] Compiling NIOConcurrencyHelpers lock.swift
[53/101] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[54/101] Compiling NIOConcurrencyHelpers NIOLock.swift
[55/101] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[56/101] Emitting module NIOConcurrencyHelpers
[57/101] Compiling NIOConcurrencyHelpers atomics.swift
BUILD FAILURE 6.1 wasm