Build Information
Failed to build JavaCoder, reference master (065a7d), with Swift 6.2 for Linux on 17 Jun 2025 20:01:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.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.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-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/readdle/java_swift.git
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
[93/412] Fetching swift-anycodable, java_swift
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.24s)
[55/320] Fetching java_swift
Fetched https://github.com/readdle/java_swift.git from cache (0.28s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.78s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.1.9 (0.43s)
Fetching https://github.com/readdle/CJavaVM.git
[1/57] Fetching cjavavm
Fetched https://github.com/readdle/CJavaVM.git from cache (0.22s)
Computing version for https://github.com/readdle/CJavaVM.git
Computed https://github.com/readdle/CJavaVM.git at 2.4.1 (0.68s)
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
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
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 JavaMap.swift
[6/21] Compiling java_swift JavaObject.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 JavaClass.swift
[10/22] Compiling java_swift JavaEnum.swift
[11/22] Compiling java_swift Throwable.swift
[12/22] Compiling java_swift JavaSet.swift
[13/22] Compiling java_swift Runnable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/22] Compiling java_swift Exception.swift
[15/22] Compiling java_swift HashMap.swift
[16/22] Compiling java_swift JNIMethod.swift
[17/22] Compiling java_swift JNIObject.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] Compiling AnyCodable AnyCodable.swift
[22/22] Emitting module AnyCodable
BUILD FAILURE 6.2 linux