Build Information
Failed to build Java, reference master (e94491), with Swift 6.1 for Wasm on 27 May 2025 09:23:31 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/readdle/swift-java.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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at e944916 Dev: support Swift 5.7
Cloned https://github.com/readdle/swift-java.git
Revision (git rev-parse @):
e9449162891ce8e9687e9ff87d44c0752556df49
SUCCESS checkout https://github.com/readdle/swift-java.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/readdle/swift-java.git
https://github.com/readdle/swift-java.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-java-coder",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "1.2.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/readdle/swift-java-coder.git"
},
{
"identity" : "java_swift",
"requirement" : {
"range" : [
{
"lower_bound" : "2.2.0",
"upper_bound" : "2.3.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/readdle/java_swift.git"
}
],
"manifest_display_name" : "Java",
"name" : "Java",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "Java",
"targets" : [
"Java"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"5",
"4"
],
"targets" : [
{
"c99name" : "Java",
"module_type" : "SwiftTarget",
"name" : "Java",
"path" : "Sources",
"product_dependencies" : [
"JavaCoder",
"java_swift"
],
"product_memberships" : [
"Java"
],
"sources" : [
"JavaBridgeable.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/readdle/swift-java-coder.git
Fetching https://github.com/readdle/java_swift.git
[1/320] Fetching java_swift
[321/673] Fetching java_swift, swift-java-coder
Fetched https://github.com/readdle/java_swift.git from cache (0.25s)
Fetched https://github.com/readdle/swift-java-coder.git from cache (0.25s)
Computing version for https://github.com/readdle/swift-java-coder.git
Computed https://github.com/readdle/swift-java-coder.git at 1.1.2 (0.82s)
Fetching https://github.com/readdle/swift-anycodable.git
[1/92] Fetching swift-anycodable
Fetched https://github.com/readdle/swift-anycodable.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.81s)
Computing version for https://github.com/readdle/java_swift.git
Computed https://github.com/readdle/java_swift.git at 2.2.3 (0.55s)
Fetching https://github.com/readdle/swift-android-ndk.git
[1/80] Fetching swift-android-ndk
Fetched https://github.com/readdle/swift-android-ndk.git from cache (0.27s)
Computing version for https://github.com/readdle/swift-android-ndk.git
Computed https://github.com/readdle/swift-android-ndk.git at 1.1.4 (3.29s)
Creating working copy for https://github.com/readdle/swift-android-ndk.git
Working copy of https://github.com/readdle/swift-android-ndk.git resolved at 1.1.4
Creating working copy for https://github.com/readdle/java_swift.git
Working copy of https://github.com/readdle/java_swift.git resolved at 2.2.3
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/swift-java-coder.git
Working copy of https://github.com/readdle/swift-java-coder.git resolved at 1.1.2
Building for debugging...
[0/7] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/MainRunLoop.c:1:
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidNDK.h:4:10: fatal error: 'jni.h' file not found
4 | #include <jni.h>
| ^~~~~~~
1 error generated.
[5/7] Compiling CAndroidNDK MainRunLoop.c
[5/7] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/2] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/MainRunLoop.c:1:
/host/spi-builder-workspace/.build/checkouts/swift-android-ndk/Sources/CAndroidNDK/include/AndroidNDK.h:4:10: fatal error: 'jni.h' file not found
4 | #include <jni.h>
| ^~~~~~~
1 error generated.
[1/2] Compiling CAndroidNDK MainRunLoop.c
BUILD FAILURE 6.1 wasm