The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-prometheus, reference main (ba9257), with Swift 6.1 for Android on 30 May 2025 14:23:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-prometheus.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/swift-server/swift-prometheus
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ba92571 Correct license headers (#122)
Cloned https://github.com/swift-server/swift-prometheus.git
Revision (git rev-parse @):
ba92571855c573b7df647205b75296e6b43c3983
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-prometheus.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-server/swift-prometheus.git
https://github.com/swift-server/swift-prometheus.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.4.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    }
  ],
  "manifest_display_name" : "swift-prometheus",
  "name" : "swift-prometheus",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Prometheus",
      "targets" : [
        "Prometheus"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrometheusTests",
      "module_type" : "SwiftTarget",
      "name" : "PrometheusTests",
      "path" : "Tests/PrometheusTests",
      "sources" : [
        "CounterTests.swift",
        "GaugeTests.swift",
        "HistogramTests.swift",
        "PrometheusCollectorRegistryTests.swift",
        "PrometheusMetricsFactoryTests.swift",
        "ValidNamesTests.swift"
      ],
      "target_dependencies" : [
        "Prometheus"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prometheus",
      "module_type" : "SwiftTarget",
      "name" : "Prometheus",
      "path" : "Sources/Prometheus",
      "product_dependencies" : [
        "Atomics",
        "CoreMetrics"
      ],
      "product_memberships" : [
        "Prometheus"
      ],
      "sources" : [
        "Counter.swift",
        "Gauge.swift",
        "Histogram.swift",
        "NIOLock.swift",
        "NIOLockedValueBox.swift",
        "PrometheusCollectorRegistry.swift",
        "PrometheusMetricsFactory.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-metrics.git
[1/2206] Fetching swift-metrics
[1877/3916] Fetching swift-metrics, swift-atomics
Fetched https://github.com/apple/swift-metrics.git from cache (0.58s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.58s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.58s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.74s)
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
Building for debugging...
[0/5] Write sources
[3/5] Compiling _AtomicsShims.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/27] Emitting module Atomics
[7/29] Compiling Atomics IntegerOperations.swift
[8/29] Compiling Atomics Unmanaged extensions.swift
[9/29] Compiling Atomics AtomicMemoryOrderings.swift
[10/29] Compiling Atomics DoubleWord.swift
[11/29] Compiling Atomics Primitives.shims.swift
[12/29] Compiling Atomics AtomicInteger.swift
[13/29] Compiling Atomics AtomicOptionalWrappable.swift
[14/29] Compiling Atomics IntegerConformances.swift
[15/29] Compiling Atomics PointerConformances.swift
[16/29] Compiling Atomics Primitives.native.swift
[17/29] Compiling Atomics UnsafeAtomic.swift
[18/29] Compiling Atomics UnsafeAtomicLazyReference.swift
[19/29] Compiling Atomics OptionalRawRepresentable.swift
[20/29] Compiling Atomics RawRepresentable.swift
[21/29] Compiling Atomics AtomicBool.swift
[22/29] Compiling Atomics ManagedAtomic.swift
[23/29] Compiling Atomics ManagedAtomicLazyReference.swift
[24/29] Compiling Atomics AtomicReference.swift
[25/29] Compiling Atomics AtomicStorage.swift
[26/29] Compiling Atomics AtomicValue.swift
[28/30] Compiling CoreMetrics Metrics.swift
[29/30] Emitting module CoreMetrics
[30/30] Compiling CoreMetrics Locks.swift
[32/39] Compiling Prometheus PrometheusMetricsFactory.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[33/39] Compiling Prometheus Counter.swift
[34/39] Compiling Prometheus Gauge.swift
[35/39] Emitting module Prometheus
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:38:8: error: The concurrency NIOLock module was unable to identify your C library.
 36 | import Musl
 37 | #else
 38 | #error("The concurrency NIOLock module was unable to identify your C library.")
    |        `- error: The concurrency NIOLock module was unable to identify your C library.
 39 | #endif
 40 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:60:20: error: cannot find 'pthread_mutexattr_t' in scope
 58 |         InitializeSRWLock(mutex)
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:61:9: error: cannot find 'pthread_mutexattr_init' in scope
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
 61 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:13: error: cannot find 'pthread_mutexattr_settype' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:47: error: cannot infer contextual base in reference to member 'init'
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                               `- error: cannot infer contextual base in reference to member 'init'
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:66:19: error: cannot find 'pthread_mutex_init' in scope
 64 |         }
 65 |
 66 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 67 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 68 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.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(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/Sources/Prometheus/NIOLock.swift:90:19: error: cannot find 'pthread_mutex_lock' in scope
 88 |         AcquireSRWLockExclusive(mutex)
 89 |         #else
 90 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 91 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 92 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:102:19: error: cannot find 'pthread_mutex_unlock' in scope
100 |         ReleaseSRWLockExclusive(mutex)
101 |         #else
102 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
103 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
104 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:141:27: error: type of expression is ambiguous without a type annotation
139 |     @inlinable
140 |     static func create(value: Value) -> Self {
141 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
142 |             return value
143 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:156:14: error: type of expression is ambiguous without a type annotation
154 |     @inlinable
155 |     func lock() {
156 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
157 |             LockOperations.lock(lockPtr)
158 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:163:14: error: type of expression is ambiguous without a type annotation
161 |     @inlinable
162 |     func unlock() {
163 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
164 |             LockOperations.unlock(lockPtr)
165 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:170:14: error: type of expression is ambiguous without a type annotation
168 |     @inlinable
169 |     deinit {
170 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
171 |             LockOperations.destroy(lockPtr)
172 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:177:18: error: type of expression is ambiguous without a type annotation
175 |     @inlinable
176 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
177 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
178 |             return try body(lockPtr)
179 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:184:18: error: type of expression is ambiguous without a type annotation
182 |     @inlinable
183 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
184 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
185 |             LockOperations.lock(lockPtr)
186 |             defer { LockOperations.unlock(lockPtr) }
[36/39] Compiling Prometheus NIOLock.swift
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:38:8: error: The concurrency NIOLock module was unable to identify your C library.
 36 | import Musl
 37 | #else
 38 | #error("The concurrency NIOLock module was unable to identify your C library.")
    |        `- error: The concurrency NIOLock module was unable to identify your C library.
 39 | #endif
 40 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:60:20: error: cannot find 'pthread_mutexattr_t' in scope
 58 |         InitializeSRWLock(mutex)
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:61:9: error: cannot find 'pthread_mutexattr_init' in scope
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
 61 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:13: error: cannot find 'pthread_mutexattr_settype' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:47: error: cannot infer contextual base in reference to member 'init'
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                               `- error: cannot infer contextual base in reference to member 'init'
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:66:19: error: cannot find 'pthread_mutex_init' in scope
 64 |         }
 65 |
 66 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 67 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 68 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.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(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/Sources/Prometheus/NIOLock.swift:90:19: error: cannot find 'pthread_mutex_lock' in scope
 88 |         AcquireSRWLockExclusive(mutex)
 89 |         #else
 90 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 91 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 92 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:102:19: error: cannot find 'pthread_mutex_unlock' in scope
100 |         ReleaseSRWLockExclusive(mutex)
101 |         #else
102 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
103 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
104 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:141:27: error: type of expression is ambiguous without a type annotation
139 |     @inlinable
140 |     static func create(value: Value) -> Self {
141 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
142 |             return value
143 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:156:14: error: type of expression is ambiguous without a type annotation
154 |     @inlinable
155 |     func lock() {
156 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
157 |             LockOperations.lock(lockPtr)
158 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:163:14: error: type of expression is ambiguous without a type annotation
161 |     @inlinable
162 |     func unlock() {
163 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
164 |             LockOperations.unlock(lockPtr)
165 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:170:14: error: type of expression is ambiguous without a type annotation
168 |     @inlinable
169 |     deinit {
170 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
171 |             LockOperations.destroy(lockPtr)
172 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:177:18: error: type of expression is ambiguous without a type annotation
175 |     @inlinable
176 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
177 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
178 |             return try body(lockPtr)
179 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:184:18: error: type of expression is ambiguous without a type annotation
182 |     @inlinable
183 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
184 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
185 |             LockOperations.lock(lockPtr)
186 |             defer { LockOperations.unlock(lockPtr) }
[37/39] Compiling Prometheus Histogram.swift
[38/39] Compiling Prometheus NIOLockedValueBox.swift
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
[39/39] Compiling Prometheus PrometheusCollectorRegistry.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/23] Compiling Atomics UnsafeAtomic.swift
[3/23] Compiling Atomics UnsafeAtomicLazyReference.swift
[4/25] Compiling Atomics AtomicMemoryOrderings.swift
[5/25] Compiling Atomics DoubleWord.swift
[6/25] Compiling Atomics ManagedAtomic.swift
[7/25] Compiling Atomics ManagedAtomicLazyReference.swift
[8/25] Compiling Atomics OptionalRawRepresentable.swift
[9/25] Compiling Atomics RawRepresentable.swift
[10/25] Compiling Atomics AtomicBool.swift
[11/25] Compiling Atomics Primitives.shims.swift
[12/25] Compiling Atomics AtomicInteger.swift
[13/25] Compiling Atomics AtomicOptionalWrappable.swift
[14/25] Compiling Atomics AtomicReference.swift
[15/25] Compiling Atomics AtomicStorage.swift
[16/25] Compiling Atomics AtomicValue.swift
[17/25] Compiling Atomics IntegerOperations.swift
[18/25] Compiling Atomics Unmanaged extensions.swift
[19/25] Compiling CoreMetrics Locks.swift
[20/25] Emitting module CoreMetrics
[21/25] Compiling CoreMetrics Metrics.swift
[23/26] Emitting module Atomics
[24/26] Compiling Atomics IntegerConformances.swift
[25/26] Compiling Atomics PointerConformances.swift
[26/26] Compiling Atomics Primitives.native.swift
[28/35] Compiling Prometheus NIOLock.swift
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:38:8: error: The concurrency NIOLock module was unable to identify your C library.
 36 | import Musl
 37 | #else
 38 | #error("The concurrency NIOLock module was unable to identify your C library.")
    |        `- error: The concurrency NIOLock module was unable to identify your C library.
 39 | #endif
 40 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:60:20: error: cannot find 'pthread_mutexattr_t' in scope
 58 |         InitializeSRWLock(mutex)
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:61:9: error: cannot find 'pthread_mutexattr_init' in scope
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
 61 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:13: error: cannot find 'pthread_mutexattr_settype' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:47: error: cannot infer contextual base in reference to member 'init'
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                               `- error: cannot infer contextual base in reference to member 'init'
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:66:19: error: cannot find 'pthread_mutex_init' in scope
 64 |         }
 65 |
 66 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 67 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 68 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.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(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/Sources/Prometheus/NIOLock.swift:90:19: error: cannot find 'pthread_mutex_lock' in scope
 88 |         AcquireSRWLockExclusive(mutex)
 89 |         #else
 90 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 91 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 92 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:102:19: error: cannot find 'pthread_mutex_unlock' in scope
100 |         ReleaseSRWLockExclusive(mutex)
101 |         #else
102 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
103 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
104 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:141:27: error: type of expression is ambiguous without a type annotation
139 |     @inlinable
140 |     static func create(value: Value) -> Self {
141 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
142 |             return value
143 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:156:14: error: type of expression is ambiguous without a type annotation
154 |     @inlinable
155 |     func lock() {
156 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
157 |             LockOperations.lock(lockPtr)
158 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:163:14: error: type of expression is ambiguous without a type annotation
161 |     @inlinable
162 |     func unlock() {
163 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
164 |             LockOperations.unlock(lockPtr)
165 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:170:14: error: type of expression is ambiguous without a type annotation
168 |     @inlinable
169 |     deinit {
170 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
171 |             LockOperations.destroy(lockPtr)
172 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:177:18: error: type of expression is ambiguous without a type annotation
175 |     @inlinable
176 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
177 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
178 |             return try body(lockPtr)
179 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:184:18: error: type of expression is ambiguous without a type annotation
182 |     @inlinable
183 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
184 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
185 |             LockOperations.lock(lockPtr)
186 |             defer { LockOperations.unlock(lockPtr) }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/35] Compiling Prometheus Counter.swift
[30/35] Emitting module Prometheus
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:38:8: error: The concurrency NIOLock module was unable to identify your C library.
 36 | import Musl
 37 | #else
 38 | #error("The concurrency NIOLock module was unable to identify your C library.")
    |        `- error: The concurrency NIOLock module was unable to identify your C library.
 39 | #endif
 40 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:60:20: error: cannot find 'pthread_mutexattr_t' in scope
 58 |         InitializeSRWLock(mutex)
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:61:9: error: cannot find 'pthread_mutexattr_init' in scope
 59 |         #else
 60 |         var attr = pthread_mutexattr_t()
 61 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:13: error: cannot find 'pthread_mutexattr_settype' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |             `- error: cannot find 'pthread_mutexattr_settype' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:52: error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                                    `- error: cannot find 'PTHREAD_MUTEX_ERRORCHECK' in scope
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:63:47: error: cannot infer contextual base in reference to member 'init'
 61 |         pthread_mutexattr_init(&attr)
 62 |         debugOnly {
 63 |             pthread_mutexattr_settype(&attr, .init(PTHREAD_MUTEX_ERRORCHECK))
    |                                               `- error: cannot infer contextual base in reference to member 'init'
 64 |         }
 65 |
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:66:19: error: cannot find 'pthread_mutex_init' in scope
 64 |         }
 65 |
 66 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 67 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 68 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.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(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/Sources/Prometheus/NIOLock.swift:90:19: error: cannot find 'pthread_mutex_lock' in scope
 88 |         AcquireSRWLockExclusive(mutex)
 89 |         #else
 90 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 91 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 92 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:102:19: error: cannot find 'pthread_mutex_unlock' in scope
100 |         ReleaseSRWLockExclusive(mutex)
101 |         #else
102 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
103 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
104 |         #endif
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:141:27: error: type of expression is ambiguous without a type annotation
139 |     @inlinable
140 |     static func create(value: Value) -> Self {
141 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: type of expression is ambiguous without a type annotation
142 |             return value
143 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:156:14: error: type of expression is ambiguous without a type annotation
154 |     @inlinable
155 |     func lock() {
156 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
157 |             LockOperations.lock(lockPtr)
158 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:163:14: error: type of expression is ambiguous without a type annotation
161 |     @inlinable
162 |     func unlock() {
163 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
164 |             LockOperations.unlock(lockPtr)
165 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:170:14: error: type of expression is ambiguous without a type annotation
168 |     @inlinable
169 |     deinit {
170 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: type of expression is ambiguous without a type annotation
171 |             LockOperations.destroy(lockPtr)
172 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:177:18: error: type of expression is ambiguous without a type annotation
175 |     @inlinable
176 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
177 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
178 |             return try body(lockPtr)
179 |         }
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:184:18: error: type of expression is ambiguous without a type annotation
182 |     @inlinable
183 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
184 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: type of expression is ambiguous without a type annotation
185 |             LockOperations.lock(lockPtr)
186 |             defer { LockOperations.unlock(lockPtr) }
[31/35] Compiling Prometheus PrometheusMetricsFactory.swift
[32/35] Compiling Prometheus Histogram.swift
[33/35] Compiling Prometheus Gauge.swift
[34/35] Compiling Prometheus PrometheusCollectorRegistry.swift
[35/35] Compiling Prometheus NIOLockedValueBox.swift
/host/spi-builder-workspace/Sources/Prometheus/NIOLock.swift:46:27: error: cannot find type 'pthread_mutex_t' in scope
 44 | #else
 45 | @usableFromInline
 46 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 47 | #endif
 48 |
BUILD FAILURE 6.1 android