The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftAndroid, reference 0.3.1 (65f935), with Swift 6.2 (beta) for Android on 9 Jul 2025 13:37:28 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pureswift/android.git
Reference: 0.3.1
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/pureswift/android
 * tag               0.3.1      -> FETCH_HEAD
HEAD is now at 65f9359 Update minimum macOS version
Cloned https://github.com/pureswift/android.git
Revision (git rev-parse @):
65f93595fd15b3421490b666e6f5c268f63c278b
SUCCESS checkout https://github.com/pureswift/android.git at 0.3.1
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/pureswift/android.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/PureSwift/swift-java.git
[1/5322] Fetching swift-java
Fetched https://github.com/PureSwift/swift-java.git from cache (0.45s)
error: Invalid manifest (compiled with: ["/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.FKCIgU/vfs.yaml", "-L", "/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/pm/ManifestAPI", "-swift-version", "6", "-I", "/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/pm/ManifestAPI", "-package-description-version", "6.1.0", "/Package.swift", "-o", "/tmp/TemporaryDirectory.IipKoV/swift-java-manifest"])
main/Package.swift:33: Fatal error: Please set the JAVA_HOME environment variable to point to where Java is installed.
*** Signal 4: Backtracing from 0x7f33aa967728... done ***
*** Program crashed: Illegal instruction at 0x00007f33aa967728 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
  0      0x00007f33aa967728 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x0000556389127d5e findJavaHome() + 2317 in swift-java-manifest
  2 [ra] 0x00005563891292e1 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x000000055638acd7  22921391319
rsi 0x8000556389133b50  9223465922844638032
rdi 0x000055638acc5010  05 00 02 00 03 00 05 00 01 00 01 00 01 00 01 00  ················
rbp 0x00007ffdb70ca400  70 a7 0c b7 fd 7f 00 00 5e 7d 12 89 63 55 00 00  p§··ý···^}··cU··
rsp 0x00007ffdb70ca390  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x000055638acd7c80  d7 ac 38 56 05 00 00 00 85 32 74 4b c7 92 f2 20  ׬8V·····2tKÇ·ò
 r9 0x00007ffdb70ca100  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x20f292c74b743285  2374121338239726213
r12 0x000055638acd8620  f8 35 f5 dc 66 55 00 00 85 32 74 4b c7 92 f2 20  ø5õÜfU···2tKÇ·ò
r13 0x00007ffdb70ca730  10 00 00 00 00 00 00 f0 40 87 cd 8a 63 55 00 00  ·······ð@·Í·cU··
r14 0x0000556389135c40  03 00 00 00 00 00 00 00 e8 5f 13 89 63 55 00 00  ········è_··cU··
r15 0x00007f33aadff040  e0 02 e0 aa 33 7f 00 00 16 00 00 00 00 00 00 00  à·àª3···········
rip 0x00007f33aa967728  0f 0b 48 8d 35 4f 0f fb ff 48 8d 55 a0 45 31 e4  ··H·5O·ûÿH·U E1ä
rflags 0x0000000000010206  PF
cs 0x0033  fs 0x0000  gs 0x0000
Images (19 omitted):
0x0000556389123000–0x0000556389134158 ef189ee5eb5e79417452d7bf254803069fca637a swift-java-manifest /tmp/TemporaryDirectory.IipKoV/swift-java-manifest
0x00007f33aa685000–0x00007f33aac3bef8 5dc8fcc80095e8eedc81e3e8ea22b6c923b3d433 libswiftCore.so     /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.02s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.2 android