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 RediStack, reference 2.0.0-gamma.1.1 (8ac2d7), with Swift 6.1 for Wasm on 28 May 2025 20:01:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/swift-server/RediStack.git
Reference: 2.0.0-gamma.1.1
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/RediStack
 * tag               2.0.0-gamma.1.1 -> FETCH_HEAD
HEAD is now at 8ac2d74 Make the parameter-less RedisClientError factory statics computed properties. As stored properties, they trigger Thread Sanitizer errors when multiple connections trigger the same errors (usually connectionClosed) too close together due to lazy once-only initialization.
Cloned https://github.com/swift-server/RediStack.git
Revision (git rev-parse @):
8ac2d742cb17cddf933cb133a8d708c6949e0996
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/RediStack.git at 2.0.0-gamma.1.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-server/RediStack.git
https://github.com/swift-server/RediStack.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"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.43.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "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-service-discovery",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-service-discovery"
    }
  ],
  "manifest_display_name" : "RediStack",
  "name" : "RediStack",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RediStack",
      "targets" : [
        "RediStack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RediStackTestUtils",
      "targets" : [
        "RediStackTestUtils"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "RedisTypes",
      "targets" : [
        "RedisTypes"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RedisTypesTests",
      "module_type" : "SwiftTarget",
      "name" : "RedisTypesTests",
      "path" : "Tests/RedisTypesTests",
      "product_dependencies" : [
        "NIOCore"
      ],
      "sources" : [
        "RedisSetTests.swift",
        "RedisTypesIntegrationTestCase.swift"
      ],
      "target_dependencies" : [
        "RediStack",
        "RedisTypes",
        "RediStackTestUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RedisTypes",
      "module_type" : "SwiftTarget",
      "name" : "RedisTypes",
      "path" : "Sources/RedisTypes",
      "product_memberships" : [
        "RedisTypes"
      ],
      "sources" : [
        "RedisSet.swift"
      ],
      "target_dependencies" : [
        "RediStack"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RediStackTests",
      "module_type" : "SwiftTarget",
      "name" : "RediStackTests",
      "path" : "Tests/RediStackTests",
      "product_dependencies" : [
        "NIOCore",
        "NIOPosix",
        "NIOEmbedded",
        "NIOTestUtils"
      ],
      "sources" : [
        "ChannelHandlers/RedisByteDecoderTests.swift",
        "ChannelHandlers/RedisCommandHandlerTests.swift",
        "ChannelHandlers/RedisMessageEncoderTests.swift",
        "ConfigurationTests.swift",
        "ConnectionPoolTests.swift",
        "RESPTranslatorTests.swift",
        "RESPValueTests.swift",
        "RedisCommandTests.swift",
        "RedisConnectionTests.swift",
        "RedisKeyLifetime.swift"
      ],
      "target_dependencies" : [
        "RediStack",
        "RediStackTestUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RediStackTestUtils",
      "module_type" : "SwiftTarget",
      "name" : "RediStackTestUtils",
      "path" : "Sources/RediStackTestUtils",
      "product_dependencies" : [
        "NIOCore",
        "NIOPosix",
        "NIOEmbedded"
      ],
      "product_memberships" : [
        "RediStackTestUtils"
      ],
      "sources" : [
        "EmbeddedMockRedisServer.swift",
        "Extensions/General.swift",
        "Extensions/RediStack.swift",
        "RedisConnectionPoolIntegrationTestCase.swift",
        "RedisIntegrationTestCase.swift",
        "_Deprecations.swift"
      ],
      "target_dependencies" : [
        "RediStack"
      ],
      "type" : "library"
    },
    {
      "c99name" : "RediStackIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "RediStackIntegrationTests",
      "path" : "Tests/RediStackIntegrationTests",
      "product_dependencies" : [
        "NIO",
        "ServiceDiscovery"
      ],
      "sources" : [
        "Commands/ConnectionCommandsTests.swift",
        "Commands/HashCommandsTests.swift",
        "Commands/KeyCommandsTests.swift",
        "Commands/ListCommandsTests.swift",
        "Commands/PubSubCommandsTests.swift",
        "Commands/ServerCommandsTests.swift",
        "Commands/SetCommandsTests.swift",
        "Commands/SortedSetCommandsTests.swift",
        "Commands/StringCommandsTests.swift",
        "RediStackIntegrationTestCase.swift",
        "RedisConnectionPoolTests.swift",
        "RedisConnectionTests.swift",
        "RedisLoggingTests.swift",
        "RedisServiceDiscoveryTests.swift"
      ],
      "target_dependencies" : [
        "RediStack",
        "RediStackTestUtils"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RediStack",
      "module_type" : "SwiftTarget",
      "name" : "RediStack",
      "path" : "Sources/RediStack",
      "product_dependencies" : [
        "Atomics",
        "NIOCore",
        "NIOPosix",
        "Logging",
        "Metrics",
        "ServiceDiscovery"
      ],
      "product_memberships" : [
        "RediStack",
        "RediStackTestUtils",
        "RedisTypes"
      ],
      "sources" : [
        "ChannelHandlers/RedisByteDecoder.swift",
        "ChannelHandlers/RedisCommandHandler.swift",
        "ChannelHandlers/RedisMessageEncoder.swift",
        "ChannelHandlers/RedisPubSubHandler.swift",
        "Commands/ConnectionCommands.swift",
        "Commands/HashCommands.swift",
        "Commands/KeyCommands.swift",
        "Commands/ListCommands.swift",
        "Commands/PubSubCommands.swift",
        "Commands/RedisCommand.swift",
        "Commands/ServerCommands.swift",
        "Commands/SetCommands.swift",
        "Commands/SortedSetCommands.swift",
        "Commands/StringCommands.swift",
        "ConnectionPool/ConnectionPool.swift",
        "ConnectionPool/ConnectionPoolErrors.swift",
        "Extensions/StandardLibrary.swift",
        "Extensions/SwiftNIO.swift",
        "RESP/RESPTranslator.swift",
        "RESP/RESPValue.swift",
        "RESP/RESPValueConvertible.swift",
        "RedisChannelName.swift",
        "RedisClient.swift",
        "RedisConnection+Configuration.swift",
        "RedisConnection.swift",
        "RedisConnectionPool+Configuration.swift",
        "RedisConnectionPool.swift",
        "RedisError.swift",
        "RedisKey+TTL.swift",
        "RedisKey.swift",
        "RedisLogging.swift",
        "RedisMetrics.swift",
        "_Deprecations.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/apple/swift-atomics.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-service-discovery
Fetching https://github.com/apple/swift-nio.git
[1/2206] Fetching swift-metrics
[1391/6042] Fetching swift-metrics, swift-log
[2553/7162] Fetching swift-metrics, swift-log, swift-service-discovery
[4977/8872] Fetching swift-metrics, swift-log, swift-service-discovery, swift-atomics
Fetched https://github.com/apple/swift-metrics.git from cache (0.42s)
[1/76093] Fetching swift-nio
Fetched https://github.com/apple/swift-service-discovery from cache (6.75s)
Fetched https://github.com/apple/swift-atomics.git from cache (6.75s)
Fetched https://github.com/apple/swift-log.git from cache (6.75s)
Fetched https://github.com/apple/swift-nio.git from cache (6.83s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (7.49s)
Computing version for https://github.com/apple/swift-service-discovery
Computed https://github.com/apple/swift-service-discovery at 1.4.0 (0.82s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.91s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (1.22s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (0.91s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4391] Fetching swift-system
[4392/20982] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.17s)
Fetched https://github.com/apple/swift-collections.git from cache (1.20s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (1.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.60s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.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/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-discovery
Working copy of https://github.com/apple/swift-service-discovery resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
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
Building for debugging...
[0/26] Write sources
[12/26] Compiling CNIOWindows WSAStartup.c
[12/26] Compiling _AtomicsShims.c
[12/26] Write sources
[12/26] Compiling CNIODarwin shim.c
[19/26] Compiling CNIOWindows shim.c
[20/26] Compiling CNIOLinux shim.c
[21/26] Compiling CNIOWASI CNIOWASI.c
[22/26] Compiling CNIOLinux liburing_shims.c
[23/26] Write swift-version-24593BA9C3E375BF.txt
[25/73] Emitting module _NIOBase64
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/73] 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
[27/73] Emitting module _NIODataStructures
[28/73] Emitting module Atomics
[28/75] Compiling c-atomics.c
[30/75] Compiling Atomics IntegerOperations.swift
[31/75] Compiling Atomics Unmanaged extensions.swift
[32/75] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[33/75] Compiling InternalCollectionsUtilities UInt+reversed.swift
[35/75] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[36/75] Compiling InternalCollectionsUtilities _SortedCollection.swift
[37/75] Compiling _NIODataStructures _TinyArray.swift
[38/76] Compiling Logging LogHandler.swift
[39/76] 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
[40/76] 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 |
[41/76] Compiling _NIOBase64 Base64.swift
[41/77] Compiling c-nioatomics.c
[42/77] Compiling _NIODataStructures PriorityQueue.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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/2] Write swift-version-24593BA9C3E375BF.txt
[2/49] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[3/50] Compiling Atomics AtomicValue.swift
[4/50] Compiling Atomics AtomicMemoryOrderings.swift
[5/50] Compiling Atomics DoubleWord.swift
[6/50] Compiling Atomics Primitives.shims.swift
[7/50] Emitting module _NIOBase64
[8/50] Emitting module Logging
[9/50] Compiling Atomics ManagedAtomic.swift
[10/50] Compiling Atomics ManagedAtomicLazyReference.swift
[11/50] Compiling Atomics UnsafeAtomic.swift
[12/50] Compiling Atomics UnsafeAtomicLazyReference.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/52] 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
[16/52] Emitting module _NIODataStructures
[17/52] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[18/52] Compiling _NIOBase64 Base64.swift
[19/53] Compiling _NIODataStructures PriorityQueue.swift
[20/53] Compiling _NIODataStructures _TinyArray.swift
[22/53] Compiling Atomics AtomicBool.swift
[23/53] Compiling Atomics IntegerConformances.swift
[24/53] Compiling Atomics PointerConformances.swift
[25/53] Compiling Atomics Primitives.native.swift
[26/53] Compiling Atomics OptionalRawRepresentable.swift
[27/53] Compiling Atomics RawRepresentable.swift
[29/53] Compiling Atomics AtomicInteger.swift
[30/53] Compiling Atomics AtomicOptionalWrappable.swift
[31/53] Compiling Atomics AtomicReference.swift
[32/53] Compiling Atomics AtomicStorage.swift
[34/53] Compiling Logging MetadataProvider.swift
[35/53] Emitting module InternalCollectionsUtilities
[36/53] Compiling _NIODataStructures Heap.swift
[40/55] Compiling Atomics IntegerOperations.swift
[41/55] Compiling Atomics Unmanaged extensions.swift
[42/55] 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 |
[44/55] 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
[45/55] Compiling Logging Logging.swift
[46/55] Compiling Logging Locks.swift
[47/55] Compiling Logging LogHandler.swift
[48/56] Compiling c-nioatomics.c
BUILD FAILURE 6.1 wasm