The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AMSMB2, reference master (90737c), with Swift 6.4 for Android on 22 Sep 2026 20:13:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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/amosavian/AMSMB2.git
Reference: master
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/amosavian/AMSMB2
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 90737c4 chore: Use System package for Errno, SeekWhence and minor renamings
Submodule path 'Dependencies/libsmb2': checked out 'aedafb2c8742c83188e27841e270fdaad6035d41'
Submodule 'Dependencies/libsmb2' (https://github.com/sahlberg/libsmb2) registered for path 'Dependencies/libsmb2'
Cloning into '/host/spi-builder-workspace/Dependencies/libsmb2'...
Cloned https://github.com/amosavian/AMSMB2.git
Revision (git rev-parse @):
90737c486c9d1a6ed1c1d4307060587c7bb0dfec
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/amosavian/AMSMB2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1875] Fetching swift-atomics
[1876/8791] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git (0.82s)
Fetched https://github.com/apple/swift-system.git (0.82s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (1.03s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.25s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Building for debugging...
[Pre-planning 1 / 156]
[Starting]
[41 / 101] libsmb2
[55 / 101] libsmb2
[75 / 101] libsmb2
[86 / 102] CSystem
[94 / 111] SystemPackage
[98 / 111] SystemPackage
[103 / 121] libsmb2
[106 / 121] AMSMB2
[107 / 121] AMSMB2
[108 / 121] AMSMB2
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/AMSMB2/Extensions.swift:72:11: error: cannot find type 'POSIXErrorCode' in scope
 70 | }
 71 |
 72 | extension POSIXErrorCode {
    |           `- error: cannot find type 'POSIXErrorCode' in scope
 73 |     init(_ code: Errno) {
 74 |         self = POSIXErrorCode(rawValue: code.rawValue) ?? .ECANCELED
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:26:23: error: cannot find 'O_NOFOLLOW' in scope
 24 |
 25 | #if os(Linux) || os(Android) || os(OpenBSD)
 26 | let O_SYMLINK: CInt = O_NOFOLLOW
    |                       `- error: cannot find 'O_NOFOLLOW' in scope
 27 | #endif
 28 | @inlinable
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:64:32: error: cannot find type 'OpenOptions' in scope
 62 |     /// The corresponding C constant is `O_SYMLINK`.
 63 |     @_alwaysEmitIntoClient
 64 |     public static var symlink: OpenOptions { .init(rawValue: _O_SYMLINK) }
    |                                `- error: cannot find type 'OpenOptions' in scope
 65 |
 66 |     @_alwaysEmitIntoClient
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:68:34: error: cannot find type 'OpenOptions' in scope
 66 |     @_alwaysEmitIntoClient
 67 |     @available(*, unavailable, renamed: "symlink")
 68 |     public static var O_SYMLINK: OpenOptions { symlink }
    |                                  `- error: cannot find type 'OpenOptions' in scope
 69 | #endif
 70 | }
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:428:53: error: cannot find 'LOCK_SH' in scope
426 |         var rawValue: Int32
427 |
428 |         static let shared = LockOperation(rawValue: LOCK_SH)
    |                                                     `- error: cannot find 'LOCK_SH' in scope
429 |         static let exclusive = LockOperation(rawValue: LOCK_EX)
430 |         static let unlock = LockOperation(rawValue: LOCK_UN)
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:429:56: error: cannot find 'LOCK_EX' in scope
427 |
428 |         static let shared = LockOperation(rawValue: LOCK_SH)
429 |         static let exclusive = LockOperation(rawValue: LOCK_EX)
    |                                                        `- error: cannot find 'LOCK_EX' in scope
