The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-filelock, reference main (3894db), with Swift 6.4 for Android on 25 Sep 2026 13:26:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DePasqualeOrg/swift-filelock.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/DePasqualeOrg/swift-filelock
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/DePasqualeOrg/swift-filelock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/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.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Building for debugging...
[Planning deferred tasks]
[21 / 29] FileLock
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/FileLock/FileLock.swift failed with a nonzero exit code. Command line:     cd /host
    builtin-SwiftPerFileCompile 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: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 |
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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 {
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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 |     }
/android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/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 |         }
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/FileLock/FileLock.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FileLock -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.o -index-unit-output-path /swift-filelock.build/Debug-android-aarch64/FileLock-t.build/Objects-normal/aarch64/FileLock.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android