The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Kotlin, reference v0.3.0 (ad30da), with Swift 6.2 for Wasm on 28 Jun 2026 15:12:39 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-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: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stackotter/SwiftKotlin.git
Reference: v0.3.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/stackotter/SwiftKotlin
 * tag               v0.3.0     -> FETCH_HEAD
HEAD is now at ad30daa Switch to stackotter/swift-java (to workaround known issues)
Cloned https://github.com/stackotter/SwiftKotlin.git
Revision (git rev-parse @):
ad30daacb7e4666e1a56bfdd48498f5ac4ff081d
SUCCESS checkout https://github.com/stackotter/SwiftKotlin.git at v0.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/stackotter/SwiftKotlin.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/stackotter/swift-java.git
Fetching https://github.com/stackotter/SwiftJavaLang.git
[1/12827] Fetching swift-java
[2054/15983] Fetching swift-java, swiftjavalang
Fetched https://github.com/stackotter/SwiftJavaLang.git from cache (0.53s)
Fetched https://github.com/stackotter/swift-java.git from cache (0.53s)
Computing version for https://github.com/stackotter/SwiftJavaLang.git
Computed https://github.com/stackotter/SwiftJavaLang.git at 0.3.0 (0.69s)
Computing version for https://github.com/stackotter/swift-java.git
Computed https://github.com/stackotter/swift-java.git at 0.5.1 (0.18s)
Fetching https://github.com/swiftlang/swift-subprocess.git
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swiftlang/swift-java-jni-core
Fetching https://github.com/apple/swift-log
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/apple/swift-collections
[1/603] Fetching swift-java-jni-core
[604/8201] Fetching swift-java-jni-core, swift-log
[8202/14142] Fetching swift-java-jni-core, swift-log, swift-system
[9510/39381] Fetching swift-java-jni-core, swift-log, swift-system, swift-collections
[19444/43404] Fetching swift-java-jni-core, swift-log, swift-system, swift-collections, swift-subprocess
[30213/119154] Fetching swift-java-jni-core, swift-log, swift-system, swift-collections, swift-subprocess, swift-syntax
Fetched https://github.com/apple/swift-collections from cache (1.15s)
Fetching https://github.com/apple/swift-argument-parser
[50738/93915] Fetching swift-java-jni-core, swift-log, swift-system, swift-subprocess, swift-syntax
[93916/111864] Fetching swift-java-jni-core, swift-log, swift-system, swift-subprocess, swift-syntax, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.69s)
Fetched https://github.com/swiftlang/swift-java-jni-core from cache (2.57s)
Fetched https://github.com/apple/swift-system from cache (2.57s)
Fetched https://github.com/apple/swift-log from cache (2.57s)
Fetched https://github.com/swiftlang/swift-subprocess.git from cache (2.57s)
Fetched https://github.com/swiftlang/swift-syntax from cache (2.59s)
Computing version for https://github.com/swiftlang/swift-java-jni-core
Computed https://github.com/swiftlang/swift-java-jni-core at 0.5.1 (2.73s)
Computing version for https://github.com/swiftlang/swift-subprocess.git
Computed https://github.com/swiftlang/swift-subprocess.git at 0.5.0 (0.16s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 603.0.2 (0.94s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.6.0 (0.22s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.7.2 (0.17s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.14.0 (0.14s)
Creating working copy for https://github.com/stackotter/swift-java.git
Working copy of https://github.com/stackotter/swift-java.git resolved at 0.5.1
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.14.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.7.2
Creating working copy for https://github.com/swiftlang/swift-subprocess.git
Working copy of https://github.com/swiftlang/swift-subprocess.git resolved at 0.5.0
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.6.0
Creating working copy for https://github.com/stackotter/SwiftJavaLang.git
Working copy of https://github.com/stackotter/SwiftJavaLang.git resolved at 0.3.0
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.5.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 603.0.2
[1/1] Compiling plugin JExtractSwiftPlugin
[2/2] Compiling plugin SwiftJavaPlugin
[3/3] Compiling plugin JavaCompilerPlugin
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/66] Write sources
[37/66] Compiling CSwiftJavaJNI dummy.c
[38/66] Compiling _SwiftSyntaxCShims PlatformMutex.c
[39/66] Write swift-version-24593BA9C3E375BF.txt
[41/102] Emitting module Kotlin
[42/102] Emitting module SwiftSyntax602
[43/102] Emitting module SwiftSyntax603
error: emit-module command failed with exit code 1 (use -v to see invocation)
[44/102] 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>
[45/104] Compiling SwiftSyntax602 Empty.swift
[46/105] Compiling SwiftSyntax603 Empty.swift
[47/106] Compiling Kotlin Kotlin.swift
[49/107] Emitting module SwiftSyntax509
[50/107] Compiling SwiftSyntax509 Empty.swift
[53/108] Compiling SwiftJavaJNICore JavaType.swift
[54/108] Compiling SwiftJavaJNICore JavaValue.swift
[55/108] Compiling SwiftJavaJNICore Mangling.swift
[56/108] Wrapping AST for SwiftSyntax603 for debugging
[57/108] Wrapping AST for SwiftSyntax602 for debugging
[59/108] Compiling SwiftJavaJNICore JNIError.swift
[60/108] Compiling SwiftJavaJNICore JavaAnnotation.swift
[61/108] Compiling SwiftJavaJNICore JavaDemanglingError.swift
[61/108] Wrapping AST for SwiftSyntax509 for debugging
[63/108] Compiling SwiftSyntax600 Empty.swift
[64/108] Emitting module SwiftSyntax600
[65/109] Wrapping AST for SwiftSyntax600 for debugging
[67/109] Emitting module SwiftSyntax601
[68/109] Compiling SwiftSyntax601 Empty.swift
[70/110] Emitting module SwiftSyntax510
[71/110] Compiling SwiftSyntax510 Empty.swift
[71/111] Wrapping AST for SwiftSyntax601 for debugging
[74/111] 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>
[75/111] 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>
[75/111] Wrapping AST for SwiftSyntax510 for debugging
[77/174] Compiling SwiftSyntax AbsolutePosition.swift
[78/174] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[79/174] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[80/174] Compiling SwiftSyntax Assert.swift
[81/174] Compiling SwiftSyntax BumpPtrAllocator.swift
[82/174] Compiling SwiftSyntax CommonAncestor.swift
[83/174] Compiling SwiftSyntax Keyword.swift
[84/174] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[85/174] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[86/174] Compiling SwiftSyntax RawSyntaxNodesOP.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 |   }
[87/174] Compiling SwiftSyntax RawSyntaxNodesQRS.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 |   }
[88/174] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.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 |   }
[89/174] Compiling SwiftSyntax RawSyntaxNodesEF.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 |
[90/174] Compiling SwiftSyntax RawSyntaxNodesGHI.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 |
[91/174] Compiling SwiftSyntax RawSyntaxNodesJKLMN.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 |
BUILD FAILURE 6.2 wasm