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 Wasm on 14 Jul 2025 06:13:10 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 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:         wasm
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-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-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.58s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.XssLl9/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.5HkEP5/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 0x7f961dd82f68... done ***
*** Program crashed: Illegal instruction at 0x00007f961dd82f68 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
  0      0x00007f961dd82f68 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
  1 [ra] 0x0000556209d3dcde findJavaHome() + 2317 in swift-java-manifest
  2 [ra] 0x0000556209d3f261 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000  0
rdx 0x0000000000000002  2
rcx 0x0000000000000005  5
rbx 0x000000055620a1c0  22919815616
rsi 0x8000556209d49ad0  9223465916414859984
rdi 0x000055620a1ae010  05 00 02 00 04 00 05 00 01 00 01 00 01 00 00 00  ················
rbp 0x00007ffdd80740f0  60 44 07 d8 fd 7f 00 00 de dc d3 09 62 55 00 00  `D·Øý···ÞÜÓ·bU··
rsp 0x00007ffdd8074080  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ················
 r8 0x000055620a1c0be0  c0 a1 20 56 05 00 00 00 08 90 40 81 2b 39 2e 57  À¡ V······@·+9.W
 r9 0x00007ffdd8073df0  46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65  Fatal error: Ple
r10 0x0000000000000000  0
r11 0x572e392b81409008  6282021389243289608
r12 0x000055620a1c0aa0  c0 ba 3c 5c 67 55 00 00 08 90 40 81 2b 39 2e 57  Àº<\gU····@·+9.W
r13 0x00007ffdd8074420  10 00 00 00 00 00 00 f0 b0 19 1c 0a 62 55 00 00  ·······ð°···bU··
r14 0x0000556209d4bc40  03 00 00 00 00 00 00 00 e8 bf d4 09 62 55 00 00  ········è¿Ô·bU··
r15 0x00007f961e21a040  e0 b2 21 1e 96 7f 00 00 16 00 00 00 00 00 00 00  à²!·············
rip 0x00007f961dd82f68  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):
0x0000556209d39000–0x0000556209d4a0d8 3c5b0653d3ef91ce35cf87997fbc28bf5b15dc28 swift-java-manifest /tmp/TemporaryDirectory.5HkEP5/swift-java-manifest
0x00007f961daa1000–0x00007f961e057738 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 wasm