Build Information
Failed to build SwiftAndroid, reference 0.3.1 (65f935
), with Swift 6.1 for Android on 9 Jul 2025 13:37:03 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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/pureswift/android.git
https://github.com/pureswift/android.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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.58s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.385Cir/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.Xpu0KQ/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 0x7fb9dbbd7788... done ***
*** Program crashed: Illegal instruction at 0x00007fb9dbbd7788 ***
Thread 0 "swift-java-mani" crashed:
0 0x00007fb9dbbd7788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x000056443e93dcfd findJavaHome() + 2348 in swift-java-manifest
2 [ra] 0x000056443e93f231 main + 576 in swift-java-manifest
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x000000056443fb71 23157013361
rsi 0x800056443e949aa0 9223466887962466976
rdi 0x000056443fb5f010 05 00 02 00 03 00 05 00 01 00 01 00 01 00 00 00 ················
rbp 0x00007fffb017f330 a0 f6 17 b0 ff 7f 00 00 fd dc 93 3e 44 56 00 00 ö·°ÿ···ýÜ·>DV··
rsp 0x00007fffb017f2c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x000056443fb71be0 71 fb 43 64 05 00 00 00 9d b1 8b d9 55 e6 bb 9b qûCd·····±·ÙUæ»·
r9 0x00007fffb017efa0 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x9bbbe655d98bb19d 11221816152920142237
r12 0x000056443fb72550 d2 cf f4 5b 41 56 00 00 9d b1 8b d9 55 e6 bb 9b ÒÏô[AV···±·ÙUæ»·
r13 0x00007fffb017f660 10 00 00 00 00 00 00 f0 e0 1a b7 3f 44 56 00 00 ·······ðà··?DV··
r14 0x000056443e94bc40 03 00 00 00 00 00 00 00 e8 bf 94 3e 44 56 00 00 ········è¿·>DV··
r15 0x00007fb9dc045040 e0 62 04 dc b9 7f 00 00 16 00 00 00 00 00 00 00 àb·Ü¹···········
rip 0x00007fb9dbbd7788 0f 0b 48 8d 35 4f 5c 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):
0x000056443e939000–0x000056443e94a0a8 d896ca0e912020d445cec5621762eaa590cee836 swift-java-manifest /tmp/TemporaryDirectory.Xpu0KQ/swift-java-manifest
0x00007fb9db8fb000–0x00007fb9dbe898c0 e0daad81442ed488d8b83fd10c171fcb90baba85 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.03s in https://github.com/PureSwift/swift-java.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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Updating https://github.com/PureSwift/swift-java.git
Updated https://github.com/PureSwift/swift-java.git (0.16s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.JLN48Z/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.yQ9Ypx/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 0x7fb3b6dd5788... done ***
*** Program crashed: Illegal instruction at 0x00007fb3b6dd5788 ***
Thread 0 "swift-java-mani" crashed:
0 0x00007fb3b6dd5788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x0000560b314e5cfd findJavaHome() + 2348 in swift-java-manifest
2 [ra] 0x0000560b314e7231 main + 576 in swift-java-manifest
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x0000560e525bd65e 94619511281246
rsi 0x8000560b314f1aa0 9223466642926672544
rdi 0x0000560b32e7c010 05 00 02 00 03 00 05 00 01 00 02 00 01 00 00 00 ················
rbp 0x00007ffe9eb7a1f0 60 a5 b7 9e fe 7f 00 00 fd 5c 4e 31 0b 56 00 00 `¥··þ···ý\N1·V··
rsp 0x00007ffe9eb7a180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x0000560b32e8ebe0 5e d6 5b 52 0e 56 00 00 db 13 1a 97 37 4e d0 63 ^Ö[R·V··Û···7NÐc
r9 0x00007ffe9eb79e60 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x63d04e37971a13db 7192334605575918555
r12 0x0000560b32e8ea60 9e 2b 5a 52 0e 56 00 00 db 13 1a 97 37 4e d0 63 ·+ZR·V··Û···7NÐc
r13 0x00007ffe9eb7a520 10 00 00 00 00 00 00 f0 f0 f3 e8 32 0b 56 00 00 ·······ððóè2·V··
r14 0x0000560b314f3c40 03 00 00 00 00 00 00 00 e8 3f 4f 31 0b 56 00 00 ········è?O1·V··
r15 0x00007fb3b7243040 e0 42 24 b7 b3 7f 00 00 16 00 00 00 00 00 00 00 àB$·³···········
rip 0x00007fb3b6dd5788 0f 0b 48 8d 35 4f 5c 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):
0x0000560b314e1000–0x0000560b314f20a8 11d4eeb6e052b2f7114bab382eaa0ced1917e2f9 swift-java-manifest /tmp/TemporaryDirectory.yQ9Ypx/swift-java-manifest
0x00007fb3b6af9000–0x00007fb3b70878c0 e0daad81442ed488d8b83fd10c171fcb90baba85 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.03s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.1 android