Build Information
Failed to build swift-distributed-tracing, reference 1.3.0 (660088
), with Swift 6.1 for Wasm on 11 Sep 2025 12:13:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-distributed-tracing.git
Reference: 1.3.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/apple/swift-distributed-tracing
* tag 1.3.0 -> FETCH_HEAD
HEAD is now at 6600888 Pushing InMemoryTracer (#180) over the finish line (#183)
Cloned https://github.com/apple/swift-distributed-tracing.git
Revision (git rev-parse @):
6600888f4cb5bbf1bcac51000f60b2cbd224c91b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-distributed-tracing.git at 1.3.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/apple/swift-distributed-tracing.git
https://github.com/apple/swift-distributed-tracing.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-service-context",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-service-context.git"
}
],
"manifest_display_name" : "swift-distributed-tracing",
"name" : "swift-distributed-tracing",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Instrumentation",
"targets" : [
"Instrumentation"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Tracing",
"targets" : [
"Tracing"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InMemoryTracing",
"targets" : [
"InMemoryTracing"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "_CWASI",
"module_type" : "ClangTarget",
"name" : "_CWASI",
"path" : "Sources/_CWASI",
"product_memberships" : [
"Tracing",
"InMemoryTracing"
],
"sources" : [
"_CWASI.c"
],
"type" : "library"
},
{
"c99name" : "TracingTests",
"module_type" : "SwiftTarget",
"name" : "TracingTests",
"path" : "Tests/TracingTests",
"sources" : [
"ActorTracingTests.swift",
"DynamicTracepointTracerTests.swift",
"SpanTests.swift",
"TestTracer.swift",
"TracedLock.swift",
"TracedLockTests.swift",
"TracerTests+swift57.swift",
"TracerTests.swift",
"TracerTimeTests.swift",
"TracingInstrumentationSystemTests.swift"
],
"target_dependencies" : [
"Tracing"
],
"type" : "test"
},
{
"c99name" : "Tracing",
"module_type" : "SwiftTarget",
"name" : "Tracing",
"path" : "Sources/Tracing",
"product_dependencies" : [
"ServiceContextModule"
],
"product_memberships" : [
"Tracing",
"InMemoryTracing"
],
"sources" : [
"InstrumentationSystem+Tracing.swift",
"NoOpTracer.swift",
"SpanProtocol.swift",
"Tracer.swift",
"TracerProtocol+Legacy.swift",
"TracerProtocol.swift",
"TracingTime.swift"
],
"target_dependencies" : [
"Instrumentation",
"_CWASI"
],
"type" : "library"
},
{
"c99name" : "InstrumentationTests",
"module_type" : "SwiftTarget",
"name" : "InstrumentationTests",
"path" : "Tests/InstrumentationTests",
"sources" : [
"InstrumentTests.swift",
"InstrumentationSystemTests.swift"
],
"target_dependencies" : [
"Instrumentation"
],
"type" : "test"
},
{
"c99name" : "Instrumentation",
"module_type" : "SwiftTarget",
"name" : "Instrumentation",
"path" : "Sources/Instrumentation",
"product_dependencies" : [
"ServiceContextModule"
],
"product_memberships" : [
"Instrumentation",
"Tracing",
"InMemoryTracing"
],
"sources" : [
"Instrument.swift",
"InstrumentationSystem.swift",
"Locks.swift",
"MultiplexInstrument.swift",
"NoOpInstrument.swift"
],
"type" : "library"
},
{
"c99name" : "InMemoryTracingTests",
"module_type" : "SwiftTarget",
"name" : "InMemoryTracingTests",
"path" : "Tests/InMemoryTracingTests",
"sources" : [
"InMemoryTracerTests.swift"
],
"target_dependencies" : [
"InMemoryTracing"
],
"type" : "test"
},
{
"c99name" : "InMemoryTracing",
"module_type" : "SwiftTarget",
"name" : "InMemoryTracing",
"path" : "Sources/InMemoryTracing",
"product_memberships" : [
"InMemoryTracing"
],
"sources" : [
"InMemorySpan.swift",
"InMemorySpanContext.swift",
"InMemoryTracer.swift"
],
"target_dependencies" : [
"Tracing"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-service-context.git
[1/1088] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.30s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (0.75s)
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.1
Building for debugging...
[0/6] Write sources
[4/6] Compiling _CWASI _CWASI.c
[4/6] Write swift-version-24593BA9C3E375BF.txt
[7/9] Compiling ServiceContextModule ServiceContextKey.swift
[8/9] Compiling ServiceContextModule ServiceContext.swift
[9/9] Emitting module ServiceContextModule
[11/16] Compiling Instrumentation NoOpInstrument.swift
[12/16] Compiling Instrumentation Instrument.swift
[13/16] Compiling Instrumentation MultiplexInstrument.swift
[14/16] Compiling Instrumentation InstrumentationSystem.swift
[15/16] Emitting module Instrumentation
[16/16] Compiling Instrumentation Locks.swift
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:57:19: error: cannot find 'pthread_rwlock_init' in scope
55 | /// Create a new lock.
56 | public init() {
57 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
58 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
59 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:57:52: error: 'nil' requires a contextual type
55 | /// Create a new lock.
56 | public init() {
57 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: 'nil' requires a contextual type
58 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
59 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:62:19: error: cannot find 'pthread_rwlock_destroy' in scope
60 |
61 | deinit {
62 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
63 | precondition(err == 0, "pthread_rwlock_destroy failed with error \(err)")
64 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:72:19: error: cannot find 'pthread_rwlock_rdlock' in scope
70 | /// `unlock`, to simplify lock handling.
71 | public func lockRead() {
72 | let err = pthread_rwlock_rdlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
73 | precondition(err == 0, "pthread_rwlock_rdlock failed with error \(err)")
74 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:81:19: error: cannot find 'pthread_rwlock_wrlock' in scope
79 | /// `unlock`, to simplify lock handling.
80 | public func lockWrite() {
81 | let err = pthread_rwlock_wrlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
82 | precondition(err == 0, "pthread_rwlock_wrlock failed with error \(err)")
83 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:90:19: error: cannot find 'pthread_rwlock_unlock' in scope
88 | /// `lock`, to simplify lock handling.
89 | public func unlock() {
90 | let err = pthread_rwlock_unlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
91 | precondition(err == 0, "pthread_rwlock_unlock failed with error \(err)")
92 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling ServiceContextModule ServiceContextKey.swift
[3/4] Emitting module ServiceContextModule
[4/4] Compiling ServiceContextModule ServiceContext.swift
[6/11] Compiling Instrumentation NoOpInstrument.swift
[7/11] Compiling Instrumentation MultiplexInstrument.swift
[8/11] Compiling Instrumentation Locks.swift
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:57:19: error: cannot find 'pthread_rwlock_init' in scope
55 | /// Create a new lock.
56 | public init() {
57 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: cannot find 'pthread_rwlock_init' in scope
58 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
59 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:57:52: error: 'nil' requires a contextual type
55 | /// Create a new lock.
56 | public init() {
57 | let err = pthread_rwlock_init(self.rwlock, nil)
| `- error: 'nil' requires a contextual type
58 | precondition(err == 0, "pthread_rwlock_init failed with error \(err)")
59 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:62:19: error: cannot find 'pthread_rwlock_destroy' in scope
60 |
61 | deinit {
62 | let err = pthread_rwlock_destroy(self.rwlock)
| `- error: cannot find 'pthread_rwlock_destroy' in scope
63 | precondition(err == 0, "pthread_rwlock_destroy failed with error \(err)")
64 | self.rwlock.deallocate()
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:72:19: error: cannot find 'pthread_rwlock_rdlock' in scope
70 | /// `unlock`, to simplify lock handling.
71 | public func lockRead() {
72 | let err = pthread_rwlock_rdlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_rdlock' in scope
73 | precondition(err == 0, "pthread_rwlock_rdlock failed with error \(err)")
74 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:81:19: error: cannot find 'pthread_rwlock_wrlock' in scope
79 | /// `unlock`, to simplify lock handling.
80 | public func lockWrite() {
81 | let err = pthread_rwlock_wrlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_wrlock' in scope
82 | precondition(err == 0, "pthread_rwlock_wrlock failed with error \(err)")
83 | }
/host/spi-builder-workspace/Sources/Instrumentation/Locks.swift:90:19: error: cannot find 'pthread_rwlock_unlock' in scope
88 | /// `lock`, to simplify lock handling.
89 | public func unlock() {
90 | let err = pthread_rwlock_unlock(self.rwlock)
| `- error: cannot find 'pthread_rwlock_unlock' in scope
91 | precondition(err == 0, "pthread_rwlock_unlock failed with error \(err)")
92 | }
[9/11] Emitting module Instrumentation
[10/11] Compiling Instrumentation Instrument.swift
[11/11] Compiling Instrumentation InstrumentationSystem.swift
BUILD FAILURE 6.1 wasm