Build Information
Failed to build SwiftAndroid, reference 0.3.1 (65f935
), with Swift 6.2 (beta) for Wasm on 9 Jul 2025 13:38:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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: 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: 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-4609320-1":/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/5322] Fetching swift-java
Fetched https://github.com/PureSwift/swift-java.git from cache (0.54s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.C25NAL/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.SrPJPE/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 0x7f67b6881f68... done ***
*** Program crashed: Illegal instruction at 0x00007f67b6881f68 ***
Platform: x86_64 Linux (Ubuntu 22.04.5 LTS)
Thread 0 "swift-java-mani" crashed:
0 0x00007f67b6881f68 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x00005571500f3cde findJavaHome() + 2317 in swift-java-manifest
2 [ra] 0x00005571500f5261 main + 576 in swift-java-manifest
...
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x0000000557150d0e 22935833870
rsi 0x80005571500ffad0 9223465982017665744
rdi 0x0000557150cfc010 05 00 02 00 04 00 05 00 01 00 01 00 01 00 00 00 ················
rbp 0x00007ffdd445aa20 90 ad 45 d4 fd 7f 00 00 de 3c 0f 50 71 55 00 00 ·EÔý···Þ<·PqU··
rsp 0x00007ffdd445a9b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x0000557150d0ebe0 0e 0d 15 57 05 00 00 00 6b 8f 88 14 80 fb c3 74 ···W····k····ûÃt
r9 0x00007ffdd445a720 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x74c3fb8014888f6b 8413845056377098091
r12 0x0000557150d0eaa0 0e f6 c5 07 74 55 00 00 6b 8f 88 14 80 fb c3 74 ·öÅ·tU··k····ûÃt
r13 0x00007ffdd445ad50 10 00 00 00 00 00 00 f0 b0 f9 d0 50 71 55 00 00 ·······ð°ùÐPqU··
r14 0x0000557150101c40 03 00 00 00 00 00 00 00 e8 1f 10 50 71 55 00 00 ········è··PqU··
r15 0x00007f67b6d19040 e0 a2 d1 b6 67 7f 00 00 16 00 00 00 00 00 00 00 à¢Ñ¶g···········
rip 0x00007f67b6881f68 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):
0x00005571500ef000–0x00005571501000d8 064594c377c8d3e9203220aa205f43f6ec0375c4 swift-java-manifest /tmp/TemporaryDirectory.SrPJPE/swift-java-manifest
0x00007f67b65a0000–0x00007f67b6b56738 ea415297c2418b4eb4feb8edcc649464dcb14bc6 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.01s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.2 wasm