Build Information
Failed to build swift-influxdb-telemetry, reference 1.10.0 (ef6ef8
), with Swift 6.1 for Wasm on 29 May 2025 10:39:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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: 1.10.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/dankinsoid/swift-influxdb-telemetry
* tag 1.10.0 -> FETCH_HEAD
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 1.10.0
========================================
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-4606859-3":/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/influxdata/influxdb-client-swift.git
Fetching https://github.com/dankinsoid/swift-analytics.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-log.git
[1/2206] Fetching swift-metrics
[597/7180] Fetching swift-metrics, swift-distributed-tracing
[713/11016] Fetching swift-metrics, swift-distributed-tracing, swift-log
[7422/12726] Fetching swift-metrics, swift-distributed-tracing, swift-log, swift-atomics
[7474/16557] Fetching swift-metrics, swift-distributed-tracing, swift-log, swift-atomics, influxdb-client-swift
[16558/16716] Fetching swift-metrics, swift-distributed-tracing, swift-log, swift-atomics, influxdb-client-swift, swift-analytics
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.65s)
Fetched https://github.com/apple/swift-log.git from cache (0.66s)
Fetched https://github.com/dankinsoid/swift-analytics.git from cache (0.73s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.73s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.73s)
Fetched https://github.com/influxdata/influxdb-client-swift.git from cache (0.73s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.31s)
Computing version for https://github.com/influxdata/influxdb-client-swift.git
Computed https://github.com/influxdata/influxdb-client-swift.git at 1.7.0 (2.82s)
Fetching https://github.com/yaslab/CSV.swift
Fetching https://github.com/1024jp/GzipSwift
[1/1549] Fetching gzipswift
[1550/3382] Fetching gzipswift, csv.swift
Fetched https://github.com/1024jp/GzipSwift from cache (0.40s)
Fetched https://github.com/yaslab/CSV.swift from cache (0.42s)
Computing version for https://github.com/1024jp/GzipSwift
Computed https://github.com/1024jp/GzipSwift at 5.2.0 (1.34s)
Computing version for https://github.com/yaslab/CSV.swift
Computed https://github.com/yaslab/CSV.swift at 2.5.2 (0.76s)
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.62s)
Fetching https://github.com/apple/swift-service-context.git
[11/1063] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.29s)
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.97s)
Computing version for https://github.com/dankinsoid/swift-analytics.git
Computed https://github.com/dankinsoid/swift-analytics.git at 1.9.0 (0.68s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.56s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.53s)
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/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/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-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/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/yaslab/CSV.swift
Working copy of https://github.com/yaslab/CSV.swift resolved at 2.5.2
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/1024jp/GzipSwift
Working copy of https://github.com/1024jp/GzipSwift resolved at 5.2.0
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] Compiling CSV Legacy.swift
[21/69] Compiling CSV CSVError.swift
[22/69] Compiling ServiceContextModule ServiceContextKey.swift
[23/69] Compiling Atomics AtomicReference.swift
[24/69] Compiling Atomics AtomicStorage.swift
[25/69] Compiling Atomics AtomicValue.swift
[26/71] Compiling Atomics Primitives.shims.swift
[27/71] Compiling Atomics AtomicInteger.swift
[28/71] Compiling Atomics AtomicOptionalWrappable.swift
[29/71] Compiling Atomics UnsafeAtomic.swift
[30/71] Compiling Atomics UnsafeAtomicLazyReference.swift
[31/71] Compiling CSV Endian.swift
[32/71] Compiling CSV UnicodeIterator.swift
[33/71] Emitting module ServiceContextModule
[34/71] Compiling ServiceContextModule ServiceContext.swift
[35/71] Compiling Logging Locks.swift
[36/71] Emitting module Logging
[37/72] Compiling Atomics OptionalRawRepresentable.swift
[38/72] Compiling Atomics RawRepresentable.swift
[39/72] Compiling Atomics AtomicBool.swift
[40/72] Compiling Atomics ManagedAtomic.swift
[41/72] Compiling Atomics ManagedAtomicLazyReference.swift
[42/72] Compiling Atomics AtomicMemoryOrderings.swift
[43/72] Compiling Atomics DoubleWord.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[45/72] 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
[46/72] 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 |
[47/72] 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
[48/72] Compiling Logging LogHandler.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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 CSVError.swift
[4/51] Compiling ServiceContextModule ServiceContextKey.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/51] 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 |
[6/51] Compiling CSV Endian.swift
[7/51] Compiling SwiftAnalytics Locks.swift
[8/52] Emitting module ServiceContextModule
[9/52] Compiling ServiceContextModule ServiceContext.swift
[10/53] Compiling CSV UnicodeIterator.swift
[11/53] Emitting module Logging
[12/53] Compiling Atomics UnsafeAtomic.swift
[13/53] Compiling Atomics UnsafeAtomicLazyReference.swift
[14/53] Compiling Atomics ManagedAtomic.swift
[15/53] Compiling Atomics ManagedAtomicLazyReference.swift
[16/55] Compiling Atomics AtomicMemoryOrderings.swift
[17/55] Compiling Atomics DoubleWord.swift
[19/55] Compiling Atomics IntegerOperations.swift
[20/55] Compiling Atomics Unmanaged extensions.swift
[21/61] Compiling Logging MetadataProvider.swift
[22/61] Compiling Atomics Primitives.shims.swift
[23/61] Compiling Atomics AtomicInteger.swift
[24/61] Compiling Atomics AtomicOptionalWrappable.swift
[25/61] Compiling Atomics AtomicReference.swift
[26/61] Compiling Atomics AtomicStorage.swift
[27/61] Compiling Atomics AtomicValue.swift
[28/61] Compiling SwiftAnalytics ParametersProvider.swift
[29/61] Compiling Instrumentation NoOpInstrument.swift
[30/61] 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 | }
[31/61] Compiling Instrumentation MultiplexInstrument.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/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.
[33/61] Compiling Instrumentation Instrument.swift
[34/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.
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 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 |
[37/61] Compiling Logging Locks.swift
[38/61] Compiling Logging LogHandler.swift
BUILD FAILURE 6.1 wasm