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 (9a484b), with Swift 6.2 (beta) for Android on 18 Jun 2025 07:09:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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: 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 9a484ba Merge pull request #16 from zunda-pixel/update-gitignore
Cloned https://github.com/pureswift/android.git
Revision (git rev-parse @):
9a484bafd509cf700b3c73013c1634cc21a2281a
SUCCESS checkout https://github.com/pureswift/android.git at master
========================================
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-3":/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
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.E51ksY/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.0.0", "/host/spi-builder-workspace/Package.swift", "-o", "/tmp/TemporaryDirectory.ut2bmP/spi-builder-workspace-manifest"])
main/Package.swift:29: Fatal error: Please set the JAVA_HOME environment variable to point to where Java is installed.
*** Signal 4: Backtracing from 0x7f763134d728... done ***
*** Program crashed: Illegal instruction at 0x00007f763134d728 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "spi-builder-wor" crashed:
  0      0x00007f763134d728 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x000055fb82e5e5b6 findJavaHome() + 1653 in spi-builder-workspace-manifest
  2 [ra] 0x000055fb82e5ebca main + 473 in spi-builder-workspace-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x000000055fb83c94  23080746132
rsi 0x800055fb82e64630  9223466575576057392
rdi 0x000055fb83c82010  06 00 02 00 01 00 03 00 02 00 01 00 01 00 01 00  ················
rbp 0x00007ffd98986ad0  90 6d 98 98 fd 7f 00 00 b6 e5 e5 82 fb 55 00 00  ·m··ý···¶åå·ûU··
rsp 0x00007ffd98986a60  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x000055fb83c94c90  94 3c b8 5f 05 00 00 00 25 e4 1a 64 36 e6 6b 29  ·<¸_····%ä·d6æk)
 r9 0x00007ffd989867d0  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x296be636641ae425  2984732299345191973
r12 0x000055fb83c95610  95 3c b8 5f 05 00 00 00 25 e4 1a 64 36 e6 6b 29  ·<¸_····%ä·d6æk)
r13 0x00007ffd98986d50  10 00 00 00 00 00 00 f0 b0 5a c9 83 fb 55 00 00  ·······ð°ZÉ·ûU··
r14 0x000055fb82e65c68  03 00 00 00 00 00 00 00 e8 5f e6 82 fb 55 00 00  ········è_æ·ûU··
r15 0x00007f76317e5040  e0 62 7e 31 76 7f 00 00 16 00 00 00 00 00 00 00  àb~1v···········
rip 0x00007f763134d728  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):
0x000055fb82e5b000–0x000055fb82e64968 a557f762d04a0ed83bac6861593a73699a7d7de1 spi-builder-workspace-manifest /tmp/TemporaryDirectory.ut2bmP/spi-builder-workspace-manifest
0x00007f763106b000–0x00007f7631621ef8 5dc8fcc80095e8eedc81e3e8ea22b6c923b3d433 libswiftCore.so                /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.04s
error: 'spi-builder-workspace': Invalid manifest (compiled with: ["/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.7roGEJ/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.0.0", "/host/spi-builder-workspace/Package.swift", "-o", "/tmp/TemporaryDirectory.ThRis5/spi-builder-workspace-manifest"])
main/Package.swift:29: Fatal error: Please set the JAVA_HOME environment variable to point to where Java is installed.
*** Signal 4: Backtracing from 0x7f7669e46728... done ***
*** Program crashed: Illegal instruction at 0x00007f7669e46728 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "spi-builder-wor" crashed:
  0      0x00007f7669e46728 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x000055cabefb15b6 findJavaHome() + 1653 in spi-builder-workspace-manifest
  2 [ra] 0x000055cabefb1bca main + 473 in spi-builder-workspace-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x000000055cac0595  23029613973
rsi 0x800055cabefb7630  9223466366130681392
rdi 0x000055cac0583010  06 00 02 00 01 00 03 00 02 00 01 00 01 00 01 00  ················
rbp 0x00007ffefb19b800  c0 ba 19 fb fe 7f 00 00 b6 15 fb be ca 55 00 00  Àº·ûþ···¶·û¾ÊU··
rsp 0x00007ffefb19b790  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x000055cac0595c90  95 05 ac 5c 05 00 00 00 f1 4b c7 cb ea d0 58 48  ··¬\····ñKÇËêÐXH
 r9 0x00007ffefb19b500  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x4858d0eacbc74bf1  5213146275541109745
r12 0x000055cac0596610  96 05 ac 5c 05 00 00 00 f1 4b c7 cb ea d0 58 48  ··¬\····ñKÇËêÐXH
r13 0x00007ffefb19ba80  10 00 00 00 00 00 00 f0 10 6a 59 c0 ca 55 00 00  ·······ð·jYÀÊU··
r14 0x000055cabefb8c68  03 00 00 00 00 00 00 00 e8 8f fb be ca 55 00 00  ········è·û¾ÊU··
r15 0x00007f766a2de040  e0 f2 2d 6a 76 7f 00 00 16 00 00 00 00 00 00 00  àò-jv···········
rip 0x00007f7669e46728  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):
0x000055cabefae000–0x000055cabefb7968 48d2acd5773c94737a5eaed6e2d0dae95b7d9dc6 spi-builder-workspace-manifest /tmp/TemporaryDirectory.ThRis5/spi-builder-workspace-manifest
0x00007f7669b64000–0x00007f766a11aef8 5dc8fcc80095e8eedc81e3e8ea22b6c923b3d433 libswiftCore.so                /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.01s
BUILD FAILURE 6.2 android