The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java-coder.git
Reference: master
Cloned https://github.com/readdle/swift-java-coder.git into spi-builder-workspace
SUCCESS checkout https://github.com/readdle/swift-java-coder.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/293] Fetching java_swift
Fetched https://github.com/readdle/swift-anycodable.git (0.24s)
Fetched https://github.com/readdle/java_swift.git (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.25s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.1.9 (0.32s)
Fetching https://github.com/readdle/CJavaVM.git
Fetched https://github.com/readdle/CJavaVM.git (0.50s)
Computing version for https://github.com/readdle/CJavaVM.git
Computed https://github.com/readdle/CJavaVM.git at 2.4.1 (0.54s)
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/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/CJavaVM.git
Working copy of https://github.com/readdle/CJavaVM.git resolved at 2.4.1
warning: 'cjavavm': ignoring declared target(s) 'CJavaVM' in the system package
Building for debugging...
[1/17] Compiling java_swift JavaClass.swift
[2/17] Compiling java_swift JavaEnum.swift
[3/18] Compiling java_swift Throwable.swift
[4/18] Compiling java_swift JavaMap.swift
[5/18] Compiling java_swift JavaObject.swift
[6/18] Compiling java_swift JavaSet.swift
[7/18] Compiling java_swift Runnable.swift
[8/18] 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
    static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
                                                                                                                         ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:23:28: error: cannot find 'uintptr_t' in scope
        let swiftPointer = uintptr_t(swiftObject)
                           ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:74:81: error: cannot find 'uintptr_t' in scope
        return jvalue( j: jlong(unsafeBitCast(Unmanaged.passRetained(self), to: uintptr_t.self)) )
                                                                                ^~~~~~~~~
[9/18] 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
    static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
                                                                                                                         ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:23:28: error: cannot find 'uintptr_t' in scope
        let swiftPointer = uintptr_t(swiftObject)
                           ^~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:74:81: error: cannot find 'uintptr_t' in scope
        return jvalue( j: jlong(unsafeBitCast(Unmanaged.passRetained(self), to: uintptr_t.self)) )
                                                                                ^~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/18] Compiling java_swift Exception.swift
[11/18] Compiling java_swift HashMap.swift
[12/18] Emitting module java_swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIObject.swift:50:12: error: 'Sendable' class 'UnavailableObject' cannot inherit from another class
open class UnavailableObject: JavaObject, Error {
           ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/Throwable.swift:6:12: error: 'Sendable' class 'Throwable' cannot inherit from another class
open class Throwable: JavaObject, /* interface java.io.Serializable */ UnavailableProtocol {
           ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIProxy.swift:19:122: error: cannot find type 'uintptr_t' in scope
    static fileprivate func recoverPointer( _ swiftObject: jlong, _ file: StaticString = #file, _ line: Int = #line ) -> uintptr_t {
                                                                                                                         ^~~~~~~~~
[13/18] Compiling java_swift JNIMethod.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIObject.swift:50:12: error: 'Sendable' class 'UnavailableObject' cannot inherit from another class
open class UnavailableObject: JavaObject, Error {
           ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/Throwable.swift:6:12: error: 'Sendable' class 'Throwable' cannot inherit from another class
open class Throwable: JavaObject, /* interface java.io.Serializable */ UnavailableProtocol {
           ^
[14/18] Compiling java_swift JNIObject.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNIObject.swift:50:12: error: 'Sendable' class 'UnavailableObject' cannot inherit from another class
open class UnavailableObject: JavaObject, Error {
           ^
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/Throwable.swift:6:12: error: 'Sendable' class 'Throwable' cannot inherit from another class
open class Throwable: JavaObject, /* interface java.io.Serializable */ UnavailableProtocol {
           ^
[15/18] Compiling java_swift JNICore.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:84:40: error: cannot find 'gettid' in scope
    open var threadKey: pid_t { return gettid() }
                                       ^~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:171:18: error: value of type 'JNICore' has no member 'envCache'
            self.envCache[threadKey] = tenv
            ~~~~ ^~~~~~~~
[16/18] Compiling java_swift JNIField.swift
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:84:40: error: cannot find 'gettid' in scope
    open var threadKey: pid_t { return gettid() }
                                       ^~~~~~
/host/spi-builder-workspace/.build/checkouts/java_swift/Sources/JNICore.swift:171:18: error: value of type 'JNICore' has no member 'envCache'
            self.envCache[threadKey] = tenv
            ~~~~ ^~~~~~~~
[17/18] Emitting module AnyCodable
[18/18] Compiling AnyCodable AnyCodable.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1