Build Information
Failed to build AMSMB2, reference master (90737c), with Swift 6.2 for Android on 24 Jun 2026 20:20:01 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4071e0796c748d991a0123890d2f0ecadc8fcc8c
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.2
Building package at path: $PWD
https://github.com/amosavian/AMSMB2.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a30e3bfdcec38518f1e133b47d2d7fca472c20d828ebf94d6baf9d8167791ad0
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1868] Fetching swift-atomics
[1869/7761] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.51s)
Fetched https://github.com/apple/swift-system.git from cache (0.51s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.67s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.18s)
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
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.7.2
Building for debugging...
[0/63] Compiling hmac-md5.c
[1/63] Compiling aes_reference.c
[2/63] Compiling dcerpc-srvsvc.c
[3/63] Compiling alloc.c
[4/63] Compiling errors.c
[5/63] Write swift-version--11D90AFD9DD3AB2.txt
[6/63] Compiling asn1-ber.c
[7/63] Compiling usha.c
[8/63] Compiling dcerpc.c
[9/63] Compiling timestamps.c
[10/63] Compiling unicode.c
[11/63] Compiling smb3-seal.c
[12/63] Compiling spnego-wrapper.c
[13/63] Compiling sync.c
[13/63] Compiling smb2-signing.c
[15/63] Compiling smb2-share-enum.c
[16/63] Compiling smb2-data-security-descriptor.c
[17/63] Compiling smb2-data-reparse-point.c
[18/63] Compiling socket.c
[19/63] Compiling smb2-data-filesystem-info.c
[20/63] Compiling smb2-cmd-tree-disconnect.c
[21/63] Compiling smb2-data-file-info.c
[22/63] Compiling smb2-cmd-write.c
[22/63] Compiling smb2-cmd-tree-connect.c
[24/63] Compiling smb2-cmd-set-info.c
[25/63] Compiling smb2-cmd-session-setup.c
[26/63] Compiling smb2-cmd-read.c
[27/63] Compiling smb2-cmd-query-info.c
[28/63] Compiling smb2-cmd-notify-change.c
[29/63] Compiling smb2-cmd-logoff.c
[29/63] Compiling smb2-cmd-oplock-break.c
[31/63] Compiling smb2-cmd-query-directory.c
[32/63] Compiling smb2-cmd-lock.c
[33/63] Compiling smb2-cmd-negotiate.c
[34/63] Compiling smb2-cmd-flush.c
[35/63] Compiling smb2-cmd-ioctl.c
[36/63] Compiling smb2-cmd-error.c
[37/63] Compiling smb2-cmd-echo.c
[38/63] Compiling smb2-cmd-close.c
[39/63] Compiling sha224-256.c
[40/63] Compiling sha384-512.c
[40/63] Compiling sha1.c
[42/63] Compiling smb2-cmd-create.c
[43/63] Compiling krb5-wrapper.c
[44/63] Compiling md4c.c
[45/63] Compiling hmac.c
[46/63] Compiling compat.c
[47/63] Compiling aes_apple.c
[48/63] Compiling md5.c
[48/63] Write sources
[50/63] Compiling ntlmssp.c
[51/63] Write sources
[52/63] Compiling pdu.c
[53/63] Compiling aes.c
[54/63] Compiling dcerpc-lsa.c
[55/63] Compiling aes128ccm.c
[56/63] Compiling CSystem shims.c
[57/63] Compiling init.c
[58/63] Compiling libsmb2.c
[60/99] Emitting module SystemPackage
[61/104] Compiling SystemPackage FilePermissions.swift
[62/104] Compiling SystemPackage FileFlags.swift
[63/104] Compiling SystemPackage FileMode.swift
[64/104] Compiling SystemPackage FileType.swift
[65/104] Compiling SystemPackage Identifiers.swift
[66/104] Compiling SystemPackage SystemString.swift
[67/104] Compiling SystemPackage Util+StringArray.swift
[68/104] Compiling SystemPackage Util.swift
[69/104] Compiling SystemPackage UtilConsumers.swift
[70/104] Compiling SystemPackage WinSDK+Overlay.swift
[71/104] Compiling SystemPackage Errno.swift
[72/104] Compiling SystemPackage ErrnoWindows.swift
[73/104] Compiling SystemPackage FileDescriptor.swift
[74/104] Compiling SystemPackage FileHelpers.swift
[75/104] Compiling SystemPackage FileOperations.swift
[76/104] Compiling SystemPackage RawBuffer.swift
[77/104] Compiling SystemPackage Syscalls.swift
[78/104] Compiling SystemPackage WindowsSyscallAdapters.swift
[79/104] Compiling SystemPackage MachPort.swift
[80/104] Compiling SystemPackage PlatformString.swift
[81/104] Compiling SystemPackage Stat.swift
[82/104] Compiling SystemPackage IOCompletion.swift
[83/104] Compiling SystemPackage IORequest.swift
[84/104] Compiling SystemPackage IORing.swift
[85/104] Compiling SystemPackage RawIORequest.swift
[86/104] Compiling SystemPackage FilePathSyntax.swift
[87/104] Compiling SystemPackage FilePathTemp.swift
[88/104] Compiling SystemPackage FilePathTempPosix.swift
[89/104] Compiling SystemPackage FilePathTempWindows.swift
[90/104] Compiling SystemPackage FilePathWindows.swift
[91/104] Compiling SystemPackage FilePath.swift
[92/104] Compiling SystemPackage FilePathComponentView.swift
[93/104] Compiling SystemPackage FilePathComponents.swift
[94/104] Compiling SystemPackage FilePathParsing.swift
[95/104] Compiling SystemPackage FilePathString.swift
[96/104] Compiling SystemPackage Backcompat.swift
[97/104] Compiling SystemPackage CInterop.swift
[98/104] Compiling SystemPackage Constants.swift
[99/104] Compiling SystemPackage Exports.swift
[100/104] Compiling SystemPackage Mocking.swift
[101/105] Wrapping AST for SystemPackage for debugging
[103/116] Compiling AMSMB2 ObjCCompat.swift
[104/116] Compiling AMSMB2 Parsers.swift
[105/117] Compiling AMSMB2 Directory.swift
/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/Extensions.swift:68:33: error: missing argument label 'rawValue:' in call
66 | let description = description ?? code.description
67 | let userInfo: [String: Any] = [NSLocalizedDescriptionKey: description]
68 | self = POSIXError(.init(code), userInfo: userInfo)
| `- error: missing argument label 'rawValue:' in call
69 | }
70 | }
/host/spi-builder-workspace/AMSMB2/Extensions.swift:68:33: error: cannot convert value of type 'Errno' to expected argument type 'Int32'
66 | let description = description ?? code.description
67 | let userInfo: [String: Any] = [NSLocalizedDescriptionKey: description]
68 | self = POSIXError(.init(code), userInfo: userInfo)
| `- error: cannot convert value of type 'Errno' to expected argument type 'Int32'
69 | }
70 | }
[106/117] Compiling AMSMB2 Extensions.swift
/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/Extensions.swift:68:33: error: missing argument label 'rawValue:' in call
66 | let description = description ?? code.description
67 | let userInfo: [String: Any] = [NSLocalizedDescriptionKey: description]
68 | self = POSIXError(.init(code), userInfo: userInfo)
| `- error: missing argument label 'rawValue:' in call
69 | }
70 | }
/host/spi-builder-workspace/AMSMB2/Extensions.swift:68:33: error: cannot convert value of type 'Errno' to expected argument type 'Int32'
66 | let description = description ?? code.description
67 | let userInfo: [String: Any] = [NSLocalizedDescriptionKey: description]
68 | self = POSIXError(.init(code), userInfo: userInfo)
| `- error: cannot convert value of type 'Errno' to expected argument type 'Int32'
69 | }
70 | }
[107/117] Compiling AMSMB2 AMSMB2.swift
/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/Context.swift:327:83: error: type 'FileDescriptor.OpenOptions' has no member 'exclusiveLock'
325 |
326 | func symlink(_ path: String, to destination: String) throws {
327 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.create, .exclusiveLock, .symlink, .sync], on: self)
| `- error: type 'FileDescriptor.OpenOptions' has no member 'exclusiveLock'
328 | let reparse = IOCtl.SymbolicLinkReparse(path: destination, isRelative: true)
329 | try file.fcntl(command: .setReparsePoint, args: reparse)
/host/spi-builder-workspace/AMSMB2/Context.swift:329:34: error: cannot infer contextual base in reference to member 'setReparsePoint'
327 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.create, .exclusiveLock, .symlink, .sync], on: self)
328 | let reparse = IOCtl.SymbolicLinkReparse(path: destination, isRelative: true)
329 | try file.fcntl(command: .setReparsePoint, args: reparse)
| `- error: cannot infer contextual base in reference to member 'setReparsePoint'
330 | }
331 | }
/host/spi-builder-workspace/AMSMB2/Context.swift:358:89: error: cannot infer contextual base in reference to member 'disposition'
356 | case .link:
357 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.symlink], on: self)
358 | try file.setInfo(smb2_file_disposition_info(delete_pending: 1), infoClass: .disposition)
| `- error: cannot infer contextual base in reference to member 'disposition'
359 | default:
360 | preconditionFailure("Not supported file type.")
/host/spi-builder-workspace/AMSMB2/Context.swift:402:13: warning: initialization of immutable value 'startDate' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
400 |
401 | private func wait(_ cb: inout CBData) async throws {
402 | let startDate = Date()
| `- warning: initialization of immutable value 'startDate' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
403 | let source = switch try whichEvents() {
404 | case Int16(POLL_IN):
/host/spi-builder-workspace/AMSMB2/Context.swift:419:23: error: cannot find 'pollfd' in scope
417 | let startDate = Date()
418 | while !cb.isFinished {
419 | var pfd = pollfd()
| `- error: cannot find 'pollfd' in scope
420 | pfd.fd = fileDescriptor.rawValue
421 | pfd.events = try whichEvents()
/host/spi-builder-workspace/AMSMB2/Context.swift:422:31: error: cannot find 'poll' in scope
420 | pfd.fd = fileDescriptor.rawValue
421 | pfd.events = try whichEvents()
422 | if pfd.fd < 0 || (poll(&pfd, 1, 1000) < 0 && errno != .resourceTemporarilyUnavailable) {
| `- error: cannot find 'poll' in scope
423 | throw POSIXError(errno, description: errorString)
424 | }
[108/117] Compiling AMSMB2 Context.swift
/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/Context.swift:327:83: error: type 'FileDescriptor.OpenOptions' has no member 'exclusiveLock'
325 |
326 | func symlink(_ path: String, to destination: String) throws {
327 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.create, .exclusiveLock, .symlink, .sync], on: self)
| `- error: type 'FileDescriptor.OpenOptions' has no member 'exclusiveLock'
328 | let reparse = IOCtl.SymbolicLinkReparse(path: destination, isRelative: true)
329 | try file.fcntl(command: .setReparsePoint, args: reparse)
/host/spi-builder-workspace/AMSMB2/Context.swift:329:34: error: cannot infer contextual base in reference to member 'setReparsePoint'
327 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.create, .exclusiveLock, .symlink, .sync], on: self)
328 | let reparse = IOCtl.SymbolicLinkReparse(path: destination, isRelative: true)
329 | try file.fcntl(command: .setReparsePoint, args: reparse)
| `- error: cannot infer contextual base in reference to member 'setReparsePoint'
330 | }
331 | }
/host/spi-builder-workspace/AMSMB2/Context.swift:358:89: error: cannot infer contextual base in reference to member 'disposition'
356 | case .link:
357 | let file = try SMB2FileHandle(path: path, .readWrite, options: [.symlink], on: self)
358 | try file.setInfo(smb2_file_disposition_info(delete_pending: 1), infoClass: .disposition)
| `- error: cannot infer contextual base in reference to member 'disposition'
359 | default:
360 | preconditionFailure("Not supported file type.")
/host/spi-builder-workspace/AMSMB2/Context.swift:402:13: warning: initialization of immutable value 'startDate' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
400 |
401 | private func wait(_ cb: inout CBData) async throws {
402 | let startDate = Date()
| `- warning: initialization of immutable value 'startDate' was never used; consider replacing with assignment to '_' or removing it [#no-usage]
403 | let source = switch try whichEvents() {
404 | case Int16(POLL_IN):
/host/spi-builder-workspace/AMSMB2/Context.swift:419:23: error: cannot find 'pollfd' in scope
417 | let startDate = Date()
418 | while !cb.isFinished {
419 | var pfd = pollfd()
| `- error: cannot find 'pollfd' in scope
420 | pfd.fd = fileDescriptor.rawValue
421 | pfd.events = try whichEvents()
/host/spi-builder-workspace/AMSMB2/Context.swift:422:31: error: cannot find 'poll' in scope
420 | pfd.fd = fileDescriptor.rawValue
421 | pfd.events = try whichEvents()
422 | if pfd.fd < 0 || (poll(&pfd, 1, 1000) < 0 && errno != .resourceTemporarilyUnavailable) {
| `- error: cannot find 'poll' in scope
423 | throw POSIXError(errno, description: errorString)
424 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[109/117] Compiling AMSMB2 MSRPC.swift
[110/117] Compiling AMSMB2 Fsctl.swift
[111/117] Emitting module AMSMB2
/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: conformance of 'AsyncInputStream<Seq>' to protocol 'Sendable' is already unavailable
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: conformance of 'AsyncInputStream<Seq>' to protocol 'Sendable' is already unavailable
| `- note: 'AsyncInputStream<Seq>' inherits conformance to protocol 'Sendable' from superclass here
106 | private var stream: Seq
107 | private var iterator: Seq.AsyncIterator
[112/117] Compiling AMSMB2 FileHandle.swift
/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 {
[113/117] Compiling AMSMB2 FileMonitoring.swift
/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 {
[114/117] Compiling AMSMB2 Stream.swift
/host/spi-builder-workspace/AMSMB2/Stream.swift:105:61: warning: conformance of 'AsyncInputStream<Seq>' to protocol 'Sendable' is already unavailable
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: conformance of 'AsyncInputStream<Seq>' to protocol 'Sendable' is already unavailable
| `- note: 'AsyncInputStream<Seq>' inherits conformance to protocol 'Sendable' from superclass here
106 | private var stream: Seq
107 | private var iterator: Seq.AsyncIterator
/host/spi-builder-workspace/AMSMB2/Stream.swift:176:44: error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in a '@Sendable' closure [#SendableClosureCaptures]
103 | }
104 |
105 | public class AsyncInputStream<Seq>: InputStream, @unchecked Sendable where Seq: AsyncSequence, Seq.Element: DataProtocol, Seq: SendableMetatype, Seq.Element: SendableMetatype, Seq.AsyncIterator: SendableMetatype {
| `- note: generic class 'AsyncInputStream' does not conform to the 'Sendable' protocol
106 | private var stream: Seq
107 | private var iterator: Seq.AsyncIterator
:
174 | Task { @Sendable in
175 | do {
176 | while let data = try await iterator.next() {
| `- error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in a '@Sendable' closure [#SendableClosureCaptures]
177 | bufferLock.withLock {
178 | if self.buffer == nil {
/host/spi-builder-workspace/AMSMB2/Stream.swift:178:28: error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in an isolated closure
103 | }
104 |
105 | public class AsyncInputStream<Seq>: InputStream, @unchecked Sendable where Seq: AsyncSequence, Seq.Element: DataProtocol, Seq: SendableMetatype, Seq.Element: SendableMetatype, Seq.AsyncIterator: SendableMetatype {
| `- note: generic class 'AsyncInputStream' does not conform to the 'Sendable' protocol
106 | private var stream: Seq
107 | private var iterator: Seq.AsyncIterator
:
176 | while let data = try await iterator.next() {
177 | bufferLock.withLock {
178 | if self.buffer == nil {
| `- error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in an isolated closure
179 | self.buffer = Data(data)
180 | } else {
/host/spi-builder-workspace/AMSMB2/Stream.swift:187:21: error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in an isolated closure
103 | }
104 |
105 | public class AsyncInputStream<Seq>: InputStream, @unchecked Sendable where Seq: AsyncSequence, Seq.Element: DataProtocol, Seq: SendableMetatype, Seq.Element: SendableMetatype, Seq.AsyncIterator: SendableMetatype {
| `- note: generic class 'AsyncInputStream' does not conform to the 'Sendable' protocol
106 | private var stream: Seq
107 | private var iterator: Seq.AsyncIterator
:
185 | } catch {
186 | bufferLock.withLock {
187 | _streamStatus = .error
| `- error: capture of 'self' with non-Sendable type 'AsyncInputStream<Seq>' in an isolated closure
188 | }
189 | }
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
BUILD FAILURE 6.2 android