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 JavaScriptKit, reference 0.37.0 (4b327d), with Swift 6.1 for Android on 28 Nov 2025 18:19:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftwasm/JavaScriptKit.git
Reference: 0.37.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/swiftwasm/JavaScriptKit
 * tag               0.37.0     -> FETCH_HEAD
HEAD is now at 4b327dc Documentation: Add Testing article
Cloned https://github.com/swiftwasm/JavaScriptKit.git
Revision (git rev-parse @):
4b327dc40d3931c2236ed43c6b47325c17c88afe
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftwasm/JavaScriptKit.git at 0.37.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swiftwasm/JavaScriptKit.git
https://github.com/swiftwasm/JavaScriptKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "600.0.0",
            "upper_bound" : "602.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax"
    }
  ],
  "manifest_display_name" : "JavaScriptKit",
  "name" : "JavaScriptKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "JavaScriptKit",
      "targets" : [
        "JavaScriptKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "JavaScriptEventLoop",
      "targets" : [
        "JavaScriptEventLoop"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "JavaScriptBigIntSupport",
      "targets" : [
        "JavaScriptBigIntSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "JavaScriptFoundationCompat",
      "targets" : [
        "JavaScriptFoundationCompat"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "JavaScriptEventLoopTestSupport",
      "targets" : [
        "JavaScriptEventLoopTestSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PackageToJS",
      "targets" : [
        "PackageToJS"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BridgeJS",
      "targets" : [
        "BridgeJS"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BridgeJSCommandPlugin",
      "targets" : [
        "BridgeJSCommandPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "BridgeJSTool",
      "targets" : [
        "BridgeJSTool"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_CJavaScriptKit",
      "module_type" : "ClangTarget",
      "name" : "_CJavaScriptKit",
      "path" : "Sources/_CJavaScriptKit",
      "product_memberships" : [
        "JavaScriptKit",
        "JavaScriptEventLoop",
        "JavaScriptBigIntSupport",
        "JavaScriptFoundationCompat",
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "_CJavaScriptKit.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "_CJavaScriptEventLoopTestSupport",
      "module_type" : "ClangTarget",
      "name" : "_CJavaScriptEventLoopTestSupport",
      "path" : "Sources/_CJavaScriptEventLoopTestSupport",
      "product_memberships" : [
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "_CJavaScriptEventLoopTestSupport.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "_CJavaScriptEventLoop",
      "module_type" : "ClangTarget",
      "name" : "_CJavaScriptEventLoop",
      "path" : "Sources/_CJavaScriptEventLoop",
      "product_memberships" : [
        "JavaScriptEventLoop",
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "_CJavaScriptEventLoop.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "_CJavaScriptBigIntSupport",
      "module_type" : "ClangTarget",
      "name" : "_CJavaScriptBigIntSupport",
      "path" : "Sources/_CJavaScriptBigIntSupport",
      "product_memberships" : [
        "JavaScriptBigIntSupport"
      ],
      "sources" : [
        "_CJavaScriptKit+I64.c"
      ],
      "target_dependencies" : [
        "_CJavaScriptKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PackageToJS",
      "module_type" : "PluginTarget",
      "name" : "PackageToJS",
      "path" : "Plugins/PackageToJS/Sources",
      "plugin_capability" : {
        "intent" : {
          "description" : "Convert a Swift package to a JavaScript package",
          "type" : "custom",
          "verb" : "js"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "PackageToJS"
      ],
      "sources" : [
        "BridgeJSLink/BridgeJSLink.swift",
        "BridgeJSLink/CodeFragmentPrinter.swift",
        "BridgeJSLink/JSGlueGen.swift",
        "BridgeJSSkeleton/BridgeJSSkeleton.swift",
        "BridgeJSUtilities/Utilities.swift",
        "MiniMake.swift",
        "PackageToJS.swift",
        "PackageToJSPlugin.swift",
        "ParseWasm.swift",
        "Preprocess.swift",
        "TestsParser.swift"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "JavaScriptKitTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptKitTests",
      "path" : "Tests/JavaScriptKitTests",
      "sources" : [
        "JSClosureTests.swift",
        "JSExceptionTests.swift",
        "JSObjectTests.swift",
        "JSStringTests.swift",
        "JSTypedArrayTests.swift",
        "JavaScriptKitTests.swift",
        "ThreadLocalTests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JavaScriptKit",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptKit",
      "path" : "Sources/JavaScriptKit",
      "product_memberships" : [
        "JavaScriptKit",
        "JavaScriptEventLoop",
        "JavaScriptBigIntSupport",
        "JavaScriptFoundationCompat",
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "BasicObjects/JSArray.swift",
        "BasicObjects/JSDate.swift",
        "BasicObjects/JSError.swift",
        "BasicObjects/JSPromise.swift",
        "BasicObjects/JSTimer.swift",
        "BasicObjects/JSTypedArray.swift",
        "BridgeJSInstrincics.swift",
        "ConstructibleFromJSValue.swift",
        "ConvertibleToJSValue.swift",
        "Deprecated.swift",
        "Features.swift",
        "FundamentalObjects/JSBigInt.swift",
        "FundamentalObjects/JSClosure.swift",
        "FundamentalObjects/JSObject+CallAsFunction.swift",
        "FundamentalObjects/JSObject.swift",
        "FundamentalObjects/JSString.swift",
        "FundamentalObjects/JSSymbol.swift",
        "FundamentalObjects/JSThrowingFunction.swift",
        "JSBridgedType.swift",
        "JSException.swift",
        "JSValue.swift",
        "JSValueDecoder.swift",
        "Macros.swift",
        "ThreadLocal.swift"
      ],
      "target_dependencies" : [
        "_CJavaScriptKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JavaScriptFoundationCompatTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptFoundationCompatTests",
      "path" : "Tests/JavaScriptFoundationCompatTests",
      "sources" : [
        "Data+JSValueTests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptFoundationCompat"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JavaScriptFoundationCompat",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptFoundationCompat",
      "path" : "Sources/JavaScriptFoundationCompat",
      "product_memberships" : [
        "JavaScriptFoundationCompat"
      ],
      "sources" : [
        "Data+JSValue.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JavaScriptEventLoopTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptEventLoopTests",
      "path" : "Tests/JavaScriptEventLoopTests",
      "sources" : [
        "JSClosure+AsyncTests.swift",
        "JSPromiseTests.swift",
        "JSTimerTests.swift",
        "JavaScriptEventLoopTests.swift",
        "WebWorkerDedicatedExecutorTests.swift",
        "WebWorkerTaskExecutorTests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptEventLoop",
        "JavaScriptKit",
        "JavaScriptEventLoopTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JavaScriptEventLoopTestSupportTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptEventLoopTestSupportTests",
      "path" : "Tests/JavaScriptEventLoopTestSupportTests",
      "sources" : [
        "JavaScriptEventLoopTestSupportTests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit",
        "JavaScriptEventLoopTestSupport"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JavaScriptEventLoopTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptEventLoopTestSupport",
      "path" : "Sources/JavaScriptEventLoopTestSupport",
      "product_memberships" : [
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "JavaScriptEventLoopTestSupport.swift"
      ],
      "target_dependencies" : [
        "_CJavaScriptEventLoopTestSupport",
        "JavaScriptEventLoop"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JavaScriptEventLoop",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptEventLoop",
      "path" : "Sources/JavaScriptEventLoop",
      "product_memberships" : [
        "JavaScriptEventLoop",
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "JSSending.swift",
        "JavaScriptEventLoop+ExecutorFactory.swift",
        "JavaScriptEventLoop+LegacyHooks.swift",
        "JavaScriptEventLoop.swift",
        "JobQueue.swift",
        "WebWorkerDedicatedExecutor.swift",
        "WebWorkerTaskExecutor.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit",
        "_CJavaScriptEventLoop"
      ],
      "type" : "library"
    },
    {
      "c99name" : "JavaScriptBigIntSupportTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptBigIntSupportTests",
      "path" : "Tests/JavaScriptBigIntSupportTests",
      "sources" : [
        "JavaScriptBigIntSupportTests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptBigIntSupport",
        "JavaScriptKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "JavaScriptBigIntSupport",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptBigIntSupport",
      "path" : "Sources/JavaScriptBigIntSupport",
      "product_memberships" : [
        "JavaScriptBigIntSupport"
      ],
      "sources" : [
        "Int64+I64.swift",
        "JSBigInt+I64.swift"
      ],
      "target_dependencies" : [
        "_CJavaScriptBigIntSupport",
        "JavaScriptKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BridgeJSTool",
      "module_type" : "SwiftTarget",
      "name" : "BridgeJSTool",
      "path" : "Sources/BridgeJSTool",
      "product_dependencies" : [
        "SwiftParser",
        "SwiftSyntax",
        "SwiftBasicFormat",
        "SwiftSyntaxBuilder"
      ],
      "product_memberships" : [
        "BridgeJS",
        "BridgeJSCommandPlugin",
        "BridgeJSTool"
      ],
      "sources" : [
        "BridgeJSCore/BridgeJSConfig.swift",
        "BridgeJSCore/BridgeJSCoreError.swift",
        "BridgeJSCore/DiagnosticError.swift",
        "BridgeJSCore/ExportSwift.swift",
        "BridgeJSCore/ImportTS.swift",
        "BridgeJSCore/ProgressReporting.swift",
        "BridgeJSCore/TypeDeclResolver.swift",
        "BridgeJSSkeleton/BridgeJSSkeleton.swift",
        "BridgeJSTool/BridgeJSTool.swift",
        "BridgeJSUtilities/Utilities.swift",
        "TS2Skeleton/TS2Skeleton.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BridgeJSRuntimeTests",
      "module_type" : "SwiftTarget",
      "name" : "BridgeJSRuntimeTests",
      "path" : "Tests/BridgeJSRuntimeTests",
      "sources" : [
        "ExportAPITests.swift",
        "Generated/BridgeJS.ExportSwift.swift",
        "Generated/BridgeJS.ImportTS.swift",
        "ImportAPITests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit",
        "JavaScriptEventLoop"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BridgeJSGlobalTests",
      "module_type" : "SwiftTarget",
      "name" : "BridgeJSGlobalTests",
      "path" : "Tests/BridgeJSGlobalTests",
      "sources" : [
        "Generated/BridgeJS.ExportSwift.swift",
        "GlobalAPITests.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit",
        "JavaScriptEventLoop"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BridgeJSCommandPlugin",
      "module_type" : "PluginTarget",
      "name" : "BridgeJSCommandPlugin",
      "path" : "Plugins/BridgeJS/Sources/BridgeJSCommandPlugin",
      "plugin_capability" : {
        "intent" : {
          "description" : "Generate bridging code",
          "type" : "custom",
          "verb" : "bridge-js"
        },
        "permissions" : [
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "Generate bridging code",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "BridgeJSCommandPlugin"
      ],
      "sources" : [
        "BridgeJSCommandPlugin.swift"
      ],
      "target_dependencies" : [
        "BridgeJSTool"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "BridgeJS",
      "module_type" : "PluginTarget",
      "name" : "BridgeJS",
      "path" : "Plugins/BridgeJS/Sources/BridgeJSBuildPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "BridgeJS"
      ],
      "sources" : [
        "BridgeJSBuildPlugin.swift"
      ],
      "target_dependencies" : [
        "BridgeJSTool"
      ],
      "type" : "plugin"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/72984] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (4.97s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (7.55s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
[1/1] Compiling plugin BridgeJSCommandPlugin
[2/2] Compiling plugin BridgeJS
[3/3] Compiling plugin PackageToJS
Building for debugging...
[3/63] Write sources
[30/63] Compiling _CJavaScriptBigIntSupport _CJavaScriptKit+I64.c
[31/63] Compiling _CJavaScriptKit _CJavaScriptKit.c
[32/63] Compiling _CJavaScriptEventLoopTestSupport _CJavaScriptEventLoopTestSupport.c
[33/63] Compiling _SwiftSyntaxCShims dummy.c
[34/63] Compiling _CJavaScriptEventLoop _CJavaScriptEventLoop.c
[35/63] Compiling _SwiftSyntaxCShims dummy.c
[36/63] Write swift-version-24593BA9C3E375BF.txt
[38/79] Emitting module SwiftSyntax600
[39/79] Emitting module SwiftSyntax601
[40/79] Compiling SwiftSyntax601 Empty.swift
[41/79] Emitting module SwiftSyntax601
[42/79] Compiling SwiftSyntax601 Empty.swift
[43/81] Compiling SwiftSyntax600 Empty.swift
[45/82] Emitting module SwiftSyntax509
[46/82] Compiling SwiftSyntax509 Empty.swift
[48/83] Emitting module SwiftSyntax600
[49/83] Compiling SwiftSyntax600 Empty.swift
[51/84] Compiling SwiftSyntax509 Empty.swift
[52/84] Emitting module SwiftSyntax509
[53/85] Emitting module SwiftSyntax510
[54/85] Compiling SwiftSyntax510 Empty.swift
[55/85] Emitting module SwiftSyntax510
[56/85] Compiling SwiftSyntax510 Empty.swift
[58/87] Wrapping AST for SwiftSyntax601 for debugging
[63/109] Wrapping AST for SwiftSyntax509 for debugging
[64/109] Wrapping AST for SwiftSyntax600 for debugging
[66/109] Wrapping AST for SwiftSyntax510 for debugging
[68/128] Wrapping AST for SwiftSyntax509 for debugging
[70/237] Compiling SwiftSyntax SourceLocation.swift
[71/237] Compiling SwiftSyntax SourcePresence.swift
[72/237] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[73/240] Compiling SwiftSyntax TokenDiagnostic.swift
[74/240] Compiling SwiftSyntax TokenSequence.swift
[75/240] Compiling SwiftSyntax TokenSyntax.swift
[76/240] Compiling JavaScriptKit JSValueDecoder.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
[77/240] Compiling JavaScriptKit Macros.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
[78/240] Compiling JavaScriptKit ThreadLocal.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
[79/240] Compiling SwiftSyntax AbsolutePosition.swift
[80/240] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[81/240] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[82/240] Emitting module JavaScriptKit
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
[83/240] Compiling SwiftSyntax SyntaxIdentifier.swift
[84/240] Compiling SwiftSyntax SyntaxNodeFactory.swift
[85/240] Compiling SwiftSyntax SyntaxNodeStructure.swift
[86/240] Compiling SwiftSyntax SyntaxProtocol.swift
[87/240] Compiling SwiftSyntax SyntaxText.swift
[88/240] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[89/240] Compiling SwiftSyntax Convenience.swift
[90/240] Compiling SwiftSyntax CustomTraits.swift
[91/240] Compiling SwiftSyntax EditorPlaceholder.swift
[92/240] Compiling SwiftSyntax Assert.swift
[93/240] Compiling SwiftSyntax BumpPtrAllocator.swift
[94/240] Compiling SwiftSyntax CommonAncestor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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: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:91d018f1076d6a900d71818287e1b2618039c67008f0564a121787f87e1ae735
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin BridgeJSCommandPlugin
[2/2] Compiling plugin BridgeJS
[3/3] Compiling plugin PackageToJS
Building for debugging...
[3/30] Write swift-version-24593BA9C3E375BF.txt
[5/46] Compiling SwiftSyntax601 Empty.swift
[6/46] Compiling SwiftSyntax509 Empty.swift
[7/46] Compiling SwiftSyntax600 Empty.swift
[8/46] Compiling SwiftSyntax601 Empty.swift
[9/46] Emitting module SwiftSyntax510
[10/46] Compiling SwiftSyntax510 Empty.swift
[11/46] Emitting module SwiftSyntax509
[12/46] Compiling SwiftSyntax509 Empty.swift
[13/46] Emitting module SwiftSyntax601
[14/47] Emitting module SwiftSyntax600
[15/49] Emitting module SwiftSyntax509
[16/51] Emitting module SwiftSyntax601
[17/52] Compiling SwiftSyntax600 Empty.swift
[18/52] Emitting module SwiftSyntax600
[19/53] Emitting module SwiftSyntax510
[20/53] Compiling SwiftSyntax510 Empty.swift
[29/196] Compiling SwiftSyntax SourceLocation.swift
[30/196] Compiling SwiftSyntax SourcePresence.swift
[31/196] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/199] Emitting module JavaScriptKit
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
[33/199] Compiling SwiftSyntax Identifier.swift
[34/199] Compiling SwiftSyntax MemoryLayout.swift
[35/199] Compiling SwiftSyntax MissingNodeInitializers.swift
[36/199] Compiling SwiftSyntax Convenience.swift
[37/199] Compiling SwiftSyntax CustomTraits.swift
[38/199] Compiling SwiftSyntax EditorPlaceholder.swift
[39/199] Compiling SwiftSyntax AbsolutePosition.swift
[40/199] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[41/199] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[42/199] Compiling SwiftSyntax Assert.swift
[43/199] Compiling SwiftSyntax BumpPtrAllocator.swift
[44/199] Compiling SwiftSyntax CommonAncestor.swift
[45/199] Compiling SwiftSyntax RawSyntaxTokenView.swift
[46/199] Compiling SwiftSyntax SourceEdit.swift
[47/199] Compiling SwiftSyntax SourceLength.swift
[48/199] Compiling SwiftSyntax RawSyntax.swift
[49/199] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[50/199] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[51/199] Compiling JavaScriptKit JSValueDecoder.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
[52/199] Compiling JavaScriptKit Macros.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
[53/199] Compiling JavaScriptKit ThreadLocal.swift
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:10:8: error: Unsupported platform
  8 | import Glibc
  9 | #else
 10 | #error("Unsupported platform")
    |        `- error: Unsupported platform
 11 | #endif
 12 |
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:39:22: error: cannot find type 'pthread_key_t' in scope
 37 |     }
 38 |
 39 |     private let key: pthread_key_t
    |                      `- error: cannot find type 'pthread_key_t' in scope
 40 |     private let toPointer: @Sendable (Value) -> UnsafeMutableRawPointer
 41 |     private let fromPointer: @Sendable (UnsafeMutableRawPointer) -> Value
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:23:33: error: cannot find 'pthread_getspecific' in scope
 21 |     var wrappedValue: Value? {
 22 |         get {
 23 |             guard let pointer = pthread_getspecific(key) else {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 24 |                 return nil
 25 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:29:33: error: cannot find 'pthread_getspecific' in scope
 27 |         }
 28 |         set {
 29 |             if let oldPointer = pthread_getspecific(key) {
    |                                 `- error: cannot find 'pthread_getspecific' in scope
 30 |                 release(oldPointer)
 31 |             }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:34:17: error: cannot find 'pthread_setspecific' in scope
 32 |             if let newValue = newValue {
 33 |                 let pointer = toPointer(newValue)
 34 |                 pthread_setspecific(key, pointer)
    |                 `- error: cannot find 'pthread_setspecific' in scope
 35 |             }
 36 |         }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:47:19: error: cannot find 'pthread_key_t' in scope
 45 |     /// able to store the value directly in the thread-local storage.
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 48 |         pthread_key_create(&key, nil)
 49 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:9: error: cannot find 'pthread_key_create' in scope
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:48:34: error: 'nil' requires a contextual type
 46 |     init() where Value: AnyObject {
 47 |         var key = pthread_key_t()
 48 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 49 |         self.key = key
 50 |         self.toPointer = { Unmanaged.passRetained($0).toOpaque() }
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:65:19: error: cannot find 'pthread_key_t' in scope
 63 |     /// boxing the value in heap-allocated memory.
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
    |                   `- error: cannot find 'pthread_key_t' in scope
 66 |         pthread_key_create(&key, nil)
 67 |         self.key = key
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:9: error: cannot find 'pthread_key_create' in scope
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |         `- error: cannot find 'pthread_key_create' in scope
 67 |         self.key = key
 68 |         self.toPointer = {
/host/spi-builder-workspace/Sources/JavaScriptKit/ThreadLocal.swift:66:34: error: 'nil' requires a contextual type
 64 |     init(boxing _: Void) {
 65 |         var key = pthread_key_t()
 66 |         pthread_key_create(&key, nil)
    |                                  `- error: 'nil' requires a contextual type
 67 |         self.key = key
 68 |         self.toPointer = {
BUILD FAILURE 6.1 android