The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JavaCoder with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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:             5.10
Building package at path:  $workDir
https://github.com/readdle/swift-java-coder.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/readdle/swift-anycodable.git
Fetching https://github.com/readdle/java_swift.git
[1/92] Fetching swift-anycodable
[90/406] Fetching swift-anycodable, java_swift
Fetched https://github.com/readdle/swift-anycodable.git from cache (0.22s)
Fetched https://github.com/readdle/java_swift.git from cache (0.23s)
Computing version for https://github.com/readdle/swift-anycodable.git
Computed https://github.com/readdle/swift-anycodable.git at 1.0.3 (0.39s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.1.9 (0.41s)
Fetching https://github.com/readdle/CJavaVM.git
[1/57] Fetching cjavavm
Fetched https://github.com/readdle/CJavaVM.git from cache (0.20s)
Computing version for https://github.com/readdle/CJavaVM.git
Computed https://github.com/readdle/CJavaVM.git at 2.4.1 (0.37s)
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/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
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/21] 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 {
                                                                                                                         ^~~~~~~~~
[6/22] Compiling java_swift JavaClass.swift
[7/22] Compiling java_swift JavaEnum.swift
[8/22] Compiling java_swift Throwable.swift
[9/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
    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)) )
                                                                                ^~~~~~~~~
[10/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
    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)) )
                                                                                ^~~~~~~~~
[11/22] Compiling java_swift JavaMap.swift
[12/22] Compiling java_swift JavaObject.swift
[13/22] Compiling java_swift JavaSet.swift
[14/22] Compiling java_swift Runnable.swift
[15/22] Compiling java_swift Exception.swift
[16/22] Compiling java_swift HashMap.swift
[17/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
    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
            ~~~~ ^~~~~~~~
[18/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
    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
            ~~~~ ^~~~~~~~
[19/22] 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 {
           ^
[20/22] 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 {
           ^
error: fatalError
[21/22] Emitting module AnyCodable
warning: 'cjavavm': ignoring declared target(s) 'CJavaVM' in the system package
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] 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)) )
                                                                                ^~~~~~~~~
[3/10] Emitting module AnyCodable
[4/10] Compiling AnyCodable AnyCodable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Compiling java_swift JNIField.swift
[7/11] Compiling java_swift JNIMethod.swift
[8/11] 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 {
                                                                                                                         ^~~~~~~~~
[9/11] 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
            ~~~~ ^~~~~~~~
[10/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 {
           ^
[11/18] Compiling java_swift JNIType.swift
[12/20] Compiling java_swift JavaEnum.swift
[13/20] Compiling java_swift JavaObject.swift
[14/20] Compiling java_swift JavaSet.swift
[15/20] Compiling java_swift Runnable.swift
[16/20] Compiling java_swift Throwable.swift
[17/20] Compiling java_swift JavaMap.swift
[18/20] Compiling java_swift JavaClass.swift
[19/20] Compiling java_swift Exception.swift
[20/20] Compiling java_swift HashMap.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 1