Build Information
Failed to build opentelemetry-swift, reference main (30c146), with Swift 6.2 for Wasm on 20 Apr 2026 13:13:41 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-telemetry/opentelemetry-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/open-telemetry/opentelemetry-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 30c1468 Updated opentelemetry-swift-core to 2.4.1
Cloned https://github.com/open-telemetry/opentelemetry-swift.git
Revision (git rev-parse @):
30c1468d385bf4485d93ca12c4b71aaeb9c974a6
SUCCESS checkout https://github.com/open-telemetry/opentelemetry-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/open-telemetry/opentelemetry-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:2a8b2d9e022a9894c61e0736af7cdaa1ee64c002dbb133a55c0d7e8980b3ad16
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/open-telemetry/opentelemetry-swift-core.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/grpc/grpc-swift.git
Fetching https://github.com/apple/swift-protobuf.git
Fetching https://github.com/apple/swift-log.git
[1/3187] Fetching swift-metrics
[480/17189] Fetching swift-metrics, opentelemetry-swift-core
[1850/23824] Fetching swift-metrics, opentelemetry-swift-core, swift-log
[2454/75332] Fetching swift-metrics, opentelemetry-swift-core, swift-log, grpc-swift
[11369/122344] Fetching swift-metrics, opentelemetry-swift-core, swift-log, grpc-swift, swift-protobuf
[32782/205522] Fetching swift-metrics, opentelemetry-swift-core, swift-log, grpc-swift, swift-protobuf, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (2.31s)
[100765/198887] Fetching swift-metrics, opentelemetry-swift-core, grpc-swift, swift-protobuf, swift-nio
Fetched https://github.com/grpc/grpc-swift.git from cache (3.68s)
[100114/147379] Fetching swift-metrics, opentelemetry-swift-core, swift-protobuf, swift-nio
Fetched https://github.com/apple/swift-metrics.git from cache (11.69s)
Fetched https://github.com/open-telemetry/opentelemetry-swift-core.git from cache (11.70s)
Fetched https://github.com/apple/swift-protobuf.git from cache (11.83s)
Fetched https://github.com/apple/swift-nio.git from cache (11.86s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.36.1 (12.44s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.27.5 (4.09s)
Fetching https://github.com/apple/swift-nio-http2.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-collections.git
Fetching https://github.com/apple/swift-nio-extras.git
[1/1820] Fetching swift-atomics
[147/4663] Fetching swift-atomics, swift-nio-transport-services
[1158/11173] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras
[3033/34749] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-collections
[4328/46857] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-collections, swift-nio-http2
[9606/62276] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-collections, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.46s)
[12972/55766] Fetching swift-atomics, swift-nio-transport-services, swift-collections, swift-nio-http2, swift-nio-ssl
Fetched https://github.com/apple/swift-atomics.git from cache (3.74s)
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (3.74s)
Fetched https://github.com/apple/swift-collections.git from cache (3.82s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (4.21s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (4.22s)
Computing version for https://github.com/open-telemetry/opentelemetry-swift-core.git
Computed https://github.com/open-telemetry/opentelemetry-swift-core.git at 2.4.1 (5.12s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.38s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (1.05s)
Fetching https://github.com/apple/swift-system.git
[1/5601] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.51s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.10.0 (0.93s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.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.27.0 (0.41s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.43.0 (0.48s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.58s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.94s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.0 (0.79s)
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/1242] Fetching swift-http-structured-headers
[1243/3045] Fetching swift-http-structured-headers, swift-asn1
[1244/10197] Fetching swift-http-structured-headers, swift-asn1, swift-certificates
[1317/12942] Fetching swift-http-structured-headers, swift-asn1, swift-certificates, swift-service-lifecycle
[1790/19000] Fetching swift-http-structured-headers, swift-asn1, swift-certificates, swift-service-lifecycle, swift-algorithms
[4477/25247] Fetching swift-http-structured-headers, swift-asn1, swift-certificates, swift-service-lifecycle, swift-algorithms, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.78s)
[8401/24005] Fetching swift-asn1, swift-certificates, swift-service-lifecycle, swift-algorithms, swift-async-algorithms
Fetching https://github.com/apple/swift-http-types.git
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.06s)
Fetched https://github.com/apple/swift-asn1.git from cache (1.07s)
[1/1043] Fetching swift-http-types
Fetched https://github.com/apple/swift-algorithms.git from cache (1.19s)
Fetched https://github.com/apple/swift-certificates.git from cache (1.19s)
Fetched https://github.com/apple/swift-http-types.git from cache (0.39s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.20s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.73s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.55s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (1.00s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.62s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.50s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.76s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.48s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.88s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (0.67s)
Fetching https://github.com/apple/swift-crypto.git
[1/17429] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git from cache (2.92s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (3.40s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (2.12s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.10.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.5.1
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-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.43.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.27.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
Creating working copy for https://github.com/open-telemetry/opentelemetry-swift-core.git
Working copy of https://github.com/open-telemetry/opentelemetry-swift-core.git resolved at 2.4.1
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.0
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.27.5
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.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.12.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.98.0
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.36.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.7.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.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.34.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.11.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.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.37.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.1.3
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GRPCSwiftPlugin
Building for debugging...
[2/494] Write sources
[40/494] Compiling CNIOWindows shim.c
[41/494] Compiling CNIOWASI CNIOWASI.c
[42/494] Compiling CNIOWindows WSAStartup.c
[43/494] Compiling CNIOOpenBSD shim.c
[44/494] Compiling CNIOLinux liburing_shims.c
[44/494] Compiling _AtomicsShims.c
[46/494] Compiling CNIOLinux shim.c
[47/494] Compiling CNIOPosix event_loop_id.c
[48/494] Compiling CNIODarwin shim.c
[49/494] Compiling CNIOLLHTTP c_nio_http.c
[50/494] Compiling fiat_p256_adx_mul.S
[51/494] Compiling fiat_p256_adx_sqr.S
[52/494] Write swift-version-24593BA9C3E375BF.txt
[53/494] Compiling CNIOLLHTTP c_nio_api.c
[54/494] Compiling fiat_curve25519_adx_square.S
[55/494] Compiling fiat_curve25519_adx_mul.S
[56/584] Compiling CNIOBoringSSLShims shims.c
[57/587] Compiling CNIOLLHTTP c_nio_llhttp.c
[58/698] Compiling tls_method.cc
[59/704] Compiling tls_record.cc
[60/738] Compiling tls13_server.cc
[62/767] Emitting module InternalCollectionsUtilities
[63/769] Compiling InternalCollectionsUtilities _SortedCollection.swift
[64/769] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[65/769] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[66/769] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[67/769] Compiling InternalCollectionsUtilities Integer rank.swift
[68/769] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[69/769] Compiling InternalCollectionsUtilities UInt+reversed.swift
[70/769] Compiling InternalCollectionsUtilities String+Padding.swift
[71/769] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[72/769] Compiling InternalCollectionsUtilities Debugging.swift
[73/769] Compiling InternalCollectionsUtilities Descriptions.swift
[74/769] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[75/769] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[76/769] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[77/769] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[78/769] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[79/769] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[80/769] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[81/769] Compiling InternalCollectionsUtilities Span+Extras.swift
[82/769] Compiling CoreMetrics WithMetricsFactory.swift
[84/770] Emitting module _NIOBase64
[85/770] Compiling _NIOBase64 Base64.swift
[86/804] Wrapping AST for InternalCollectionsUtilities for debugging
[88/804] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[89/804] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[90/804] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[91/804] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[92/804] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[93/804] Compiling _NIODataStructures PriorityQueue.swift
[94/804] Compiling _NIODataStructures _TinyArray.swift
[95/808] Compiling ContainersPreview RandomAccessContainer.swift
[96/808] Compiling ContainersPreview RangeExpression2.swift
[97/808] Compiling ContainersPreview RangeReplaceableContainer.swift
[98/808] Compiling ContainersPreview Drain+Map.swift
[98/808] Wrapping AST for _NIOBase64 for debugging
[100/808] Compiling ContainersPreview Producer+Map.swift
[101/808] Compiling ContainersPreview Producer+Reduce.swift
[102/808] Compiling ContainersPreview Producer.swift
[103/808] Compiling ContainersPreview Borrow.swift
[104/808] Compiling ContainersPreview Drain+Reduce.swift
[105/808] Compiling ContainersPreview Drain.swift
[106/808] Compiling ContainersPreview Producer+Collect.swift
[107/808] Compiling ContainersPreview Producer+Filter.swift
[108/808] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[109/808] Compiling ContainersPreview BorrowingSequence.swift
[110/808] Compiling ContainersPreview BidirectionalContainer.swift
[111/808] Compiling ContainersPreview Container+Filter.swift
[112/808] Compiling ContainersPreview Container+SpanwiseZip.swift
[113/808] Compiling ContainersPreview Container.swift
[114/808] Compiling ContainersPreview ContainerIterator.swift
[115/808] Compiling ContainersPreview DynamicContainer.swift
[116/808] Compiling ContainersPreview MutableContainer.swift
[117/808] Compiling ContainersPreview PermutableContainer.swift
[118/808] Compiling ContainersPreview Box.swift
[119/808] Compiling ContainersPreview Inout.swift
[120/808] Compiling ContainersPreview InputSpan.swift
[121/808] Compiling ContainersPreview Shared.swift
[122/808] Emitting module ContainersPreview
[123/808] Compiling ContainersPreview OutputSpan+Extras.swift
[124/808] Compiling ContainersPreview TemporaryAllocation.swift
[125/808] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[126/808] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[127/808] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[129/809] Compiling CoreMetrics MappingMetricsFactory.swift
[130/809] Compiling CoreMetrics Metrics.swift
[131/809] Compiling Logging MetadataProvider.swift
[132/809] Emitting module Logging
[133/809] Compiling Logging Locks.swift
[134/809] Emitting module CoreMetrics
[135/809] Compiling CoreMetrics Locks.swift
[137/810] Emitting module _NIODataStructures
[138/810] Compiling _NIODataStructures Heap.swift
[140/811] Compiling OpenTelemetryApi Db_attributes.swift
[141/811] Compiling OpenTelemetryApi Deployment_attributes.swift
[142/811] Compiling OpenTelemetryApi Destination_attributes.swift
[143/811] Compiling OpenTelemetryApi Device_attributes.swift
[144/811] Compiling OpenTelemetryApi Disk_attributes.swift
[145/811] Compiling OpenTelemetryApi Dns_attributes.swift
[146/811] Compiling OpenTelemetryApi Mainframe_attributes.swift
[147/811] Compiling OpenTelemetryApi Messaging_attributes.swift
[148/811] Compiling OpenTelemetryApi Network_attributes.swift
[149/811] Compiling OpenTelemetryApi Nfs_attributes.swift
[150/811] Compiling OpenTelemetryApi Nodejs_attributes.swift
[151/811] Compiling OpenTelemetryApi Oci_attributes.swift
[151/822] Wrapping AST for ContainersPreview for debugging
[152/862] Wrapping AST for _NIODataStructures for debugging
[154/862] Compiling SharedTestUtils XCTestCase+Wait.swift
/host/spi-builder-workspace/Tests/Shared/TestUtils/XCTestCase+Wait.swift:10:23: error: use of local variable 'expectation' before its declaration
8 | extension XCTestCase {
9 | public func wait(timeout: TimeInterval = 3, interval: TimeInterval = 0.1, until block: @escaping () throws -> Bool) {
10 | let expectation = expectation(description: "wait for block to pass")
| | `- error: use of local variable 'expectation' before its declaration
| `- note: 'expectation' declared here
11 | let timer = Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { _ in
12 | do {
/host/spi-builder-workspace/Tests/Shared/TestUtils/XCTestCase+Wait.swift:21:15: error: extra argument 'for' in call
19 | }
20 |
21 | wait(for: [expectation], timeout: timeout)
| `- error: extra argument 'for' in call
22 | timer.invalidate()
23 | }
/host/spi-builder-workspace/Tests/Shared/TestUtils/XCTestCase+Wait.swift:21:46: error: missing argument for parameter 'until' in call
7 |
8 | extension XCTestCase {
9 | public func wait(timeout: TimeInterval = 3, interval: TimeInterval = 0.1, until block: @escaping () throws -> Bool) {
| `- note: 'wait(timeout:interval:until:)' declared here
10 | let expectation = expectation(description: "wait for block to pass")
11 | let timer = Timer.scheduledTimer(withTimeInterval: interval, repeats: true) { _ in
:
19 | }
20 |
21 | wait(for: [expectation], timeout: timeout)
| `- error: missing argument for parameter 'until' in call
22 | timer.invalidate()
23 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[155/862] Emitting module SharedTestUtils
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:26:30: error: cannot find type 'DispatchQueue' in scope
24 | public private(set) var serverPort: Int = 0
25 | private var isRunning = false
26 | private var serverQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
27 | private let startSemaphore = DispatchSemaphore(value: 0)
28 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:27:34: error: cannot find 'DispatchSemaphore' in scope
25 | private var isRunning = false
26 | private var serverQueue: DispatchQueue?
27 | private let startSemaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
28 |
29 | // Request tracking for OTLP tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:31:42: error: cannot find 'DispatchQueue' in scope
29 | // Request tracking for OTLP tests
30 | internal var receivedRequests: [(request: HTTPRequestData, body: Data)] = []
31 | internal let receivedRequestsQueue = DispatchQueue(label: "HttpTestServer.requests")
| `- error: cannot find 'DispatchQueue' in scope
32 |
33 | // Configuration for URLSession tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:56:34: error: cannot find type 'DispatchSemaphore' in scope
54 | }
55 |
56 | public func start(semaphore: DispatchSemaphore?) throws {
| `- error: cannot find type 'DispatchSemaphore' in scope
57 | // Create socket
58 | #if canImport(Darwin)
[156/862] Compiling SharedTestUtils HttpTestServer.swift
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:26:30: error: cannot find type 'DispatchQueue' in scope
24 | public private(set) var serverPort: Int = 0
25 | private var isRunning = false
26 | private var serverQueue: DispatchQueue?
| `- error: cannot find type 'DispatchQueue' in scope
27 | private let startSemaphore = DispatchSemaphore(value: 0)
28 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:27:34: error: cannot find 'DispatchSemaphore' in scope
25 | private var isRunning = false
26 | private var serverQueue: DispatchQueue?
27 | private let startSemaphore = DispatchSemaphore(value: 0)
| `- error: cannot find 'DispatchSemaphore' in scope
28 |
29 | // Request tracking for OTLP tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:31:42: error: cannot find 'DispatchQueue' in scope
29 | // Request tracking for OTLP tests
30 | internal var receivedRequests: [(request: HTTPRequestData, body: Data)] = []
31 | internal let receivedRequestsQueue = DispatchQueue(label: "HttpTestServer.requests")
| `- error: cannot find 'DispatchQueue' in scope
32 |
33 | // Configuration for URLSession tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:56:34: error: cannot find type 'DispatchSemaphore' in scope
54 | }
55 |
56 | public func start(semaphore: DispatchSemaphore?) throws {
| `- error: cannot find type 'DispatchSemaphore' in scope
57 | // Create socket
58 | #if canImport(Darwin)
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:53:30: error: argument passed to call that takes no arguments
51 |
52 | public func start() throws {
53 | try start(semaphore: nil)
| `- error: argument passed to call that takes no arguments
54 | }
55 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:53:30: error: 'nil' requires a contextual type
51 |
52 | public func start() throws {
53 | try start(semaphore: nil)
| `- error: 'nil' requires a contextual type
54 | }
55 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:61:24: error: cannot find 'socket' in scope
59 | serverSocket = socket(AF_INET, SOCK_STREAM, 0)
60 | #else
61 | serverSocket = socket(AF_INET, Int32(SOCK_STREAM.rawValue), 0)
| `- error: cannot find 'socket' in scope
62 | #endif
63 | guard serverSocket >= 0 else {
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:61:46: error: cannot find 'SOCK_STREAM' in scope
59 | serverSocket = socket(AF_INET, SOCK_STREAM, 0)
60 | #else
61 | serverSocket = socket(AF_INET, Int32(SOCK_STREAM.rawValue), 0)
| `- error: cannot find 'SOCK_STREAM' in scope
62 | #endif
63 | guard serverSocket >= 0 else {
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:69:9: error: cannot find 'setsockopt' in scope
67 | // Allow reuse
68 | var yes: Int32 = 1
69 | setsockopt(serverSocket, SOL_SOCKET, SO_REUSEADDR, &yes, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'setsockopt' in scope
70 |
71 | // Set non-blocking mode for OTLP tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:69:46: error: cannot find 'SO_REUSEADDR' in scope
67 | // Allow reuse
68 | var yes: Int32 = 1
69 | setsockopt(serverSocket, SOL_SOCKET, SO_REUSEADDR, &yes, socklen_t(MemoryLayout<Int32>.size))
| `- error: cannot find 'SO_REUSEADDR' in scope
70 |
71 | // Set non-blocking mode for OTLP tests
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:75:58: error: cannot find 'O_NONBLOCK' in scope
73 | let flags = fcntl(serverSocket, F_GETFL, 0)
74 | if flags >= 0 {
75 | _ = fcntl(serverSocket, F_SETFL, flags | O_NONBLOCK)
| `- error: cannot find 'O_NONBLOCK' in scope
76 | }
77 | }
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:86:13: error: cannot find 'bind' in scope
84 |
85 | let bindResult = withUnsafePointer(to: &addr) { ptr in
86 | bind(serverSocket, UnsafeRawPointer(ptr).assumingMemoryBound(to: sockaddr.self), socklen_t(MemoryLayout<sockaddr_in>.size))
| `- error: cannot find 'bind' in scope
87 | }
88 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:98:13: error: cannot find 'getsockname' in scope
96 | var actualAddrLen = socklen_t(MemoryLayout<sockaddr_in>.size)
97 | let getResult = withUnsafeMutablePointer(to: &actualAddr) { ptr in
98 | getsockname(serverSocket, UnsafeMutableRawPointer(ptr).assumingMemoryBound(to: sockaddr.self), &actualAddrLen)
| `- error: cannot find 'getsockname' in scope
99 | }
100 |
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:114:15: error: cannot find 'listen' in scope
112 |
113 | // Listen
114 | guard listen(serverSocket, 10) >= 0 else {
| `- error: cannot find 'listen' in scope
115 | close(serverSocket)
116 | throw TestServerError.listenFailed
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:120:23: error: cannot find 'DispatchQueue' in scope
118 |
119 | isRunning = true
120 | serverQueue = DispatchQueue(label: "HttpTestServer", attributes: .concurrent)
| `- error: cannot find 'DispatchQueue' in scope
121 |
122 | // Start accept loop
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:120:75: error: cannot infer contextual base in reference to member 'concurrent'
118 |
119 | isRunning = true
120 | serverQueue = DispatchQueue(label: "HttpTestServer", attributes: .concurrent)
| `- error: cannot infer contextual base in reference to member 'concurrent'
121 |
122 | // Start accept loop
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:155:35: error: cannot infer contextual base in reference to member 'barrier'
153 |
154 | // Wait for queue to finish
155 | serverQueue?.sync(flags: .barrier) {}
| `- error: cannot infer contextual base in reference to member 'barrier'
156 | serverQueue = nil
157 | }
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:181:13: error: cannot find 'Thread' in scope
179 | return HTTPRequest(data: request.request, body: request.body)
180 | }
181 | Thread.sleep(forTimeInterval: 0.1)
| `- error: cannot find 'Thread' in scope
182 | }
183 | return nil
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:231:21: error: cannot find 'Thread' in scope
229 | if clientSocket < 0 {
230 | if errno == EAGAIN || errno == EWOULDBLOCK {
231 | Thread.sleep(forTimeInterval: 0.01)
| `- error: cannot find 'Thread' in scope
232 | continue
233 | }
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:254:21: error: cannot find 'Thread' in scope
252 | guard bytesRead > 0 else {
253 | if bytesRead < 0 && errno == EAGAIN {
254 | Thread.sleep(forTimeInterval: 0.01)
| `- error: cannot find 'Thread' in scope
255 | continue
256 | }
/host/spi-builder-workspace/Tests/Shared/TestUtils/HttpTestServer.swift:323:25: error: cannot find 'Thread' in scope
321 | guard bytesRead > 0 else {
322 | if bytesRead < 0 && errno == EAGAIN {
323 | Thread.sleep(forTimeInterval: 0.01)
| `- error: cannot find 'Thread' in scope
324 | continue
325 | }
[156/862] Compiling tls13_both.cc
[156/862] Compiling tls13_enc.cc
[157/862] Compiling OpenTelemetryApi Azure_attributes.swift
[158/862] Compiling OpenTelemetryApi Browser_attributes.swift
[159/862] Compiling OpenTelemetryApi Cassandra_attributes.swift
[160/862] Compiling OpenTelemetryApi Cicd_attributes.swift
[161/862] Compiling OpenTelemetryApi Client_attributes.swift
[162/862] Compiling OpenTelemetryApi Cloud_attributes.swift
[163/862] Compiling OpenTelemetryApi Cloudevents_attributes.swift
[164/862] Compiling OpenTelemetryApi Cloudfoundry_attributes.swift
[165/862] Compiling OpenTelemetryApi Code_attributes.swift
[166/862] Compiling OpenTelemetryApi Container_attributes.swift
[167/862] Compiling OpenTelemetryApi Cpu_attributes.swift
[168/862] Compiling OpenTelemetryApi Cpython_attributes.swift
[169/862] Compiling Logging LogHandler.swift
[169/862] Compiling tls13_client.cc
BUILD FAILURE 6.2 wasm