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 main (5e1fbb), with Swift 6.1 for Android on 16 Jun 2025 02:28:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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: 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/swiftwasm/JavaScriptKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5e1fbb4 Merge pull request #373 from swiftwasm/yt/add-import-ts-runtime-tests
Cloned https://github.com/swiftwasm/JavaScriptKit.git
Revision (git rev-parse @):
5e1fbb4f5d5ff40d70b240f90bf3e54440fe162f
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swiftwasm/JavaScriptKit.git at main
========================================
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",
        "Generated/ImportTS.swift",
        "ImportAPITests.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-4609320-2":/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
e1a89dea01a6: Already exists
39bc14e52995: Already exists
cc0382103b05: Already exists
084072dee40a: Already exists
4a92b37feea1: Pulling fs layer
4a92b37feea1: Waiting
4a92b37feea1: Download complete
4a92b37feea1: Pull complete
Digest: sha256:d4adec85e5c000fff132a1b0de73467182c76318cbb55cea6ebedacb1b3c4ef0
Status: Downloaded newer image for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/70794] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.59s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (9.37s)
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 _CJavaScriptEventLoop _CJavaScriptEventLoop.c
[29/58] Compiling _SwiftSyntaxCShims dummy.c
[31/58] Compiling _CJavaScriptBigIntSupport _CJavaScriptKit+I64.c
[32/58] Compiling _CJavaScriptKit _CJavaScriptKit.c
[33/58] Write swift-version-24593BA9C3E375BF.txt
[35/80] Emitting module SwiftSyntax509
[37/89] Emitting module SwiftSyntax510
[38/92] Compiling SwiftSyntax509 Empty.swift
[39/92] Compiling JavaScriptKit JSException.swift
[40/92] Compiling JavaScriptKit JSValue.swift
[41/92] Compiling JavaScriptKit JSValueDecoder.swift
[42/92] Compiling JavaScriptKit ConstructibleFromJSValue.swift
[43/92] Compiling JavaScriptKit ConvertibleToJSValue.swift
[44/92] Compiling JavaScriptKit Deprecated.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[45/92] 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
[46/92] Compiling JavaScriptKit JSSymbol.swift
[47/92] Compiling JavaScriptKit JSThrowingFunction.swift
[48/92] Compiling JavaScriptKit JSBridgedType.swift
[49/95] Compiling SwiftSyntax600 Empty.swift
[50/95] Emitting module SwiftSyntax600
[51/95] Compiling SwiftSyntax600 Empty.swift
[52/95] Emitting module SwiftSyntax600
[53/96] Emitting module SwiftSyntax510
[54/96] Compiling SwiftSyntax510 Empty.swift
[56/98] Compiling JavaScriptKit Features.swift
[57/99] Compiling JavaScriptKit JSBigInt.swift
[58/99] Compiling JavaScriptKit JSClosure.swift
[59/99] Compiling JavaScriptKit JSFunction.swift
[60/99] Compiling JavaScriptKit JSObject.swift
[61/99] Compiling JavaScriptKit JSString.swift
[62/99] Compiling JavaScriptKit JSArray.swift
[63/99] Compiling JavaScriptKit JSDate.swift
[64/99] Compiling JavaScriptKit JSError.swift
[65/99] Compiling JavaScriptKit JSPromise.swift
[66/99] Compiling JavaScriptKit JSTimer.swift
[67/99] Compiling JavaScriptKit JSTypedArray.swift
[72/99] 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 = {
[73/99] 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 = {
[75/99] Compiling SwiftSyntax509 Empty.swift
[75/100] Wrapping AST for SwiftSyntax510 for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:d4adec85e5c000fff132a1b0de73467182c76318cbb55cea6ebedacb1b3c4ef0
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
warning: 'spi-builder-workspace': found 2 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/BridgeJSRuntimeTests/bridge-js.config.json
    /host/spi-builder-workspace/Tests/BridgeJSRuntimeTests/bridge-js.d.ts
[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/38] Emitting module SwiftSyntax600
[6/38] Compiling SwiftSyntax600 Empty.swift
[7/38] Compiling SwiftSyntax510 Empty.swift
[8/40] Emitting module SwiftSyntax510
[10/62] Compiling SwiftSyntax600 Empty.swift
[11/62] Emitting module SwiftSyntax600
[12/65] Emitting module SwiftSyntax509
[13/65] Compiling SwiftSyntax509 Empty.swift
[15/66] Emitting module SwiftSyntax510
[16/66] Compiling SwiftSyntax510 Empty.swift
[19/67] Compiling SwiftSyntax509 Empty.swift
[20/67] Emitting module SwiftSyntax509
[20/68] Wrapping AST for SwiftSyntax600 for debugging
[21/68] Wrapping AST for SwiftSyntax509 for debugging
[24/68] Wrapping AST for SwiftSyntax600 for debugging
[24/68] Wrapping AST for SwiftSyntax510 for debugging
[26/68] Wrapping AST for SwiftSyntax509 for debugging
[27/68] Wrapping AST for SwiftSyntax510 for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/114] 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
[30/198] Compiling SwiftSyntax SourceEdit.swift
[31/198] Compiling SwiftSyntax SourceLength.swift
[32/198] Compiling SwiftSyntax SourceLocation.swift
[33/198] Compiling SwiftSyntax MemoryLayout.swift
[34/198] Compiling SwiftSyntax MissingNodeInitializers.swift
[35/198] Compiling SwiftSyntax RawSyntax.swift
[36/198] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[37/198] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[38/198] Compiling SwiftSyntax RawSyntaxTokenView.swift
[39/198] Compiling SwiftSyntax SyntaxArena.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 = {
[40/198] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.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 = {
[41/198] Compiling SwiftSyntax AbsolutePosition.swift
[42/198] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[43/198] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[44/198] Compiling SwiftSyntax Convenience.swift
[45/198] Compiling SwiftSyntax CustomTraits.swift
[46/198] Compiling SwiftSyntax Identifier.swift
[47/198] Compiling SwiftSyntax Assert.swift
[48/198] Compiling SwiftSyntax BumpPtrAllocator.swift
[49/198] Compiling SwiftSyntax CommonAncestor.swift
[50/198] Compiling SwiftSyntax SourcePresence.swift
[51/198] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[52/198] Compiling SwiftSyntax Syntax.swift
BUILD FAILURE 6.1 android