Build Information
Failed to build SwiftAndroid, reference master (59001d
), with Swift 6.2 (beta) for Android on 14 Jul 2025 06:13:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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: 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: 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-4606859-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/5576] Fetching swift-java
Fetched https://github.com/PureSwift/swift-java.git from cache (0.54s)
error: Invalid manifest (compiled with: ["/root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.Ty2pKR/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.7PCpZi/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 0x7f81804f5728... done ***
*** Program crashed: Illegal instruction at 0x00007f81804f5728 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
0 0x00007f81804f5728 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x000056482a6b8d5e findJavaHome() + 2317 in swift-java-manifest
2 [ra] 0x000056482a6ba2e1 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x000000056482a89c 23161120924
rsi 0x800056482a6c4b50 9223466904804150096
rdi 0x000056482a88a010 05 00 02 00 03 00 05 00 01 00 01 00 01 00 01 00 ················
rbp 0x00007ffe79b5e120 90 e4 b5 79 fe 7f 00 00 5e 8d 6b 2a 48 56 00 00 ·äµyþ···^·k*HV··
rsp 0x00007ffe79b5e0b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x000056482a89cc80 9c a8 82 64 05 00 00 00 c7 44 0e 9a 4a b8 b4 3c ·¨·d····ÇD··J¸´<
r9 0x00007ffe79b5de20 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x3cb4b84a9a0e44c7 4374323768635311303
r12 0x000056482a89d620 4d 40 0b 4e 4d 56 00 00 c7 44 0e 9a 4a b8 b4 3c M@·NMV··ÇD··J¸´<
r13 0x00007ffe79b5e450 10 00 00 00 00 00 00 f0 b0 d8 89 2a 48 56 00 00 ·······ð°Ø·*HV··
r14 0x000056482a6c6c40 03 00 00 00 00 00 00 00 e8 6f 6c 2a 48 56 00 00 ········èol*HV··
r15 0x00007f818098d040 e0 e2 98 80 81 7f 00 00 16 00 00 00 00 00 00 00 àâ··············
rip 0x00007f81804f5728 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):
0x000056482a6b4000–0x000056482a6c5158 56a250ee5ce88c820c000befa1c1342766a223ca swift-java-manifest /tmp/TemporaryDirectory.7PCpZi/swift-java-manifest
0x00007f8180213000–0x00007f81807c9ef8 5dc8fcc80095e8eedc81e3e8ea22b6c923b3d433 libswiftCore.so /root/.local/share/swiftly/toolchains/6.2-snapshot-2025-05-15/usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.28s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.2 android