Build Information
Failed to build swift-android-native, reference main (29bac8
), with Swift 6.2 (beta) for Wasm on 18 Aug 2025 15:59:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skiptools/swift-android-native.git
Reference: main
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/skiptools/swift-android-native
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 29bac85 Add verbose to skip android sdk install in CI
Cloned https://github.com/skiptools/swift-android-native.git
Revision (git rev-parse @):
29bac850028cfe1feb42c48bce5c0608c233b4ba
SUCCESS checkout https://github.com/skiptools/swift-android-native.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/skiptools/swift-android-native.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:3160178686d03086db4c1712d78c1980537bb37521128c64baade7f466b6b4aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://source.skip.tools/swift-jni.git
[1/113] Fetching swift-jni
Fetched https://source.skip.tools/swift-jni.git from cache (0.63s)
Computing version for https://source.skip.tools/swift-jni.git
Computed https://source.skip.tools/swift-jni.git at 0.3.0 (0.97s)
Creating working copy for https://source.skip.tools/swift-jni.git
Working copy of https://source.skip.tools/swift-jni.git resolved at 0.3.0
Building for debugging...
[0/14] Write sources
[8/14] Compiling ConcurrencyRuntimeC src.c
[9/14] Compiling CJNI cjni.c
[10/14] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/47] Emitting module AndroidSystem
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:148:3: error: cannot find '_getConst_EWOULDBLOCK' in scope
146 | internal var _EWOULDBLOCK: CInt {
147 | #if os(WASI)
148 | _getConst_EWOULDBLOCK()
| `- error: cannot find '_getConst_EWOULDBLOCK' in scope
149 | #else
150 | EWOULDBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:452:3: error: cannot find '_getConst_EOPNOTSUPP' in scope
450 | internal var _EOPNOTSUPP: CInt {
451 | #if os(WASI)
452 | _getConst_EOPNOTSUPP()
| `- error: cannot find '_getConst_EOPNOTSUPP' in scope
453 | #else
454 | EOPNOTSUPP
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:498:3: error: cannot find '_getConst_O_ACCMODE' in scope
496 | internal var _O_ACCMODE: CInt {
497 | #if os(WASI)
498 | _getConst_O_ACCMODE()
| `- error: cannot find '_getConst_O_ACCMODE' in scope
499 | #else
500 | O_ACCMODE
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:508:3: error: cannot find '_getConst_O_NONBLOCK' in scope
506 | internal var _O_NONBLOCK: CInt {
507 | #if os(WASI)
508 | _getConst_O_NONBLOCK()
| `- error: cannot find '_getConst_O_NONBLOCK' in scope
509 | #else
510 | O_NONBLOCK
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:518:3: error: cannot find '_getConst_O_APPEND' in scope
516 | internal var _O_APPEND: CInt {
517 | #if os(WASI)
518 | _getConst_O_APPEND()
| `- error: cannot find '_getConst_O_APPEND' in scope
519 | #else
520 | O_APPEND
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:546:3: error: cannot find '_getConst_O_CREAT' in scope
544 | internal var _O_CREAT: CInt {
545 | #if os(WASI)
546 | _getConst_O_CREAT()
| `- error: cannot find '_getConst_O_CREAT' in scope
547 | #else
548 | O_CREAT
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:555:3: error: cannot find '_getConst_O_TRUNC' in scope
553 | internal var _O_TRUNC: CInt {
554 | #if os(WASI)
555 | _getConst_O_TRUNC()
| `- error: cannot find '_getConst_O_TRUNC' in scope
556 | #else
557 | O_TRUNC
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:564:3: error: cannot find '_getConst_O_EXCL' in scope
562 | internal var _O_EXCL: CInt {
563 | #if os(WASI)
564 | _getConst_O_EXCL()
| `- error: cannot find '_getConst_O_EXCL' in scope
565 | #else
566 | O_EXCL
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Constants.swift:583:3: error: cannot find '_getConst_O_DIRECTORY' in scope
581 | internal var _O_DIRECTORY: CInt {
582 | #if os(WASI)
583 | _getConst_O_DIRECTORY()
| `- error: cannot find '_getConst_O_DIRECTORY' in scope
584 | #else
585 | O_DIRECTORY
/host/spi-builder-workspace/Sources/AndroidSystem/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android)
/host/spi-builder-workspace/Sources/AndroidSystem/LockedState.swift:31:34: warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
29 | #endif
30 |
31 | typealias PlatformLock = UnsafeMutablePointer<Primitive>
| `- warning: UnsafeMutablePointer<Void> has been replaced by UnsafeMutableRawPointer
32 | var _platformLock: PlatformLock
33 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/50] Emitting module SwiftJNI
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:6:8: error: no such module 'Foundation'
4 | import FoundationEssentials
5 | #else
6 | import Foundation
| `- error: no such module 'Foundation'
7 | #endif
8 | #if canImport(Darwin)
[14/50] Compiling SwiftJNI SwiftJNI.swift
/host/spi-builder-workspace/.build/checkouts/swift-jni/Sources/SwiftJNI/SwiftJNI.swift:6:8: error: no such module 'Foundation'
4 | import FoundationEssentials
5 | #else
6 | import Foundation
| `- error: no such module 'Foundation'
7 | #endif
8 | #if canImport(Darwin)
[15/50] Emitting module AndroidLogging
BUILD FAILURE 6.2 wasm