The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaLang, reference master (1b7320), with Swift 6.2 for Wasm on 23 Mar 2026 23:34:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/JavaLang.git
Reference: master
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/PureSwift/JavaLang
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 1b7320a Update `JavaConsumer`
Cloned https://github.com/PureSwift/JavaLang.git
Revision (git rev-parse @):
1b7320afd8d40a669422ee61d5335ae6d647dce5
SUCCESS checkout https://github.com/PureSwift/JavaLang.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/PureSwift/JavaLang.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:33aba1b4ee401c56e0fd7ee42e05ab1ffc0b6f44277ad19cffda5d456eb09500
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/swiftlang/swift-java.git
[1/22738] Fetching swift-java
Fetched https://github.com/swiftlang/swift-java.git from cache (1.61s)
Fetching https://github.com/apple/swift-log
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swiftlang/swift-java-jni-core
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/swiftlang/swift-subprocess.git
[1/502] Fetching swift-java-jni-core
[503/6103] Fetching swift-java-jni-core, swift-system
[1344/8789] Fetching swift-java-jni-core, swift-system, swift-subprocess
[3519/15050] Fetching swift-java-jni-core, swift-system, swift-subprocess, swift-log
[3931/37678] Fetching swift-java-jni-core, swift-system, swift-subprocess, swift-log, swift-collections
[5423/55092] Fetching swift-java-jni-core, swift-system, swift-subprocess, swift-log, swift-collections, swift-argument-parser
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (0.92s)
[18529/52406] Fetching swift-java-jni-core, swift-system, swift-log, swift-collections, swift-argument-parser
Fetching https://github.com/swiftlang/swift-syntax
Fetched https://github.com/swiftlang/swift-java-jni-core from cache (2.38s)
[46926/51904] Fetching swift-system, swift-log, swift-collections, swift-argument-parser
Fetched https://github.com/apple/swift-system from cache (2.39s)
Fetched https://github.com/apple/swift-argument-parser from cache (2.40s)
[24138/28889] Fetching swift-log, swift-collections
[25949/103725] Fetching swift-log, swift-collections, swift-syntax
Fetched https://github.com/apple/swift-log from cache (3.56s)
[37500/97464] Fetching swift-collections, swift-syntax
Fetched https://github.com/apple/swift-collections from cache (3.63s)
[17213/74836] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (9.76s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.3.0 (11.93s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (4.19s)
Computing version for https://github.com/swiftlang/swift-java-jni-core
Computed https://github.com/swiftlang/swift-java-jni-core at 0.3.0 (0.60s)
Computing version for https://github.com/swiftlang/swift-subprocess.git
Computed https://github.com/swiftlang/swift-subprocess.git at 0.3.0 (0.86s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.87s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.74s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.10.1 (0.82s)
Creating working copy for https://github.com/swiftlang/swift-java.git
Working copy of https://github.com/swiftlang/swift-java.git resolved at main (724367b)
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.3.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
Creating working copy for https://github.com/swiftlang/swift-subprocess.git
Working copy of https://github.com/swiftlang/swift-subprocess.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.10.1
Creating working copy for https://github.com/swiftlang/swift-java-jni-core
Working copy of https://github.com/swiftlang/swift-java-jni-core resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/602.0.0/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.71s)
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:38:11: warning: expression of type '(any SourceModuleTarget)?' is unused [#no-usage]
 36 |       switch dependency {
 37 |       case .target(let t):
 38 |         t.sourceModule
    |           `- warning: expression of type '(any SourceModuleTarget)?' is unused [#no-usage]
 39 |       case .product(let p):
 40 |         p.sourceModules
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:40:11: warning: expression of type '[any SourceModuleTarget]' is unused [#no-usage]
 38 |         t.sourceModule
 39 |       case .product(let p):
 40 |         p.sourceModules
    |           `- warning: expression of type '[any SourceModuleTarget]' is unused [#no-usage]
 41 |       @unknown default:
 42 |         fatalError("Unknown target dependency type: \(dependency)")
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:46:28: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 44 |     }
 45 |
 46 |     let sourceDir = target.directory.string
    |                            |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                            `- note: use 'directoryURL' instead
 47 |
 48 |     // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:46:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 44 |     }
 45 |
 46 |     let sourceDir = target.directory.string
    |                                      `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 47 |
 48 |     // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:120:9: warning: variable 'jextractOutputFiles' was never mutated; consider changing to 'let' constant
118 |     )
119 |
120 |     var jextractOutputFiles = outputSwiftFiles
    |         `- warning: variable 'jextractOutputFiles' was never mutated; consider changing to 'let' constant
121 |
122 |     // If the developer has enabled java callbacks in the configuration (default is false)
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:258:48: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
256 |     func _searchForConfigFiles(in target: any Target) {
257 |       // log("Search for config files in target: \(target.name)")
258 |       let dependencyURL = URL(filePath: target.directory.string)
    |                                                |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                                                `- note: use 'directoryURL' instead
259 |
260 |       // Look for a config file within this target.
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:258:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
256 |     func _searchForConfigFiles(in target: any Target) {
257 |       // log("Search for config files in target: \(target.name)")
258 |       let dependencyURL = URL(filePath: target.directory.string)
    |                                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
259 |
260 |       // Look for a config file within this target.
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift:304:24: warning: immutable value 'target' was never used; consider replacing with '_' or removing it [#no-usage]
302 |     for dependency in target.dependencies {
303 |       switch dependency {
304 |       case .target(let target):
    |                        `- warning: immutable value 'target' was never used; consider replacing with '_' or removing it [#no-usage]
305 |         continue
306 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/_PluginsShared/PluginUtils.swift:49:48: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                                                `- note: use 'directoryURL' instead
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/_PluginsShared/PluginUtils.swift:49:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JExtractSwiftPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:357:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
355 |     if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
356 |       print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
357 |       if let contents = try? String(contentsOf: fileURL) {
    |                              `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
358 |         let entries = contents.split(separator: ":").map(String.init)
359 |         for entry in entries {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[1/1] Compiling plugin JExtractSwiftPlugin
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:35:28: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 33 |     // Note: Target doesn't have a directoryURL counterpart to directory,
 34 |     // so we cannot eliminate this deprecation warning.
 35 |     let sourceDir = target.directory.string
    |                            |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                            `- note: use 'directoryURL' instead
 36 |
 37 |     // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:35:38: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 33 |     // Note: Target doesn't have a directoryURL counterpart to directory,
 34 |     // so we cannot eliminate this deprecation warning.
 35 |     let sourceDir = target.directory.string
    |                                      `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 36 |
 37 |     // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:52:48: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 50 |     func searchForConfigFiles(in target: any Target) {
 51 |       // log("Search for config files in target: \(target.name)")
 52 |       let dependencyURL = URL(filePath: target.directory.string)
    |                                                |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                                                `- note: use 'directoryURL' instead
 53 |
 54 |       // Look for a config file within this target.
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:52:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 50 |     func searchForConfigFiles(in target: any Target) {
 51 |       // log("Search for config files in target: \(target.name)")
 52 |       let dependencyURL = URL(filePath: target.directory.string)
    |                                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 53 |
 54 |       // Look for a config file within this target.
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/SwiftJavaPlugin.swift:45:9: warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 43 |     log("Config on path: \(configFile.path(percentEncoded: false))")
 44 |     log("Config was: \(config)")
 45 |     var javaDependencies = config.dependencies ?? []
    |         `- warning: initialization of variable 'javaDependencies' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
 46 |
 47 |     /// Find the manifest files from other swift-java executions in any targets
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/_PluginsShared/PluginUtils.swift:49:48: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                                                `- note: use 'directoryURL' instead
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/_PluginsShared/PluginUtils.swift:49:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/SwiftJavaPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:357:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
355 |     if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
356 |       print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
357 |       if let contents = try? String(contentsOf: fileURL) {
    |                              `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
358 |         let entries = contents.split(separator: ":").map(String.init)
359 |         for entry in entries {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[2/2] Compiling plugin SwiftJavaPlugin
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JavaCompilerPlugin/JavaCompilerPlugin.swift:33:42: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
31 |     // Note: Target doesn't have a directoryURL counterpart to directory,
32 |     // so we cannot eliminate this deprecation warning.
33 |     let sourceDir = URL(filePath: target.directory.string)
   |                                          |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
   |                                          `- note: use 'directoryURL' instead
34 |
35 |     // The name of the configuration file SwiftJava.config from the target for
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JavaCompilerPlugin/JavaCompilerPlugin.swift:33:52: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
31 |     // Note: Target doesn't have a directoryURL counterpart to directory,
32 |     // so we cannot eliminate this deprecation warning.
33 |     let sourceDir = URL(filePath: target.directory.string)
   |                                                    `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
34 |
35 |     // The name of the configuration file SwiftJava.config from the target for
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JavaCompilerPlugin/_PluginsShared/PluginUtils.swift:49:48: warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                |- warning: 'directory' is deprecated: renamed to 'directoryURL' [#DeprecatedDeclaration]
    |                                                `- note: use 'directoryURL' instead
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JavaCompilerPlugin/_PluginsShared/PluginUtils.swift:49:58: warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 47 |
 48 | func getSwiftJavaConfigPath(target: Target) -> String? {
 49 |   let configPath = URL(fileURLWithPath: target.directory.string).appending(component: "swift-java.config").path()
    |                                                          `- warning: 'string' is deprecated: Use `URL` type instead of `Path`. [#DeprecatedDeclaration]
 50 |
 51 |   if FileManager.default.fileExists(atPath: configPath) {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
/host/spi-builder-workspace/.build/checkouts/swift-java/Plugins/JavaCompilerPlugin/_PluginsShared/SwiftJavaConfigurationShared/Configuration.swift:357:30: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
355 |     if fileURL.lastPathComponent.hasSuffix(".swift-java.classpath") {
356 |       print("[debug][swift-java] Constructing classpath with entries from: \(fileURL.path)")
357 |       if let contents = try? String(contentsOf: fileURL) {
    |                              `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
358 |         let entries = contents.split(separator: ":").map(String.init)
359 |         for entry in entries {
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[3/3] Compiling plugin JavaCompilerPlugin
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/32] Write sources
[22/32] Compiling CSwiftJavaJNI dummy.c
[23/32] Write swift-version-24593BA9C3E375BF.txt
[25/62] Emitting module SwiftJavaMacros
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/63] Emitting module SwiftJavaJNICore
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/JavaEnvironment+Refs.swift:45:21: error: cannot find 'getenv' in scope
 43 | /// `SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM` to `true` or `1` to enable.
 44 | private let describeOOMException: Bool = {
 45 |   guard let value = getenv("SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM") else {
    |                     `- error: cannot find 'getenv' in scope
 46 |     return false
 47 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/ThreadLocalStorage.swift:28:13: error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
26 |
27 | #if !(canImport(Darwin) || canImport(Bionic) || canImport(Glibc) || canImport(Musl) || canImport(WinSDK))
28 | private var _globalTlsValue: UnsafeMutableRawPointer?
   |             |- error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
   |             |- note: convert '_globalTlsValue' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var '_globalTlsValue' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | #endif
30 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[27/65] Compiling SwiftJavaJNICore JavaType+JNI.swift
[28/65] Compiling SwiftJavaJNICore JavaType+JavaSource.swift
[29/65] Compiling SwiftJavaJNICore JavaType+SwiftNames.swift
[30/65] Compiling SwiftJavaJNICore JNIError.swift
[31/65] Compiling SwiftJavaJNICore JavaAnnotation.swift
[32/65] Compiling SwiftJavaJNICore JavaDemanglingError.swift
[33/65] Compiling SwiftJavaJNICore JavaEnvironment+Refs.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/JavaEnvironment+Refs.swift:45:21: error: cannot find 'getenv' in scope
 43 | /// `SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM` to `true` or `1` to enable.
 44 | private let describeOOMException: Bool = {
 45 |   guard let value = getenv("SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM") else {
    |                     `- error: cannot find 'getenv' in scope
 46 |     return false
 47 |   }
[34/65] Compiling SwiftJavaJNICore JavaEnvironment.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/JavaEnvironment+Refs.swift:45:21: error: cannot find 'getenv' in scope
 43 | /// `SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM` to `true` or `1` to enable.
 44 | private let describeOOMException: Bool = {
 45 |   guard let value = getenv("SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM") else {
    |                     `- error: cannot find 'getenv' in scope
 46 |     return false
 47 |   }
[35/65] Compiling SwiftJavaJNICore JavaExceptionType.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/JavaEnvironment+Refs.swift:45:21: error: cannot find 'getenv' in scope
 43 | /// `SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM` to `true` or `1` to enable.
 44 | private let describeOOMException: Bool = {
 45 |   guard let value = getenv("SWIFT_JAVA_JNI_EXCEPTION_DESCRIBE_OOM") else {
    |                     `- error: cannot find 'getenv' in scope
 46 |     return false
 47 |   }
[36/65] Compiling SwiftJavaMacros SwiftJNIMacrosPlugin.swift
[37/65] Compiling SwiftJavaJNICore LockedState.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/ThreadLocalStorage.swift:28:13: error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
26 |
27 | #if !(canImport(Darwin) || canImport(Bionic) || canImport(Glibc) || canImport(Musl) || canImport(WinSDK))
28 | private var _globalTlsValue: UnsafeMutableRawPointer?
   |             |- error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
   |             |- note: convert '_globalTlsValue' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var '_globalTlsValue' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | #endif
30 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[38/65] Compiling SwiftJavaJNICore ThreadLocalStorage.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/ThreadLocalStorage.swift:28:13: error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
26 |
27 | #if !(canImport(Darwin) || canImport(Bionic) || canImport(Glibc) || canImport(Musl) || canImport(WinSDK))
28 | private var _globalTlsValue: UnsafeMutableRawPointer?
   |             |- error: var '_globalTlsValue' is not concurrency-safe because it is nonisolated global shared mutable state [#MutableGlobalVariable]
   |             |- note: convert '_globalTlsValue' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var '_globalTlsValue' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | #endif
30 |
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
[39/65] Compiling SwiftJavaMacros SwiftSyntaxUtils.swift
[40/65] Compiling SwiftJavaMacros MacroErrors.swift
[41/65] Compiling SwiftJavaMacros JavaFieldMacro.swift
[42/65] Compiling SwiftJavaMacros JavaMethodMacro.swift
[43/65] Compiling SwiftJavaJNICore JavaValue+Array.swift
[44/65] Compiling SwiftJavaJNICore JavaValue+Bool.swift
[45/65] Compiling SwiftJavaJNICore JavaValue+FloatingPoint.swift
[46/65] Compiling SwiftJavaJNICore JavaValue+Integers.swift
[47/65] Compiling SwiftJavaJNICore JavaValue+String.swift
[48/65] Compiling SwiftJavaJNICore UnsafeRawBufferPointer+getJNIValue.swift
[49/65] Compiling SwiftJavaJNICore JavaType.swift
[50/65] Compiling SwiftJavaJNICore JavaValue.swift
[51/65] Compiling SwiftJavaJNICore Mangling.swift
[52/65] Compiling SwiftJavaJNICore MethodSignature.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:418:22: error: cannot find 'dlsym' in scope
416 |
417 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
418 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
419 |     return nil
420 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:15: error: cannot find 'dlopen' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
512 |   #endif
513 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:39: error: cannot find 'RTLD_NOW' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
512 |   #endif
513 |
[53/65] Compiling SwiftJavaJNICore SwiftJavaJNICore.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:418:22: error: cannot find 'dlsym' in scope
416 |
417 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
418 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
419 |     return nil
420 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:15: error: cannot find 'dlopen' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
512 |   #endif
513 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:39: error: cannot find 'RTLD_NOW' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
512 |   #endif
513 |
[54/65] Compiling SwiftJavaJNICore JavaVirtualMachine.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:418:22: error: cannot find 'dlsym' in scope
416 |
417 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
418 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
419 |     return nil
420 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:15: error: cannot find 'dlopen' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
512 |   #endif
513 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:511:39: error: cannot find 'RTLD_NOW' in scope
509 |   let dylib = LoadLibraryA(libjvmPath.path)
510 |   #else
511 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
512 |   #endif
513 |
[55/65] Compiling SwiftJavaMacros ImplementsJavaMacro.swift
[56/65] Compiling SwiftJavaMacros GenerationMode.swift
BUILD FAILURE 6.2 wasm