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 (a44432), with Swift 6.0 for Linux on 8 Jun 2025 10:27:40 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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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 a444325 Ignore Finder files
Cloned https://github.com/pureswift/android.git
Revision (git rev-parse @):
a4443255b2cab83f3f28b6a559f5d6dcfb9b8de7
SUCCESS checkout https://github.com/pureswift/android.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
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.0-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:eaa733228b13fb63f7b48fc0ae9a4552a427b7215d37e5caded5aa10021734d9
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/swiftlang/swift-java.git
[1/7310] Fetching swift-java
Fetched https://github.com/swiftlang/swift-java.git from cache (0.41s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.cgMY8F/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.0.0", "/Package.swift", "-o", "/tmp/TemporaryDirectory.oZv8Uw/swift-java-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 0x7f5c601bab6f... done ***
*** Program crashed: Illegal instruction at 0x00007f5c601bab6f ***
Thread 0 "swift-java-mani" crashed:
0      0x00007f5c601bab6f _assertionFailure(_:_:file:line:flags:) + 351 in libswiftCore.so
1 [ra] 0x00005622907e1225 findJavaHome() + 1684 in swift-java-manifest
2 [ra] 0x00005622907e1941 main + 576 in swift-java-manifest
Registers:
rax 0x0000000000000000  0
rdx 0x00005622907eb861  46 61 74 61 6c 20 65 72 72 6f 72 00 00 00 00 4a  Fatal error····J
rcx 0x0000000000000005  5
rbx 0x00000005622914cb  23121695947
rsi 0x80005622907ebbd0  9223466743307877328
rdi 0x00005622914b8010  04 00 01 00 04 00 01 00 02 00 01 00 01 00 00 00  ················
rbp 0x00007fff1ed81fc0  80 22 d8 1e ff 7f 00 00 25 12 7e 90 22 56 00 00  ·"Ø·ÿ···%·~·"V··
rsp 0x00007fff1ed81f20  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x00005622914cb880  cb 14 29 62 05 00 00 00 e8 0b ee 3b 57 d4 30 d8  Ë·)b····è·î;WÔ0Ø
 r9 0x00007fff1ed81c90  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0xd830d4573bee0be8  15578184582207245288
r12 0x00005622907ebbd0  6d 61 69 6e 2f 50 61 63 6b 61 67 65 2e 73 77 69  main/Package.swi
r13 0x0000000000000052  82
r14 0x80005622907ebbd0  9223466743307877328
r15 0x000000000000000b  11
rip 0x00007f5c601bab6f  0f 0b 48 83 ec 08 48 8d 05 94 bd 2e 00 48 8d 3d  ··H·ì·H···½.·H·=
rflags 0x0000000000010282  SF
cs 0x0033  fs 0x0000  gs 0x0000
Images (19 omitted):
0x00005622907dd000–0x00005622907ec0a0 <no build ID>                            swift-java-manifest /tmp/TemporaryDirectory.oZv8Uw/swift-java-manifest
0x00007f5c5fed8000–0x00007f5c6046d930 b9f29f81b467904a40bdaaa0b0f84468865569b7 libswiftCore.so     /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.02s in https://github.com/swiftlang/swift-java.git
BUILD FAILURE 6.0 linux