430 |         static let unlock = LockOperation(rawValue: LOCK_UN)
431 |         static let nonBlocking = LockOperation(rawValue: LOCK_NB)
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:430:53: error: cannot find 'LOCK_UN' in scope
428 |         static let shared = LockOperation(rawValue: LOCK_SH)
429 |         static let exclusive = LockOperation(rawValue: LOCK_EX)
430 |         static let unlock = LockOperation(rawValue: LOCK_UN)
    |                                                     `- error: cannot find 'LOCK_UN' in scope
431 |         static let nonBlocking = LockOperation(rawValue: LOCK_NB)
432 |
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:431:58: error: cannot find 'LOCK_NB' in scope
429 |         static let exclusive = LockOperation(rawValue: LOCK_EX)
430 |         static let unlock = LockOperation(rawValue: LOCK_UN)
431 |         static let nonBlocking = LockOperation(rawValue: LOCK_NB)
    |                                                          `- error: cannot find 'LOCK_NB' in scope
432 |
433 |         var smb2Flag: UInt32 {
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:22:21: error: cannot find 'O_SYNC' in scope
 20 |
 21 | @inlinable
 22 | var _O_SYNC: CInt { O_SYNC }
    |                     `- error: cannot find 'O_SYNC' in scope
 23 |
 24 |
/host/spi-builder-workspace/AMSMB2/FileHandle.swift:29:24: error: let 'O_SYMLINK' is internal and cannot be referenced from an '@inlinable' function
 24 |
 25 | #if os(Linux) || os(Android) || os(OpenBSD)
 26 | let O_SYMLINK: CInt = O_NOFOLLOW
    |     `- note: let 'O_SYMLINK' is not '@usableFromInline' or public
 27 | #endif
 28 | @inlinable
 29 | var _O_SYMLINK: CInt { O_SYMLINK }
    |                        `- error: let 'O_SYMLINK' is internal and cannot be referenced from an '@inlinable' function
 30 |
 31 | extension FileDescriptor.OpenOptions {
/host/spi-builder-workspace/AMSMB2/Stream.swift:105:61: warning: 'AsyncInputStream<Seq>' inherits an unavailable 'Sendable' conformance; conforming here risks data races [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unavailable-sendable-conformance\UnavailableSendableConformance]8;;\]
103 | }
104 |
105 | public class AsyncInputStream<Seq>: InputStream, @unchecked Sendable where Seq: AsyncSequence, Seq.Element: DataProtocol, Seq: SendableMetatype, Seq.Element: SendableMetatype, Seq.AsyncIterator: SendableMetatype {
    |              |                                              `- warning: 'AsyncInputStream<Seq>' inherits an unavailable 'Sendable' conformance; conforming here risks data races [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unavailable-sendable-conformance\UnavailableSendableConformance]8;;\]
    |              `- note: 'AsyncInputStream<Seq>' inherits unavailable conformance to protocol 'Sendable' from superclass here
106 |     private var stream: Seq
107 |     private var iterator: Seq.AsyncIterator
[#UnavailableSendableConformance]: <https://docs.swift.org/compiler/documentation/diagnostics/unavailable-sendable-conformance>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/AMSMB2/AMSMB2.swift /host/spi-builder-workspace/AMSMB2/Context.swift /host/spi-builder-workspace/AMSMB2/Directory.swift /host/spi-builder-workspace/AMSMB2/Extensions.swift /host/spi-builder-workspace/AMSMB2/FileHandle.swift /host/spi-builder-workspace/AMSMB2/FileMonitoring.swift /host/spi-builder-workspace/AMSMB2/Fsctl.swift /host/spi-builder-workspace/AMSMB2/MSRPC.swift /host/spi-builder-workspace/AMSMB2/ObjCCompat.swift /host/spi-builder-workspace/AMSMB2/Parsers.swift /host/spi-builder-workspace/AMSMB2/Stream.swift -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-upcoming-feature ExistentialAny -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 -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/Dependencies/libsmb2/include/module.modulemap -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/checkouts/swift-system/Sources/CSystem/include -Xcc -I/host/spi-builder-workspace/Dependencies/libsmb2/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AMSMB2 -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/AMSMB2_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/Modules/AMSMB2.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/Modules/AMSMB2.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/AMSMB2-Swift.h -serialize-diagnostics[111 / 121] AMSMB2
-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/AMSMB2-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/AMSMB2-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/AMSMB2.build/Debug-android-aarch64/AMSMB2-t.build/Objects-normal/aarch64/Modules/AMSMB2.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android