Build Information
Failed to build SwiftAndroid, reference 0.3.1 (65f935
), with Swift 6.1 for Linux on 9 Jul 2025 13:37:46 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.1-latest swift build --triple x86_64-unknown-linux-gnu 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: linux
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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-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.54s)
error: Invalid manifest (compiled with: ["/usr/bin/swiftc", "-vfsoverlay", "/tmp/TemporaryDirectory.rmTOWv/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.DI113a/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 0x7f2f0b247788... done ***
*** Program crashed: Illegal instruction at 0x00007f2f0b247788 ***
Thread 0 "swift-java-mani" crashed:
0 0x00007f2f0b247788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x0000564cc1fd3cfd findJavaHome() + 2348 in swift-java-manifest
2 [ra] 0x0000564cc1fd5231 main + 576 in swift-java-manifest
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x00005649a64f90ba 94874322833594
rsi 0x8000564cc1fdfaa0 9223466924526926496
rdi 0x0000564cc2828010 05 00 02 00 03 00 05 00 01 00 02 00 01 00 00 00 ················
rbp 0x00007ffe331097e0 50 9b 10 33 fe 7f 00 00 fd 3c fd c1 4c 56 00 00 P··3þ···ý<ýÁLV··
rsp 0x00007ffe33109770 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x0000564cc283abe0 ba 90 4f a6 49 56 00 00 c8 09 b6 4c af 11 d7 10 º·O¦IV··È·¶L¯·×·
r9 0x00007ffe33109450 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x10d711af4cb609c8 1213458069203585480
r12 0x0000564cc283b550 2b ed 4f a6 49 56 00 00 c8 09 b6 4c af 11 d7 10 +íO¦IV··È·¶L¯·×·
r13 0x00007ffe33109b10 10 00 00 00 00 00 00 f0 e0 b3 83 c2 4c 56 00 00 ·······ðà³·ÂLV··
r14 0x0000564cc1fe1c40 03 00 00 00 00 00 00 00 e8 1f fe c1 4c 56 00 00 ········è·þÁLV··
r15 0x00007f2f0b6b5040 e0 62 6b 0b 2f 7f 00 00 16 00 00 00 00 00 00 00 àbk·/···········
rip 0x00007f2f0b247788 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):
0x0000564cc1fcf000–0x0000564cc1fe00a8 4d0a56bad31b381d0db6b4775d7c4a6f884a5dcb swift-java-manifest /tmp/TemporaryDirectory.DI113a/swift-java-manifest
0x00007f2f0af6b000–0x00007f2f0b4f98c0 75d6677a6d78e3edb298be997d0496314a39dbd5 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-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-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.JGyUEC/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.q6qbuq/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 0x7f90e124e788... done ***
*** Program crashed: Illegal instruction at 0x00007f90e124e788 ***
Thread 0 "swift-java-mani" crashed:
0 0x00007f90e124e788 _assertionFailure(_:_:file:line:flags:) + 264 in libswiftCore.so
1 [ra] 0x00005628c193dcfd findJavaHome() + 2348 in swift-java-manifest
2 [ra] 0x00005628c193f231 main + 576 in swift-java-manifest
Registers:
rax 0x0000000000000000 0
rdx 0x0000000000000002 2
rcx 0x0000000000000005 5
rbx 0x00000005628c1c5c 23128185948
rsi 0x80005628c1949aa0 9223466769901197984
rdi 0x00005628c1c4a010 05 00 02 00 03 00 05 00 01 00 01 00 01 00 00 00 ················
rbp 0x00007fffe2c13640 b0 39 c1 e2 ff 7f 00 00 fd dc 93 c1 28 56 00 00 °9Áâÿ···ýÜ·Á(V··
rsp 0x00007fffe2c135d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ················
r8 0x00005628c1c5cbe0 5c 1c 8c 62 05 00 00 00 58 29 db d7 f6 5f dc 27 \··b····X)Û×ö_Ü'
r9 0x00007fffe2c132b0 46 61 74 61 6c 20 65 72 72 6f 72 3a 20 50 6c 65 Fatal error: Ple
r10 0x0000000000000000 0
r11 0x27dc5ff6d7db2958 2872276176143591768
r12 0x00005628c1c5d550 fd f8 49 a3 2d 56 00 00 58 29 db d7 f6 5f dc 27 ýøI£-V··X)Û×ö_Ü'
r13 0x00007fffe2c13970 10 00 00 00 00 00 00 f0 e0 d3 c5 c1 28 56 00 00 ·······ðàÓÅÁ(V··
r14 0x00005628c194bc40 03 00 00 00 00 00 00 00 e8 bf 94 c1 28 56 00 00 ········è¿·Á(V··
r15 0x00007f90e16bc040 e0 d2 6b e1 90 7f 00 00 16 00 00 00 00 00 00 00 àÒká············
rip 0x00007f90e124e788 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):
0x00005628c1939000–0x00005628c194a0a8 12751538379912818cbd74332e1929113a8a9e75 swift-java-manifest /tmp/TemporaryDirectory.q6qbuq/swift-java-manifest
0x00007f90e0f72000–0x00007f90e15008c0 75d6677a6d78e3edb298be997d0496314a39dbd5 libswiftCore.so /usr/lib/swift/linux/libswiftCore.so
Backtrace took 0.02s in https://github.com/PureSwift/swift-java.git
BUILD FAILURE 6.1 linux