The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AMSMB2, reference master (90737c), with Swift 6.2 for Linux on 24 Jun 2026 20:22:02 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build 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:         linux
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-53886770-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:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:c1e64916691157aa211c844e845a45f54e1288d5927bb1481ff28ec0cfa5960d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1868] Fetching swift-atomics
[1869/7761] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.56s)
Fetched https://github.com/apple/swift-system.git from cache (0.57s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (0.73s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.7.2 (0.19s)
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
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...
[0/63] Compiling compat.c
[1/63] Compiling hmac-md5.c
[2/63] Compiling usha.c
[3/63] Compiling smb2-data-security-descriptor.c
[4/63] Compiling errors.c
[5/63] Compiling dcerpc-srvsvc.c
[6/63] Compiling dcerpc-lsa.c
[6/63] Compiling unicode.c
[8/63] Compiling timestamps.c
[9/63] Compiling dcerpc.c
[10/63] Write swift-version-24593BA9C3E375BF.txt
[11/63] Compiling smb3-seal.c
[11/63] Compiling sync.c
[11/63] Compiling spnego-wrapper.c
[14/63] Compiling smb2-signing.c
[15/63] Compiling smb2-data-reparse-point.c
[16/63] Compiling smb2-share-enum.c
[17/63] Compiling smb2-data-filesystem-info.c
[18/63] Compiling socket.c
[19/63] Compiling smb2-cmd-write.c
[20/63] Compiling smb2-cmd-set-info.c
[21/63] Compiling smb2-data-file-info.c
[22/63] Compiling smb2-cmd-session-setup.c
[23/63] Compiling smb2-cmd-tree-disconnect.c
[24/63] Compiling smb2-cmd-read.c
[25/63] Compiling smb2-cmd-query-directory.c
[26/63] Compiling smb2-cmd-tree-connect.c
[27/63] Compiling smb2-cmd-query-info.c
[28/63] Compiling smb2-cmd-oplock-break.c
[29/63] Compiling smb2-cmd-notify-change.c
[30/63] Compiling smb2-cmd-negotiate.c
[31/63] Compiling smb2-cmd-logoff.c
[32/63] Compiling smb2-cmd-lock.c
[33/63] Compiling smb2-cmd-flush.c
[34/63] Compiling smb2-cmd-ioctl.c
[35/63] Compiling smb2-cmd-error.c
[36/63] Compiling smb2-cmd-echo.c
[37/63] Compiling sha1.c
[38/63] Compiling sha224-256.c
[39/63] Compiling smb2-cmd-create.c
[39/63] Compiling sha384-512.c
[41/63] Compiling smb2-cmd-close.c
[42/63] Compiling krb5-wrapper.c
[43/63] Compiling md5.c
[44/63] Compiling md4c.c
[45/63] Compiling hmac.c
[46/63] Compiling pdu.c
[47/63] Compiling aes_apple.c
[48/63] Compiling aes_reference.c
[48/63] Compiling alloc.c
[50/63] Write sources
[52/63] Compiling ntlmssp.c
[53/63] Compiling asn1-ber.c
[53/63] Compiling init.c
[55/63] Compiling aes.c
[56/63] Compiling aes128ccm.c
[57/63] Compiling CSystem shims.c
[58/63] Compiling libsmb2.c
[60/99] Emitting module SystemPackage
[61/104] Compiling SystemPackage SystemString.swift
[62/104] Compiling SystemPackage Util+StringArray.swift
[63/104] Compiling SystemPackage Util.swift
[64/104] Compiling SystemPackage UtilConsumers.swift
[65/104] Compiling SystemPackage WinSDK+Overlay.swift
[66/104] Compiling SystemPackage FilePath.swift
[67/104] Compiling SystemPackage FilePathComponentView.swift
[68/104] Compiling SystemPackage FilePathComponents.swift
[69/104] Compiling SystemPackage FilePathParsing.swift
[70/104] Compiling SystemPackage FilePathString.swift
[71/104] Compiling SystemPackage FilePermissions.swift
[72/104] Compiling SystemPackage FileFlags.swift
[73/104] Compiling SystemPackage FileMode.swift
[74/104] Compiling SystemPackage FileType.swift
[75/104] Compiling SystemPackage Identifiers.swift
[76/104] Compiling SystemPackage Errno.swift
[77/104] Compiling SystemPackage ErrnoWindows.swift
[78/104] Compiling SystemPackage FileDescriptor.swift
[79/104] Compiling SystemPackage FileHelpers.swift
[80/104] Compiling SystemPackage FileOperations.swift
[81/104] Compiling SystemPackage Backcompat.swift
[82/104] Compiling SystemPackage CInterop.swift
[83/104] Compiling SystemPackage Constants.swift
[84/104] Compiling SystemPackage Exports.swift
[85/104] Compiling SystemPackage Mocking.swift
[86/104] Compiling SystemPackage RawBuffer.swift
[87/104] Compiling SystemPackage Syscalls.swift
[88/104] Compiling SystemPackage WindowsSyscallAdapters.swift
[89/104] Compiling SystemPackage MachPort.swift
[90/104] Compiling SystemPackage PlatformString.swift
[91/104] Compiling SystemPackage FilePathSyntax.swift
[92/104] Compiling SystemPackage FilePathTemp.swift
[93/104] Compiling SystemPackage FilePathTempPosix.swift
[94/104] Compiling SystemPackage FilePathTempWindows.swift
[95/104] Compiling SystemPackage FilePathWindows.swift
[96/104] Compiling SystemPackage Stat.swift
[97/104] Compiling SystemPackage IOCompletion.swift
[98/104] Compiling SystemPackage IORequest.swift
[99/104] Compiling SystemPackage IORing.swift
[100/104] Compiling SystemPackage RawIORequest.swift
[101/105] Wrapping AST for SystemPackage for debugging
[103/116] Compiling AMSMB2 Parsers.swift
[104/116] Compiling AMSMB2 ObjCCompat.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[105/117] Compiling AMSMB2 Directory.swift
[106/117] Compiling AMSMB2 Extensions.swift
[107/117] Emitting module AMSMB2
/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: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
[108/117] Compiling AMSMB2 MSRPC.swift
[109/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>
[110/117] Compiling AMSMB2 Fsctl.swift
[111/117] Compiling AMSMB2 FileHandle.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/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: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 {
[112/117] Compiling AMSMB2 FileMonitoring.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/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: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 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):
[114/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):
BUILD FAILURE 6.2 linux