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 Linux on 9 Jul 2025 13:38:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 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:         linux
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: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/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: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.gxLvFP/vfs.yaml", "-L", "/usr/lib/swift/pm/ManifestAPI", "-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", "/usr/lib/swift/pm/ManifestAPI", "-swift-version", "6", "-I", "/usr/lib/swift/pm/ManifestAPI", "-package-description-version", "6.1.0", "/Package.swift", "-o", "/tmp/TemporaryDirectory.OZ8ekZ/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 0x7f87ce5f3f68... done ***
*** Program crashed: Illegal instruction at 0x00007f87ce5f3f68 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
  0      0x00007f87ce5f3f68 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x000056518d504cde findJavaHome() + 2317 in swift-java-manifest
  2 [ra] 0x000056518d506261 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x000000056518eefa  23170969338
rsi 0x800056518d510ad0  9223466945118014160
rdi 0x000056518eee8010  05 00 02 00 04 00 05 00 01 00 01 00 01 00 00 00  ················
rbp 0x00007ffebeaedbf0  60 df ae be fe 7f 00 00 de 4c 50 8d 51 56 00 00  `ß®¾þ···ÞLP·QV··
rsp 0x00007ffebeaedb80  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x000056518eefabe0  fa ee 18 65 05 00 00 00 01 51 2d 24 ad b3 89 1c  úî·e·····Q-$­³··
 r9 0x00007ffebeaed8f0  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x1c89b3ad242d5101  2056372261089005825
r12 0x000056518eefb470  0b 57 f7 eb 54 56 00 00 01 51 2d 24 ad b3 89 1c  ·W÷ëTV···Q-$­³··
r13 0x00007ffebeaedf20  10 00 00 00 00 00 00 f0 a0 b8 ef 8e 51 56 00 00  ·······ð ¸ï·QV··
r14 0x000056518d512c40  03 00 00 00 00 00 00 00 e8 2f 51 8d 51 56 00 00  ········è/Q·QV··
r15 0x00007f87cea8b040  e0 c2 a8 ce 87 7f 00 00 16 00 00 00 00 00 00 00  à¨η···········
rip 0x00007f87ce5f3f68  0f 0b 48 8d 35 4f 0f fb ff 48 8d 55 a0 45 31 e4  ··H·5O·ûÿH·U E1ä
rflags 0x0000000000010202
cs 0x0033  fs 0x0000  gs 0x0000
Images (19 omitted):
0x000056518d500000–0x000056518d5110d8 b217a7df1ea2fa9715d3b1f6743aa77993e010d9 swift-java-manifest /tmp/TemporaryDirectory.OZ8ekZ/swift-java-manifest
0x00007f87ce312000–0x00007f87ce8c8738 ea415297c2418b4eb4feb8edcc649464dcb14bc6 libswiftCore.so     /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.01s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.2 linux