The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder, reference 2.0.0 (7c66ed), with Swift 6.2 for Wasm on 9 Oct 2026 12:20:25 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java-coder.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/readdle/swift-java-coder
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at 7c66edb Merge pull request #14 from readdle/dev/migrate-to-swift-java-jni-core
Cloned https://github.com/readdle/swift-java-coder.git
Revision (git rev-parse @):
7c66edb6e2047a9db4b5a823f8a2f3587a437b85
SUCCESS checkout https://github.com/readdle/swift-java-coder.git at 2.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/readdle/swift-java-coder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/swiftlang/swift-java-jni-core.git
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
[86/709] Fetching swift-anycodable, swift-java-jni-core
Fetched https://github.com/readdle/swift-anycodable.git from cache (1.41s)
Fetched https://github.com/swiftlang/swift-java-jni-core.git from cache (1.41s)
Computing version for https://github.com/swiftlang/swift-java-jni-core.git
Computed https://github.com/swiftlang/swift-java-jni-core.git at 0.5.1 (1.56s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.91s)
Creating working copy for https://github.com/swiftlang/swift-java-jni-core.git
Working copy of https://github.com/swiftlang/swift-java-jni-core.git resolved at 0.5.1
Creating working copy for https://github.com/readdle/swift-anycodable.git
Working copy of https://github.com/readdle/swift-anycodable.git resolved at 1.0.3
Building for debugging...
[0/6] Write sources
[4/6] Compiling CSwiftJavaJNI dummy.c
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/30] Compiling SwiftJavaJNICore JavaType.swift
[8/30] Compiling SwiftJavaJNICore JavaValue.swift
[9/30] Compiling SwiftJavaJNICore Mangling.swift
[10/32] 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>
[11/32] 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)
[12/32] Compiling SwiftJavaJNICore JavaValue+Integers.swift
[13/32] Compiling SwiftJavaJNICore JavaValue+String.swift
[14/32] Compiling SwiftJavaJNICore UnsafeRawBufferPointer+getJNIValue.swift
[15/32] 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>
[16/32] Compiling SwiftJavaJNICore JNIError.swift
[17/32] Compiling SwiftJavaJNICore JavaAnnotation.swift
[18/32] Compiling SwiftJavaJNICore JavaDemanglingError.swift
[19/32] Compiling SwiftJavaJNICore JavaType+JNI.swift
[20/32] Compiling SwiftJavaJNICore JavaType+JavaSource.swift
[21/32] Compiling SwiftJavaJNICore JavaType+SwiftNames.swift
[22/32] Compiling SwiftJavaJNICore JavaValue+Array.swift
[23/32] Compiling SwiftJavaJNICore JavaValue+Bool.swift
[24/32] Compiling SwiftJavaJNICore JavaValue+FloatingPoint.swift
[25/32] 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 |   }
[26/32] 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 |   }
[27/32] 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 |   }
[28/32] Compiling SwiftJavaJNICore MethodSignature.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:442:22: error: cannot find 'dlsym' in scope
440 |
441 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
442 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
443 |     return nil
444 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:15: error: cannot find 'dlopen' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
536 |   #endif
537 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:39: error: cannot find 'RTLD_NOW' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
536 |   #endif
537 |
[29/32] Compiling SwiftJavaJNICore SwiftJavaJNICore.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:442:22: error: cannot find 'dlsym' in scope
440 |
441 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
442 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
443 |     return nil
444 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:15: error: cannot find 'dlopen' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
536 |   #endif
537 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:39: error: cannot find 'RTLD_NOW' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
536 |   #endif
537 |
[30/32] Compiling SwiftJavaJNICore JavaVirtualMachine.swift
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:442:22: error: cannot find 'dlsym' in scope
440 |
441 | private func symbol<T>(_ handle: DylibType, _ name: String) -> T? {
442 |   guard let result = dlsym(handle, name) else {
    |                      `- error: cannot find 'dlsym' in scope
443 |     return nil
444 |   }
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:15: error: cannot find 'dlopen' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |               `- error: cannot find 'dlopen' in scope
536 |   #endif
537 |
/host/spi-builder-workspace/.build/checkouts/swift-java-jni-core/Sources/SwiftJavaJNICore/VirtualMachine/JavaVirtualMachine.swift:535:39: error: cannot find 'RTLD_NOW' in scope
533 |   let dylib = LoadLibraryA(libjvmPath.path)
534 |   #else
535 |   let dylib = dlopen(libjvmPath.path, RTLD_NOW)
    |                                       `- error: cannot find 'RTLD_NOW' in scope
536 |   #endif
537 |
[31/32] Emitting module AnyCodable
BUILD FAILURE 6.2 wasm