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 Scout, reference 2.0.2 (c3026e), with Swift 6.1 for Wasm on 2 Nov 2025 21:19:51 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kasianov-mikhail/scout.git
Reference: 2.0.2
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/kasianov-mikhail/scout
 * tag               2.0.2      -> FETCH_HEAD
HEAD is now at c3026e4 Refactor date handling and improve chart readability (#161)
Cloned https://github.com/kasianov-mikhail/scout.git
Revision (git rev-parse @):
c3026e4593153f733aff812f04361dc3b387dca8
SUCCESS checkout https://github.com/kasianov-mikhail/scout.git at 2.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/kasianov-mikhail/scout.git
https://github.com/kasianov-mikhail/scout.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    }
  ],
  "manifest_display_name" : "Scout",
  "name" : "Scout",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Scout",
      "targets" : [
        "Scout"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ScoutTests",
      "module_type" : "SwiftTarget",
      "name" : "ScoutTests",
      "path" : "Tests/ScoutTests",
      "sources" : [
        "Core/Activity/UserActivityMontitorTests.swift",
        "Core/Cell/GridCellTest.swift",
        "Core/Log/EventObjectTests.swift",
        "Core/Log/LogTest.swift",
        "Core/Matrix/MatrixLookupTests.swift",
        "Core/Monitor/NotificationListenerTests.swift",
        "Core/Monitor/SessionObjectTests.swift",
        "Core/Persistence/PersistenceLoadTests.swift",
        "Core/Sync/SyncCoordinatorTests.swift",
        "Core/Sync/SyncableObjectBatchTests.swift",
        "Core/Utilities/ArrayGroupingTests.swift",
        "Core/Utilities/DateStartTests.swift",
        "Stubs/CKRecord+Stub.swift",
        "Stubs/EventObject+Stub.swift",
        "Stubs/NSManagedObjectModel+Stub.swift",
        "Stubs/SessionObject+Stub.swift",
        "Stubs/UserActivity+Stub.swift",
        "Transient/InMemoryContainer.swift",
        "Transient/InMemoryContext.swift",
        "Transient/InMemoryDatabase.swift",
        "UI/ArrayUniqueTests.swift",
        "UI/ChartExtentMoveTests.swift",
        "UI/CriteriaTests.swift",
        "UI/DateAddTests.swift",
        "UI/HistoryFilterTests.swift",
        "UI/RangeLabelTests.swift",
        "UI/StatModelTests.swift",
        "Utilities/Date+Init.swift"
      ],
      "target_dependencies" : [
        "Scout"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Scout",
      "module_type" : "SwiftTarget",
      "name" : "Scout",
      "path" : "Sources/Scout",
      "product_dependencies" : [
        "Logging",
        "Metrics"
      ],
      "product_memberships" : [
        "Scout"
      ],
      "sources" : [
        "Core/Activity/ActivityPeriod+Domain.swift",
        "Core/Activity/ActivityPeriod.swift",
        "Core/Activity/UserActivity+Monitor.swift",
        "Core/Activity/UserActivity.Provider.swift",
        "Core/Activity/UserActivity.swift",
        "Core/Bootstrap/Setup.swift",
        "Core/Cell/CellProtocol.swift",
        "Core/Cell/GridCell.swift",
        "Core/Cell/PeriodCell.swift",
        "Core/Database/CKDatabase+Runner.swift",
        "Core/Database/CKDatabase.swift",
        "Core/Database/Database.swift",
        "Core/Dispatcher/Dispatcher.swift",
        "Core/Dispatcher/QueueDispatcher.swift",
        "Core/ID/IDObject.swift",
        "Core/ID/IDs.swift",
        "Core/ID/UserDefaults+UUID.swift",
        "Core/Log/EventObject+CKRepresentable.swift",
        "Core/Log/EventObject.swift",
        "Core/Log/Log.swift",
        "Core/Log/LogHandler.swift",
        "Core/Matrix/Combining.swift",
        "Core/Matrix/Matrix+CK.swift",
        "Core/Matrix/Matrix+Lookup.swift",
        "Core/Matrix/Matrix.swift",
        "Core/Matrix/MatrixValue.swift",
        "Core/Metrics/LogMetrics.swift",
        "Core/Metrics/MetricsObject+Group.swift",
        "Core/Metrics/MetricsValued.swift",
        "Core/Monitor/NotificationListener.Activity.swift",
        "Core/Monitor/NotificationListener.swift",
        "Core/Monitor/SessionObject+CKRepresentable.swift",
        "Core/Monitor/SessionObject+Monitor.swift",
        "Core/Monitor/SessionObject.swift",
        "Core/Persistence/Persistence+Load.swift",
        "Core/Persistence/Persistence+Rebuild.swift",
        "Core/Persistence/Persistence.swift",
        "Core/Sync/SyncController.swift",
        "Core/Sync/SyncCoordinator.swift",
        "Core/Sync/SyncEngine.swift",
        "Core/Sync/SyncJobPlan.swift",
        "Core/Sync/Syncable.swift",
        "Core/Sync/SyncableObject+Batch.swift",
        "Core/Telemetry/Telemetry.Export.swift",
        "Core/Telemetry/Telemetry.swift",
        "Core/Telemetry/TelemetryFactory.swift",
        "Core/Telemetry/TelemetryHandler.Idle.swift",
        "Core/Telemetry/TelemetryHandler.swift",
        "Core/Utilities/Array+Grouping.swift",
        "Core/Utilities/Calendar+UTC.swift",
        "Core/Utilities/Date+Start.swift",
        "Core/Utilities/DateObject.swift",
        "UI/Activity/ActivityMatrix.swift",
        "UI/Activity/ActivityProvider.swift",
        "UI/Activity/ActivityRow.swift",
        "UI/Activity/ActivityView.swift",
        "UI/Analytics/AnalyticsView.Suggestion.swift",
        "UI/Analytics/AnalyticsView.swift",
        "UI/Chart/ChartComposing.swift",
        "UI/Chart/ChartExtent.swift",
        "UI/Chart/ChartFormat.swift",
        "UI/Chart/ChartNumeric.swift",
        "UI/Chart/ChartPoint.swift",
        "UI/Chart/ChartSeries.swift",
        "UI/Chart/ChartTimeScale.swift",
        "UI/Chart/ChartTiming.swift",
        "UI/Chart/ChartView.swift",
        "UI/Controls/Header.swift",
        "UI/Controls/Placeholder.swift",
        "UI/Controls/RedactedText.swift",
        "UI/Controls/Row.swift",
        "UI/Database/DatabaseController+Sample.swift",
        "UI/Database/DatabaseController.swift",
        "UI/Event/Event.Level.swift",
        "UI/Event/Event.Query.swift",
        "UI/Event/Event.swift",
        "UI/Event/EventList.swift",
        "UI/Event/EventProvider.swift",
        "UI/Event/EventView.Sections.swift",
        "UI/Event/EventView.swift",
        "UI/Event/Param/ParamList.swift",
        "UI/Event/Param/ParamProvider.swift",
        "UI/Event/Stat/StatEventList.swift",
        "UI/Event/Stat/StatProvider.swift",
        "UI/Event/Stat/StatRow.swift",
        "UI/Event/Stat/StatView.swift",
        "UI/Filter/Criteria.swift",
        "UI/Filter/FilterView.swift",
        "UI/History/HistoryFilter.swift",
        "UI/History/HistoryView.swift",
        "UI/Home/HomeView.Sections.swift",
        "UI/Home/HomeView.swift",
        "UI/Message/Message.Level.swift",
        "UI/Message/Message.swift",
        "UI/Message/MessageView.Presenter.swift",
        "UI/Message/MessageView.swift",
        "UI/Metrics/MetricsContent.swift",
        "UI/Metrics/MetricsFormatters.swift",
        "UI/Metrics/MetricsList.swift",
        "UI/Metrics/MetricsProvider.swift",
        "UI/Metrics/MetricsView.swift",
        "UI/Metrics/PointGroup.swift",
        "UI/Metrics/PointSeries.swift",
        "UI/Picker/Period.swift",
        "UI/Picker/PeriodPicker.swift",
        "UI/Picker/PickerCompatible.swift",
        "UI/Range/ChartExtent+Enabled.swift",
        "UI/Range/ChartExtent+Move.swift",
        "UI/Range/Range+Label.swift",
        "UI/Range/RangeControl.swift",
        "UI/Traits/HasCount.swift",
        "UI/Utilities/Box.swift",
        "UI/Utilities/Calendar+Range.swift",
        "UI/Utilities/Date+Add.swift",
        "UI/Utilities/Provider.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-log.git
[1/2487] Fetching swift-metrics
[2488/6642] Fetching swift-metrics, swift-log
Fetched https://github.com/apple/swift-metrics.git from cache (1.25s)
Fetched https://github.com/apple/swift-log.git from cache (1.25s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (2.30s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.1 (4.75s)
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.4
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.1
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Scout/Scout.xcdatamodeld
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/13] Compiling Logging Locks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] 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
[8/13] 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
[9/13] 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 |
[10/13] Compiling Logging LogHandler.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/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:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Scout/Scout.xcdatamodeld
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/9] 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
[3/9] 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
[4/9] 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 |
[5/9] Compiling Logging LogHandler.swift
[6/9] Compiling Logging Locks.swift
[7/9] Emitting module Logging
BUILD FAILURE 6.1 wasm