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 master (59001d), with Swift 6.2 (beta) for Linux on 14 Jul 2025 06:13:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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: 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/pureswift/android
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 59001d3 Merge pull request #20 from PureSwift/feature/jvm-shims
Cloned https://github.com/pureswift/android.git
Revision (git rev-parse @):
59001d339bbc8e0e71ff55771ce8a9309637ea3a
SUCCESS checkout https://github.com/pureswift/android.git at master
========================================
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-1":/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/5576] Fetching swift-java
Fetched https://github.com/PureSwift/swift-java.git from cache (0.53s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.pcTixN/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.shRveB/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 0x7f3bea217f68... done ***
*** Program crashed: Illegal instruction at 0x00007f3bea217f68 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
  0      0x00007f3bea217f68 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x0000555dfc764cde findJavaHome() + 2317 in swift-java-manifest
  2 [ra] 0x0000555dfc766261 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x0000000555dfd1a2  22915568034
rsi 0x8000555dfc770ad0  9223465899010755280
rdi 0x0000555dfd190010  05 00 02 00 04 00 05 00 01 00 01 00 01 00 00 00  ················
rbp 0x00007ffff57dbc50  c0 bf 7d f5 ff 7f 00 00 de 4c 76 fc 5d 55 00 00  À¿}õÿ···ÞLvü]U··
rsp 0x00007ffff57dbbe0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x0000555dfd1a2be0  a2 d1 df 55 05 00 00 00 78 66 48 0b 14 7a 0c 30  ¢ÑßU····xfH··z·0
 r9 0x00007ffff57db950  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x300c7a140b486678  3462276440048297592
r12 0x0000555dfd1a3540  e3 eb c5 a8 58 55 00 00 78 66 48 0b 14 7a 0c 30  ãëŨXU··xfH··z·0
r13 0x00007ffff57dbf80  10 00 00 00 00 00 00 f0 f0 38 1a fd 5d 55 00 00  ·······ðð8·ý]U··
r14 0x0000555dfc772c40  03 00 00 00 00 00 00 00 e8 2f 77 fc 5d 55 00 00  ········è/wü]U··
r15 0x00007f3bea6af040  e0 02 6b ea 3b 7f 00 00 16 00 00 00 00 00 00 00  à·kê;···········
rip 0x00007f3bea217f68  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):
0x0000555dfc760000–0x0000555dfc7710d8 e1dca78c270e1f4084061f050fb3b8b899fc6598 swift-java-manifest /tmp/TemporaryDirectory.shRveB/swift-java-manifest
0x00007f3be9f36000–0x00007f3bea4ec738 ea415297c2418b4eb4feb8edcc649464dcb14bc6 libswiftCore.so     /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.02s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.2 linux