Build Information
Failed to build swift-filelock, reference 0.1.1 (3894db), with Swift 6.2 for Android on 28 Jun 2026 13:15:27 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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 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: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/DePasqualeOrg/swift-filelock.git
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:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:3f0849bce0d177c252f57ff0847fffe59d625aee973279c71a52a43c740d3c90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--11D90AFD9DD3AB2.txt
[3/4] Emitting module FileLock
[4/4] Compiling FileLock FileLock.swift
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:20:13: error: cannot find 'write' in scope
18 | let line = "[FileLock] \(message)\n"
19 | line.utf8.withContiguousStorageIfAvailable { buffer in
20 | _ = write(2, buffer.baseAddress, buffer.count)
| `- error: cannot find 'write' in scope
21 | }
22 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:145:13: error: cannot find 'flock' in scope
143 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_api.py#L239-L248
144 | if let fd = _fileDescriptor {
145 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
146 | close(fd)
147 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:145:23: error: cannot find 'LOCK_UN' in scope
143 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_api.py#L239-L248
144 | if let fd = _fileDescriptor {
145 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
146 | close(fd)
147 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:146:13: error: cannot find 'close' in scope
144 | if let fd = _fileDescriptor {
145 | flock(fd, LOCK_UN)
146 | close(fd)
| `- error: cannot find 'close' in scope
147 | }
148 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:32: error: cannot find 'O_RDWR' 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_RDWR' in scope
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/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)
/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)
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:468:49: error: cannot convert value of type 'UInt8' to specified type 'Int32'
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 convert value of type 'UInt8' to specified type 'Int32'
469 |
470 | // O_NOFOLLOW: Don't follow symlinks (security measure)
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:473:22: error: cannot find 'O_NOFOLLOW' in scope
471 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L42-L44
472 | #if !os(Windows)
473 | openFlags |= O_NOFOLLOW
| `- error: cannot find 'O_NOFOLLOW' in scope
474 | #endif
475 |
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:478:18: error: cannot find 'open' in scope
476 | let pathString = lockPath.path(percentEncoded: false)
477 |
478 | let fd = open(pathString, openFlags, mode)
| `- error: cannot find 'open' in scope
479 | guard fd >= 0 else {
480 | throw FileLockError.openFailed(lockPath, errno: errno)
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:480:61: error: cannot find 'errno' in scope
478 | let fd = open(pathString, openFlags, mode)
479 | guard fd >= 0 else {
480 | throw FileLockError.openFailed(lockPath, errno: errno)
| `- error: cannot find 'errno' in scope
481 | }
482 |
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:486:13: error: cannot find 'fchmod' in scope
484 | // Reference: https://github.com/tox-dev/filelock/blob/main/src/filelock/_unix.py#L48-L49
485 | // with suppress(PermissionError): os.fchmod(fd, self._context.mode)
486 | _ = fchmod(fd, mode)
| `- error: cannot find 'fchmod' in scope
487 |
488 | return fd
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:504:22: error: cannot find 'flock' in scope
502 | var result: Int32
503 | repeat {
504 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'flock' in scope
505 | } while result == -1 && errno == EINTR
506 |
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:504:32: error: cannot find 'LOCK_EX' in scope
502 | var result: Int32
503 | repeat {
504 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_EX' in scope
505 | } while result == -1 && errno == EINTR
506 |
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:504:42: error: cannot find 'LOCK_NB' in scope
502 | var result: Int32
503 | repeat {
504 | result = flock(fd, LOCK_EX | LOCK_NB)
| `- error: cannot find 'LOCK_NB' in scope
505 | } while result == -1 && errno == EINTR
506 |
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:505:33: error: cannot find 'errno' in scope
503 | repeat {
504 | result = flock(fd, LOCK_EX | LOCK_NB)
505 | } while result == -1 && errno == EINTR
| `- error: cannot find 'errno' in scope
506 |
507 | if result == 0 {
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:514:16: error: cannot find 'errno' in scope
512 | // distinguishing retryable errors (EWOULDBLOCK/EAGAIN) from non-retryable ones
513 | // (EBADF, ENOLCK, etc.) to avoid infinite retry loops on fatal errors.
514 | switch errno {
| `- error: cannot find 'errno' in scope
515 | case ENOSYS:
516 | // Filesystem doesn't support flock
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:525:27: error: cannot find 'errno' in scope
523 | default:
524 | // Unexpected error (EBADF, ENOLCK, etc.) - fail immediately rather than retry
525 | return .error(errno)
| `- error: cannot find 'errno' in scope
526 | }
527 | }
/root/.swiftpm/swift-sdks/swift-6.2-RELEASE-android-0.1.artifactbundle/swift-android/ndk-sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 | * thread.
57 | */
58 | #define errno (*__errno())
| `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:544:9: error: cannot find 'flock' in scope
542 | /// See also: https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition
543 | private func releaseLockOnFd(_ fd: Int32) {
544 | flock(fd, LOCK_UN)
| `- error: cannot find 'flock' in scope
545 | close(fd)
546 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:544:19: error: cannot find 'LOCK_UN' in scope
542 | /// See also: https://stackoverflow.com/questions/17708885/flock-removing-locked-file-without-race-condition
543 | private func releaseLockOnFd(_ fd: Int32) {
544 | flock(fd, LOCK_UN)
| `- error: cannot find 'LOCK_UN' in scope
545 | close(fd)
546 | }
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:545:9: error: cannot find 'close' in scope
543 | private func releaseLockOnFd(_ fd: Int32) {
544 | flock(fd, LOCK_UN)
545 | close(fd)
| `- error: cannot find 'close' in scope
546 | }
547 |
/host/spi-builder-workspace/Sources/FileLock/FileLock.swift:605:13: error: cannot find 'close' in scope
603 | } catch {
604 | // Ensure fd is closed on any error (including CancellationError)
605 | close(fd)
| `- error: cannot find 'close' in scope
606 | throw error
607 | }
BUILD FAILURE 6.2 android