Build Information
Failed to build Kotlin, reference master (88a9bb), with Swift 6.2 for Wasm on 23 Mar 2026 01:19:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Kotlin.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/Kotlin
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 88a9bb9 Update dependencies
Cloned https://github.com/PureSwift/Kotlin.git
Revision (git rev-parse @):
88a9bb94d156ef95d177bc6a65580dfacdda4b13
SUCCESS checkout https://github.com/PureSwift/Kotlin.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/PureSwift/Kotlin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/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.69s)
Fetching https://github.com/PureSwift/JavaLang.git
[1/3147] Fetching javalang
Fetched https://github.com/PureSwift/JavaLang.git from cache (0.46s)
Fetching https://github.com/apple/swift-log
Fetching https://github.com/swiftlang/swift-subprocess.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-collections
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-system
[1/22628] Fetching swift-collections
[454/40032] Fetching swift-collections, swift-argument-parser
[455/46284] Fetching swift-collections, swift-argument-parser, swift-log
[1983/48970] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess
[4357/54571] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess, swift-system
[21573/129412] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess, swift-system, swift-syntax
Fetched https://github.com/apple/swift-system from cache (1.45s)
[42269/123811] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess, swift-syntax
Fetching https://github.com/swiftlang/swift-java-jni-core
[56943/124291] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess, swift-syntax, swift-java-jni-core
Fetched https://github.com/swiftlang/swift-java-jni-core from cache (0.71s)
[60928/123811] Fetching swift-collections, swift-argument-parser, swift-log, swift-subprocess, swift-syntax
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (3.04s)
[85950/121125] Fetching swift-collections, swift-argument-parser, swift-log, swift-syntax
Fetched https://github.com/apple/swift-log from cache (8.25s)
Fetched https://github.com/apple/swift-argument-parser from cache (8.25s)
Fetched https://github.com/apple/swift-collections from cache (8.29s)
Fetched https://github.com/swiftlang/swift-syntax from cache (8.32s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.3.0 (8.99s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (2.50s)
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.32s)
Computing version for https://github.com/swiftlang/swift-subprocess.git
Computed https://github.com/swiftlang/swift-subprocess.git at 0.3.0 (0.49s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.70s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (0.50s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.10.1 (0.50s)
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
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-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-java.git
Working copy of https://github.com/swiftlang/swift-java.git resolved at main (724367b)
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/PureSwift/JavaLang.git
Working copy of https://github.com/PureSwift/JavaLang.git resolved at master (1b7320a)
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-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.3.0
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.58s)
/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/29] Write sources
[19/29] Compiling CSwiftJavaJNI dummy.c
[20/29] Write swift-version-24593BA9C3E375BF.txt
[22/61] Emitting module Kotlin
[23/61] Compiling Kotlin Kotlin.swift
[25/62] Compiling SwiftJavaJNICore JavaType+JNI.swift
[26/62] Compiling SwiftJavaJNICore JavaType+JavaSource.swift
[27/62] Compiling SwiftJavaJNICore JavaType+SwiftNames.swift
[28/62] Compiling SwiftJavaJNICore JavaType.swift
[29/62] Compiling SwiftJavaJNICore JavaValue.swift
[30/62] Compiling SwiftJavaJNICore Mangling.swift
[31/62] 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 | }
[32/62] 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 | }
[33/62] 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 | }
[34/62] Compiling SwiftJavaJNICore JNIError.swift
[35/62] Compiling SwiftJavaJNICore JavaAnnotation.swift
[36/62] Compiling SwiftJavaJNICore JavaDemanglingError.swift
[37/64] 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/64] 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>
error: emit-module command failed with exit code 1 (use -v to see invocation)
[39/64] Compiling SwiftJavaJNICore JavaValue+Array.swift
[40/64] Compiling SwiftJavaJNICore JavaValue+Bool.swift
[41/64] Compiling SwiftJavaJNICore JavaValue+FloatingPoint.swift
[42/64] Compiling SwiftJavaJNICore JavaValue+Integers.swift
[43/64] Compiling SwiftJavaJNICore JavaValue+String.swift
[44/64] Compiling SwiftJavaJNICore UnsafeRawBufferPointer+getJNIValue.swift
[45/64] 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>
[46/64] 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 |
[47/64] 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 |
[48/64] 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 |
[49/64] Emitting module SwiftJavaMacros
BUILD FAILURE 6.2 wasm