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.29.1 (42ead2), with Swift 6.1 for Android on 5 Jun 2025 06:13:19 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swiftwasm/JavaScriptKit.git
Reference: 0.29.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/swiftwasm/JavaScriptKit
 * tag               0.29.1     -> FETCH_HEAD
HEAD is now at 42ead29 Merge pull request #362 from swiftwasm/yt/extend-instantiation-hooks
Cloned https://github.com/swiftwasm/JavaScriptKit.git
Revision (git rev-parse @):
42ead29a698428efcbc65cda74b9926726fecec9
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftwasm/JavaScriptKit.git at 0.29.1
========================================
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" : "601.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" : "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",
        "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/BridgeJSSkeleton/BridgeJSSkeleton.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" : [
        "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",
        "JavaScriptEventLoopTestSupport"
      ],
      "sources" : [
        "BasicObjects/JSArray.swift",
        "BasicObjects/JSDate.swift",
        "BasicObjects/JSError.swift",
        "BasicObjects/JSPromise.swift",
        "BasicObjects/JSTimer.swift",
        "BasicObjects/JSTypedArray.swift",
        "ConstructibleFromJSValue.swift",
        "ConvertibleToJSValue.swift",
        "Deprecated.swift",
        "Features.swift",
        "FundamentalObjects/JSBigInt.swift",
        "FundamentalObjects/JSClosure.swift",
        "FundamentalObjects/JSFunction.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" : "JavaScriptEventLoopTests",
      "module_type" : "SwiftTarget",
      "name" : "JavaScriptEventLoopTests",
      "path" : "Tests/JavaScriptEventLoopTests",
      "sources" : [
        "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" : "Plugins/BridgeJS/Sources/BridgeJSTool",
      "product_dependencies" : [
        "SwiftParser",
        "SwiftSyntax",
        "SwiftBasicFormat",
        "SwiftSyntaxBuilder"
      ],
      "product_memberships" : [
        "BridgeJS",
        "BridgeJSCommandPlugin",
        "BridgeJSTool"
      ],
      "sources" : [
        "BridgeJSSkeleton/BridgeJSSkeleton.swift",
        "BridgeJSTool.swift",
        "DiagnosticError.swift",
        "ExportSwift.swift",
        "ImportTS.swift",
        "TypeDeclResolver.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "BridgeJSRuntimeTests",
      "module_type" : "SwiftTarget",
      "name" : "BridgeJSRuntimeTests",
      "path" : "Tests/BridgeJSRuntimeTests",
      "sources" : [
        "ExportAPITests.swift",
        "Generated/ExportSwift.swift"
      ],
      "target_dependencies" : [
        "JavaScriptKit"
      ],
      "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-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/70759] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.12s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (7.71s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
[1/1] Compiling plugin BridgeJSCommandPlugin
[2/2] Compiling plugin BridgeJS
[3/3] Compiling plugin PackageToJS
Building for debugging...
[3/58] Write sources
[27/58] Compiling _CJavaScriptEventLoopTestSupport _CJavaScriptEventLoopTestSupport.c
[28/58] Compiling _CJavaScriptBigIntSupport _CJavaScriptKit+I64.c
[29/58] Compiling _CJavaScriptEventLoop _CJavaScriptEventLoop.c
[30/58] Compiling _SwiftSyntaxCShims dummy.c
[30/58] Compiling _CJavaScriptKit _CJavaScriptKit.c
[32/58] Compiling _SwiftSyntaxCShims dummy.c
[33/58] Write swift-version-24593BA9C3E375BF.txt
[35/92] Emitting module SwiftSyntax510
[36/92] Emitting module SwiftSyntax600
[37/92] Compiling SwiftSyntax600 Empty.swift
[38/93] Compiling SwiftSyntax510 Empty.swift
[39/93] Emitting module SwiftSyntax509
[40/94] Compiling SwiftSyntax509 Empty.swift
[43/95] Wrapping AST for SwiftSyntax509 for debugging
[44/95] Wrapping AST for SwiftSyntax510 for debugging
[45/95] Wrapping AST for SwiftSyntax600 for debugging
[47/141] Emitting module SwiftSyntax509
[48/141] Compiling SwiftSyntax509 Empty.swift
[49/160] Emitting module SwiftSyntax600
[50/160] Compiling SwiftSyntax600 Empty.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[52/161] 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
[53/161] Emitting module SwiftSyntax510
[54/161] Compiling SwiftSyntax510 Empty.swift
[55/164] Compiling SwiftSyntax AbsolutePosition.swift
[56/164] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[57/164] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[58/164] Compiling SwiftSyntax Convenience.swift
[59/164] Compiling SwiftSyntax CustomTraits.swift
[60/164] Compiling SwiftSyntax Identifier.swift
[61/164] Compiling SwiftSyntax Assert.swift
[62/164] Compiling SwiftSyntax BumpPtrAllocator.swift
[63/164] Compiling SwiftSyntax CommonAncestor.swift
[64/164] Compiling SwiftSyntax Utils.swift
[65/164] Compiling SwiftSyntax ChildNameForKeyPath.swift
[66/164] Compiling SwiftSyntax Keyword.swift
[67/164] Compiling SwiftSyntax SourcePresence.swift
[68/164] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[69/164] Compiling SwiftSyntax Syntax.swift
[70/164] Compiling SwiftSyntax SyntaxBaseNodes.swift
[71/164] Compiling SwiftSyntax SyntaxCollections.swift
[72/164] Compiling SwiftSyntax SyntaxEnum.swift
[73/164] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[74/164] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[75/164] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[77/164] Wrapping AST for SwiftSyntax509 for debugging
[78/164] Wrapping AST for SwiftSyntax600 for debugging
[80/164] 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 = {
[81/164] 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 = {
[81/164] Wrapping AST for SwiftSyntax510 for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin BridgeJSCommandPlugin
[2/2] Compiling plugin BridgeJS
[3/3] Compiling plugin PackageToJS
Building for debugging...
[3/28] Write swift-version-24593BA9C3E375BF.txt
[5/40] Emitting module SwiftSyntax600
[6/40] Compiling SwiftSyntax509 Empty.swift
[7/47] Emitting module SwiftSyntax509
[8/51] Compiling SwiftSyntax600 Empty.swift
[9/64] Compiling SwiftSyntax509 Empty.swift
[10/64] Emitting module SwiftSyntax510
[11/64] Compiling SwiftSyntax510 Empty.swift
[14/64] Emitting module SwiftSyntax510
[15/65] Emitting module SwiftSyntax600
[16/65] Compiling SwiftSyntax600 Empty.swift
[17/66] Emitting module SwiftSyntax509
[22/64] Wrapping AST for SwiftSyntax510 for debugging
[24/191] Compiling SwiftSyntax SyntaxCollection.swift
[25/191] Compiling SwiftSyntax SyntaxHashable.swift
[26/191] Compiling SwiftSyntax SyntaxIdentifier.swift
[27/193] Compiling SwiftSyntax Convenience.swift
[28/193] Compiling SwiftSyntax CustomTraits.swift
[29/193] Compiling SwiftSyntax Identifier.swift
[30/193] Compiling SwiftSyntax SyntaxArena.swift
[31/193] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[32/193] Compiling SwiftSyntax SyntaxChildren.swift
[33/193] Compiling SwiftSyntax SourcePresence.swift
[34/193] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[35/193] Compiling SwiftSyntax Syntax.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[36/193] 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
[37/193] Compiling SwiftSyntax AbsolutePosition.swift
[38/193] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[39/193] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[40/193] Compiling SwiftSyntax Assert.swift
[41/193] Compiling SwiftSyntax BumpPtrAllocator.swift
[42/193] Compiling SwiftSyntax CommonAncestor.swift
[43/193] 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 = {
[44/193] 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 = {
[45/193] Compiling SwiftSyntax MemoryLayout.swift
[46/193] Compiling SwiftSyntax MissingNodeInitializers.swift
[47/193] Compiling SwiftSyntax RawSyntax.swift
BUILD FAILURE 6.1 android