Build Information
Failed to build swift-influxdb-telemetry, reference main (ef6ef8
), with Swift 6.1 for Wasm on 29 May 2025 10:39:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dankinsoid/swift-influxdb-telemetry.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/dankinsoid/swift-influxdb-telemetry
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ef6ef83 1.10.0
Cloned https://github.com/dankinsoid/swift-influxdb-telemetry.git
Revision (git rev-parse @):
ef6ef83623637ed2bc2ae18006df12fb0d5c68e7
SUCCESS checkout https://github.com/dankinsoid/swift-influxdb-telemetry.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dankinsoid/swift-influxdb-telemetry.git
https://github.com/dankinsoid/swift-influxdb-telemetry.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "influxdb-client-swift",
"requirement" : {
"range" : [
{
"lower_bound" : "1.7.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/influxdata/influxdb-client-swift.git"
},
{
"identity" : "swift-metrics",
"requirement" : {
"range" : [
{
"lower_bound" : "2.4.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-metrics.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-atomics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-atomics.git"
},
{
"identity" : "swift-analytics",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/dankinsoid/swift-analytics.git"
},
{
"identity" : "swift-distributed-tracing",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-distributed-tracing.git"
}
],
"manifest_display_name" : "swift-influxdb-telemetry",
"name" : "swift-influxdb-telemetry",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "ios",
"version" : "14.0"
}
],
"products" : [
{
"name" : "InfluxDBLogs",
"targets" : [
"InfluxDBLogs"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InfluxDBMetrics",
"targets" : [
"InfluxDBMetrics"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InfluxDBAnalytics",
"targets" : [
"InfluxDBAnalytics"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "InfluxDBTracing",
"targets" : [
"InfluxDBTracing"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftInfluxDBCore",
"module_type" : "SwiftTarget",
"name" : "SwiftInfluxDBCore",
"path" : "Sources/SwiftInfluxDBCore",
"product_dependencies" : [
"InfluxDBSwift",
"Logging"
],
"product_memberships" : [
"InfluxDBLogs",
"InfluxDBMetrics",
"InfluxDBAnalytics",
"InfluxDBTracing"
],
"sources" : [
"IntervalType.swift",
"LabelsSet.swift",
"NIOLock.swift",
"NIOLockedValueBox.swift",
"SwiftInfluxAPI.swift"
],
"type" : "library"
},
{
"c99name" : "InfluxDBTracing",
"module_type" : "SwiftTarget",
"name" : "InfluxDBTracing",
"path" : "Sources/InfluxDBTracing",
"product_dependencies" : [
"Tracing",
"Instrumentation"
],
"product_memberships" : [
"InfluxDBTracing"
],
"sources" : [
"InfluxDBTracing.swift"
],
"target_dependencies" : [
"SwiftInfluxDBCore"
],
"type" : "library"
},
{
"c99name" : "InfluxDBMetrics",
"module_type" : "SwiftTarget",
"name" : "InfluxDBMetrics",
"path" : "Sources/InfluxDBMetrics",
"product_dependencies" : [
"Metrics",
"Atomics"
],
"product_memberships" : [
"InfluxDBMetrics"
],
"sources" : [
"Counter.swift",
"FloatingCounter.swift",
"HandlerID.swift",
"InfluxMetric.swift",
"InfluxMetricHandler.swift",
"MetricIdentifyingPolicy.swift",
"Recorder.swift",
"SwiftInfluxDBMetrics.swift",
"Timer.swift"
],
"target_dependencies" : [
"SwiftInfluxDBCore"
],
"type" : "library"
},
{
"c99name" : "InfluxDBLogs",
"module_type" : "SwiftTarget",
"name" : "InfluxDBLogs",
"path" : "Sources/InfluxDBLogs",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"InfluxDBLogs"
],
"sources" : [
"SwiftInfluxDBLogs.swift"
],
"target_dependencies" : [
"SwiftInfluxDBCore"
],
"type" : "library"
},
{
"c99name" : "InfluxDBAnalytics",
"module_type" : "SwiftTarget",
"name" : "InfluxDBAnalytics",
"path" : "Sources/InfluxDBAnalytics",
"product_dependencies" : [
"SwiftAnalytics"
],
"product_memberships" : [
"InfluxDBAnalytics"
],
"sources" : [
"SwiftInfluxDBAnalytics.swift"
],
"target_dependencies" : [
"SwiftInfluxDBCore"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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 -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-log.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/dankinsoid/swift-analytics.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/influxdata/influxdb-client-swift.git
[1/2206] Fetching swift-metrics
[156/6037] Fetching swift-metrics, influxdb-client-swift
[179/6196] Fetching swift-metrics, influxdb-client-swift, swift-analytics
[1008/10032] Fetching swift-metrics, influxdb-client-swift, swift-analytics, swift-log
[1449/15006] Fetching swift-metrics, influxdb-client-swift, swift-analytics, swift-log, swift-distributed-tracing
[3506/16716] Fetching swift-metrics, influxdb-client-swift, swift-analytics, swift-log, swift-distributed-tracing, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (1.15s)
Fetched https://github.com/apple/swift-log.git from cache (1.16s)
Fetched https://github.com/dankinsoid/swift-analytics.git from cache (1.24s)
Fetched https://github.com/apple/swift-metrics.git from cache (1.24s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (1.24s)
Fetched https://github.com/influxdata/influxdb-client-swift.git from cache (1.25s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.20s)
Computing version for https://github.com/influxdata/influxdb-client-swift.git
Computed https://github.com/influxdata/influxdb-client-swift.git at 1.7.0 (3.46s)
Fetching https://github.com/1024jp/GzipSwift
Fetching https://github.com/yaslab/CSV.swift
[1/1549] Fetching gzipswift
[621/3382] Fetching gzipswift, csv.swift
Fetched https://github.com/yaslab/CSV.swift from cache (0.53s)
Fetched https://github.com/1024jp/GzipSwift from cache (0.53s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 5.2.0 (1.53s)
Computing version for https://github.com/yaslab/CSV.swift
Computed https://github.com/yaslab/CSV.swift at 2.5.2 (1.05s)
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.83s)
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.41s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.0 (1.43s)
Computing version for https://github.com/dankinsoid/swift-analytics.git
Computed https://github.com/dankinsoid/swift-analytics.git at 1.9.0 (1.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.99s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.99s)
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/dankinsoid/swift-analytics.git
Working copy of https://github.com/dankinsoid/swift-analytics.git resolved at 1.9.0
Creating working copy for https://github.com/influxdata/influxdb-client-swift.git
Working copy of https://github.com/influxdata/influxdb-client-swift.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.2.0
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 5.2.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-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/yaslab/CSV.swift
Working copy of https://github.com/yaslab/CSV.swift resolved at 2.5.2
Building for debugging...
[0/19] Write sources
[16/19] Compiling system-zlib anchor.c
[17/19] Compiling _AtomicsShims.c
[18/19] Write swift-version-24593BA9C3E375BF.txt
[20/68] Emitting module ServiceContextModule
[21/68] Emitting module Atomics
[22/70] Compiling CSV Legacy.swift
[23/71] Compiling CSV Endian.swift
[24/71] Compiling ServiceContextModule ServiceContextKey.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/71] 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
[26/71] 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 |
[27/71] 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
[28/71] Compiling SwiftAnalytics Locks.swift
[29/72] Compiling Atomics Primitives.shims.swift
[30/72] Compiling Atomics AtomicInteger.swift
[31/72] Compiling Atomics AtomicOptionalWrappable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/72] Emitting module Gzip
/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:34:12: error: no such module 'zlib'
32 | import zlibLinux
33 | #else
34 | import zlib
| `- error: no such module 'zlib'
35 | #endif
36 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/50] Compiling CSV Legacy.swift
[3/51] Compiling CSV Endian.swift
[4/51] Compiling ServiceContextModule ServiceContextKey.swift
[5/51] Emitting module ServiceContextModule
[6/51] Compiling ServiceContextModule ServiceContext.swift
[7/52] Compiling Atomics ManagedAtomic.swift
[8/52] Compiling Atomics ManagedAtomicLazyReference.swift
[9/52] Compiling Atomics UnsafeAtomic.swift
[10/52] Compiling Atomics UnsafeAtomicLazyReference.swift
[11/54] Compiling Atomics AtomicMemoryOrderings.swift
[12/54] Compiling Atomics DoubleWord.swift
[13/54] Compiling CSV UnicodeIterator.swift
[15/60] Compiling Atomics Primitives.shims.swift
[16/60] Compiling Atomics AtomicInteger.swift
[17/60] Compiling Atomics AtomicOptionalWrappable.swift
[18/60] Compiling Atomics AtomicReference.swift
[19/60] Compiling Atomics AtomicStorage.swift
[20/60] Compiling Atomics AtomicValue.swift
[21/60] Compiling Logging MetadataProvider.swift
[22/60] Compiling SwiftAnalytics ParametersProvider.swift
[23/60] 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 | }
[24/61] Compiling Atomics IntegerOperations.swift
[25/61] Compiling Atomics Unmanaged extensions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/61] 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.
[27/61] Compiling Instrumentation MultiplexInstrument.swift
[28/61] Compiling Instrumentation NoOpInstrument.swift
[29/61] Compiling Instrumentation Instrument.swift
[30/61] 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.
[31/61] Compiling SwiftAnalytics Analytics.swift
[32/61] Compiling SwiftAnalytics AnalyticsHandler.swift
[33/61] Compiling Atomics AtomicBool.swift
[34/61] 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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/61] 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
[36/61] Compiling Logging Locks.swift
[37/61] Compiling Logging LogHandler.swift
[38/61] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/61] Emitting module Gzip
/host/spi-builder-workspace/.build/checkouts/GzipSwift/Sources/Gzip/Data+Gzip.swift:34:12: error: no such module 'zlib'
32 | import zlibLinux
33 | #else
34 | import zlib
| `- error: no such module 'zlib'
35 | #endif
36 |
BUILD FAILURE 6.1 wasm