The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder, reference master (065a7d), with Swift 6.3 for Linux on 10 Apr 2026 16:43:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java-coder.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/readdle/swift-java-coder
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 065a7d0 Dev: fix warnings after migration to Swift 5
Cloned https://github.com/readdle/swift-java-coder.git
Revision (git rev-parse @):
065a7d03a5a77637ea5fc64ead050bbb93a9f8c3
SUCCESS checkout https://github.com/readdle/swift-java-coder.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/readdle/swift-java-coder.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/320] Fetching java_swift
Fetched https://github.com/readdle/java_swift.git from cache (0.27s)
[1/92] Fetching swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.51s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (1.04s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.1.9 (0.59s)
Fetching https://github.com/readdle/CJavaVM.git
[1/57] Fetching cjavavm
Fetched https://github.com/readdle/CJavaVM.git from cache (0.27s)
Computing version for https://github.com/readdle/CJavaVM.git
Computed https://github.com/readdle/CJavaVM.git at 2.4.1 (0.86s)
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
Creating working copy for https://github.com/readdle/CJavaVM.git
Working copy of https://github.com/readdle/CJavaVM.git resolved at 2.4.1
Creating working copy for https://github.com/readdle/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.1.9
warning: 'cjavavm': ignoring declared target(s) 'CJavaVM' in the system package
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/21] Compiling java_swift JavaClass.swift
[6/21] Compiling java_swift JavaEnum.swift
[7/22] Compiling java_swift JNIProxy.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:19:122: error: cannot find type 'uintptr_t' in scope
 17 | open class JNIReleasableProxy {
 18 |
 19 |     static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
    |                                                                                                                          `- error: cannot find type 'uintptr_t' in scope
 20 | #if os(Android)
 21 |         let swiftPointer = uintptr_t(swiftObject&0xffffffff)
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:23:28: error: cannot find 'uintptr_t' in scope
 21 |         let swiftPointer = uintptr_t(swiftObject&0xffffffff)
 22 | #else
 23 |         let swiftPointer = uintptr_t(swiftObject)
    |                            `- error: cannot find 'uintptr_t' in scope
 24 | #endif
 25 |         if swiftPointer == 0 {
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:74:81: error: cannot find 'uintptr_t' in scope
 72 |
 73 |     open func swiftValue() -> jvalue {
 74 |         return jvalue( j: jlong(unsafeBitCast(Unmanaged.passRetained(self), to: uintptr_t.self)) )
    |                                                                                 `- error: cannot find 'uintptr_t' in scope
 75 |     }
 76 |
[8/22] Compiling java_swift JNIType.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:19:122: error: cannot find type 'uintptr_t' in scope
 17 | open class JNIReleasableProxy {
 18 |
 19 |     static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
    |                                                                                                                          `- error: cannot find type 'uintptr_t' in scope
 20 | #if os(Android)
 21 |         let swiftPointer = uintptr_t(swiftObject&0xffffffff)
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:23:28: error: cannot find 'uintptr_t' in scope
 21 |         let swiftPointer = uintptr_t(swiftObject&0xffffffff)
 22 | #else
 23 |         let swiftPointer = uintptr_t(swiftObject)
    |                            `- error: cannot find 'uintptr_t' in scope
 24 | #endif
 25 |         if swiftPointer == 0 {
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:74:81: error: cannot find 'uintptr_t' in scope
 72 |
 73 |     open func swiftValue() -> jvalue {
 74 |         return jvalue( j: jlong(unsafeBitCast(Unmanaged.passRetained(self), to: uintptr_t.self)) )
    |                                                                                 `- error: cannot find 'uintptr_t' in scope
 75 |     }
 76 |
[9/22] Compiling java_swift Throwable.swift
[10/22] Compiling java_swift JavaMap.swift
[11/22] Compiling java_swift JavaObject.swift
[12/22] Compiling java_swift JavaSet.swift
[13/22] Compiling java_swift Runnable.swift
[14/22] Compiling java_swift JNIMethod.swift
[15/22] Compiling java_swift JNIObject.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/22] Compiling java_swift Exception.swift
[17/22] Compiling java_swift HashMap.swift
[18/22] Emitting module java_swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:19:122: error: cannot find type 'uintptr_t' in scope
 17 | open class JNIReleasableProxy {
 18 |
 19 |     static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
    |                                                                                                                          `- error: cannot find type 'uintptr_t' in scope
 20 | #if os(Android)
 21 |         let swiftPointer = uintptr_t(swiftObject&0xffffffff)
[19/22] Compiling java_swift JNICore.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:84:40: error: cannot find 'gettid' in scope
 82 |     open var classLoader: jclass!
 83 |
 84 |     open var threadKey: pid_t { return gettid() }
    |                                        `- error: cannot find 'gettid' in scope
 85 |
 86 |     open var errorLogger: (_ message: String) -> Void = { message in
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:171:18: error: value of type 'JNICore' has no member 'envCache'
169 |             }
170 |
171 |             self.envCache[threadKey] = tenv
    |                  `- error: value of type 'JNICore' has no member 'envCache'
172 |             self.api = self.env!.pointee!.pointee
173 |             return true
[20/22] Compiling java_swift JNIField.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:84:40: error: cannot find 'gettid' in scope
 82 |     open var classLoader: jclass!
 83 |
 84 |     open var threadKey: pid_t { return gettid() }
    |                                        `- error: cannot find 'gettid' in scope
 85 |
 86 |     open var errorLogger: (_ message: String) -> Void = { message in
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:171:18: error: value of type 'JNICore' has no member 'envCache'
169 |             }
170 |
171 |             self.envCache[threadKey] = tenv
    |                  `- error: value of type 'JNICore' has no member 'envCache'
172 |             self.api = self.env!.pointee!.pointee
173 |             return true
[21/22] Emitting module AnyCodable
BUILD FAILURE 6.3 linux