The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-thread-local, reference main (a58475), with Swift 6.2 for Wasm on 7 Jul 2026 01:32:30 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ben-smith-dev/swift-thread-local.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/ben-smith-dev/swift-thread-local
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a58475c Merge pull request #24 from ben-smith-dev/update-readme
Cloned https://github.com/ben-smith-dev/swift-thread-local.git
Revision (git rev-parse @):
a58475cdbcfe77b3f32ed96c48d419e575bb07f9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ben-smith-dev/swift-thread-local.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ben-smith-dev/swift-thread-local.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/3] Write sources
[0/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/9] Compiling ThreadLocal resource_bundle_accessor.swift
[5/9] Emitting module ThreadLocal
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:10:22: error: cannot find type 'pthread_key_t' in scope
  8 |
  9 | internal struct ThreadLocalStorage<Value>: ~Copyable {
 10 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
[6/9] Compiling ThreadLocal ThreadLocalStorage.swift
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:10:22: error: cannot find type 'pthread_key_t' in scope
  8 |
  9 | internal struct ThreadLocalStorage<Value>: ~Copyable {
 10 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:13:18: error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
 13 |         var key: pthread_key_t = 0
    |                  `- error: cannot find type 'pthread_key_t' in scope
 14 |         let errorCode: Int32 = pthread_key_create(&key, Self.makeBoxDestructor())
 15 |
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:14:32: error: cannot find 'pthread_key_create' in scope
 12 |     public init() {
 13 |         var key: pthread_key_t = 0
 14 |         let errorCode: Int32 = pthread_key_create(&key, Self.makeBoxDestructor())
    |                                `- error: cannot find 'pthread_key_create' in scope
 15 |
 16 |         precondition(
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:14:62: error: type 'ThreadLocalStorage<Value>' has no member 'makeBoxDestructor'
 12 |     public init() {
 13 |         var key: pthread_key_t = 0
 14 |         let errorCode: Int32 = pthread_key_create(&key, Self.makeBoxDestructor())
    |                                                              `- error: type 'ThreadLocalStorage<Value>' has no member 'makeBoxDestructor'
 15 |
 16 |         precondition(
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:44:29: error: cannot find 'pthread_getspecific' in scope
 42 |     @available(*, noasync)
 43 |     public func clear() {
 44 |         guard let pointer = pthread_getspecific(self.key) else {
    |                             `- error: cannot find 'pthread_getspecific' in scope
 45 |             return
 46 |         }
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:48:32: error: cannot find 'pthread_setspecific' in scope
 46 |         }
 47 |
 48 |         let errorCode: Int32 = pthread_setspecific(self.key, nil)
    |                                `- error: cannot find 'pthread_setspecific' in scope
 49 |         precondition(
 50 |             errorCode == .zero,
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:48:62: error: 'nil' requires a contextual type
 46 |         }
 47 |
 48 |         let errorCode: Int32 = pthread_setspecific(self.key, nil)
    |                                                              `- error: 'nil' requires a contextual type
 49 |         precondition(
 50 |             errorCode == .zero,
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:59:54: error: cannot find 'pthread_getspecific' in scope
 57 |     @available(*, noasync)
 58 |     private func getBox() -> MutableBox? {
 59 |         guard let pointer: UnsafeMutableRawPointer = pthread_getspecific(self.key) else {
    |                                                      `- error: cannot find 'pthread_getspecific' in scope
 60 |             return nil
 61 |         }
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:72:16: error: cannot find 'pthread_getspecific' in scope
 70 |     @available(*, noasync)
 71 |     private func setBox(_ box: MutableBox) {
 72 |         assert(pthread_getspecific(self.key) == nil)
    |                `- error: cannot find 'pthread_getspecific' in scope
 73 |
 74 |         let pointer: UnsafeMutableRawPointer = Unmanaged
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:78:32: error: cannot find 'pthread_setspecific' in scope
 76 |             .toOpaque()
 77 |
 78 |         let errorCode: Int32 = pthread_setspecific(self.key, pointer)
    |                                `- error: cannot find 'pthread_setspecific' in scope
 79 |         precondition(
 80 |             errorCode == .zero,
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:86:32: error: cannot find 'pthread_key_delete' in scope
 84 |
 85 |     deinit {
 86 |         let errorCode: Int32 = pthread_key_delete(self.key)
    |                                `- error: cannot find 'pthread_key_delete' in scope
 87 |         precondition(
 88 |             errorCode == .zero,
[7/9] Compiling ThreadLocal ThreadLocal.swift
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:10:22: error: cannot find type 'pthread_key_t' in scope
  8 |
  9 | internal struct ThreadLocalStorage<Value>: ~Copyable {
 10 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
[8/9] Compiling ThreadLocal ReadonlyThreadLocal.swift
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:10:22: error: cannot find type 'pthread_key_t' in scope
  8 |
  9 | internal struct ThreadLocalStorage<Value>: ~Copyable {
 10 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
[9/9] Compiling ThreadLocal ScopedThreadLocal.swift
/host/spi-builder-workspace/Sources/ThreadLocal/Internal/ThreadLocalStorage.swift:10:22: error: cannot find type 'pthread_key_t' in scope
  8 |
  9 | internal struct ThreadLocalStorage<Value>: ~Copyable {
 10 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 11 |
 12 |     public init() {
BUILD FAILURE 6.2 wasm