Build Information
Failed to build swift-filelock, reference 0.1.1 (3894db), with Swift 6.1 for Wasm on 28 Jun 2026 13:17:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-filelock.git
Reference: 0.1.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/DePasqualeOrg/swift-filelock
* tag 0.1.1 -> FETCH_HEAD
HEAD is now at 3894dbe Fix Linux compatibility: replace CFAbsoluteTimeGetCurrent and stderr
Cloned https://github.com/DePasqualeOrg/swift-filelock.git
Revision (git rev-parse @):
3894dbeea7593724b847f7cff32a3e2b162b70a0
SUCCESS checkout https://github.com/DePasqualeOrg/swift-filelock.git at 0.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/DePasqualeOrg/swift-filelock.git
https://github.com/DePasqualeOrg/swift-filelock.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/4] Emitting module FileLock
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/4] Compiling FileLock FileLock.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:41: error: cannot find 'O_CREAT' in scope
466 | // safe with existing files (no effect) and avoids the race.
467 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L41-L46
468 | var openFlags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:51: error: cannot find 'O_TRUNC' in scope
466 | // safe with existing files (no effect) and avoids the race.
467 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L41-L46
468 | var openFlags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/3] Emitting module FileLock
[3/3] Compiling FileLock FileLock.swift
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:41: error: cannot find 'O_CREAT' in scope
466 | // safe with existing files (no effect) and avoids the race.
467 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L41-L46
468 | var openFlags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_CREAT' in scope
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:13:9: note: macro 'O_CREAT' unavailable: structure not supported
11 | #define O_RSYNC __WASI_FDFLAGS_RSYNC
12 | #define O_SYNC __WASI_FDFLAGS_SYNC
13 | #define O_CREAT (__WASI_OFLAGS_CREAT << 12)
| `- note: macro 'O_CREAT' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:51: error: cannot find 'O_TRUNC' in scope
466 | // safe with existing files (no effect) and avoids the race.
467 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L41-L46
468 | var openFlags: Int32 = O_RDWR | O_CREAT | O_TRUNC
| `- error: cannot find 'O_TRUNC' in scope
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/__header_fcntl.h:16:9: note: macro 'O_TRUNC' unavailable: structure not supported
14 | #define O_DIRECTORY (__WASI_OFLAGS_DIRECTORY << 12)
15 | #define O_EXCL (__WASI_OFLAGS_EXCL << 12)
16 | #define O_TRUNC (__WASI_OFLAGS_TRUNC << 12)
| `- note: macro 'O_TRUNC' unavailable: structure not supported
17 |
18 | #define O_NOFOLLOW (0x01000000)
BUILD FAILURE 6.1 wasm