The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AMSMB2, reference 4.0.2 (0e8a77), with Swift 6.2 (beta) for Linux on 23 Jun 2025 06:36:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/amosavian/AMSMB2.git
Reference: 4.0.2
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
 * tag               4.0.2      -> FETCH_HEAD
HEAD is now at 0e8a776 chore: Minor refactors
Submodule path 'Dependencies/libsmb2': checked out '2f3ea145cdb5b01e30a817bd5fe843ac6281403e'
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 @):
0e8a77612c6dc8048c4093ed7a00089bb1238102
SUCCESS checkout https://github.com/amosavian/AMSMB2.git at 4.0.2
========================================
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-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-atomics.git
[1/1797] Fetching swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.94s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.87s)
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.0
Building for debugging...
[0/60] Compiling aes_apple.c
[1/60] Compiling usha.c
[2/60] Compiling aes128ccm.c
[3/60] Compiling timestamps.c
[4/60] Compiling unicode.c
[5/60] Compiling sync.c
[6/60] Write swift-version-24593BA9C3E375BF.txt
[7/60] Compiling spnego-wrapper.c
[8/60] Compiling smb2-data-security-descriptor.c
[9/60] Compiling smb2-share-enum.c
[10/60] Compiling smb3-seal.c
[11/60] Compiling smb2-signing.c
[12/60] Compiling smb2-data-reparse-point.c
[13/60] Compiling smb2-cmd-write.c
[14/60] Compiling smb2-cmd-tree-connect.c
[15/60] Compiling socket.c
[16/60] Compiling smb2-data-filesystem-info.c
[17/60] Compiling smb2-cmd-tree-disconnect.c
[18/60] Compiling smb2-cmd-read.c
[18/60] Compiling smb2-cmd-set-info.c
[20/60] Compiling smb2-data-file-info.c
[21/60] Compiling smb2-cmd-session-setup.c
[22/60] Compiling smb2-cmd-query-info.c
[23/60] Compiling smb2-cmd-logoff.c
[24/60] Compiling smb2-cmd-oplock-break.c
[25/60] Compiling smb2-cmd-lock.c
[26/60] Compiling smb2-cmd-notify-change.c
[27/60] Compiling smb2-cmd-query-directory.c
[28/60] Compiling smb2-cmd-negotiate.c
[29/60] Compiling smb2-cmd-echo.c
[30/60] Compiling smb2-cmd-ioctl.c
[31/60] Compiling smb2-cmd-flush.c
[32/60] Compiling smb2-cmd-create.c
[33/60] Compiling smb2-cmd-error.c
[34/60] Compiling sha384-512.c
[35/60] Compiling sha1.c
[35/60] Compiling sha224-256.c
[37/60] Compiling ntlmssp.c
[38/60] Compiling smb2-cmd-close.c
[39/60] Compiling md5.c
[40/60] Compiling krb5-wrapper.c
[41/60] Compiling md4c.c
[42/60] Compiling hmac-md5.c
[43/60] Compiling hmac.c
[44/60] Compiling compat.c
[45/60] Compiling errors.c
[46/60] Compiling asn1-ber.c
[47/60] Compiling pdu.c
[47/60] Compiling dcerpc.c
[49/60] Write sources
[50/60] Compiling dcerpc-srvsvc.c
[51/60] Compiling aes.c
[52/60] Compiling init.c
[53/60] Compiling alloc.c
[54/60] Compiling dcerpc-lsa.c
[55/60] Compiling aes_reference.c
[56/60] Compiling libsmb2.c
[58/71] Emitting module AMSMB2
/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 {
    |              |                                              `- 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
[59/72] 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 {
    |              |                                              `- 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:38: warning: capture of non-Sendable type 'Seq.Element.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                      `- warning: capture of non-Sendable type 'Seq.Element.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/host/spi-builder-workspace/AMSMB2/Stream.swift:176:44: warning: capture of non-Sendable type 'Seq.AsyncIterator.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- warning: capture of non-Sendable type 'Seq.AsyncIterator.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/host/spi-builder-workspace/AMSMB2/Stream.swift:176:44: warning: capture of non-Sendable type 'Seq.Type' in an isolated closure
174 |         Task {
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- warning: capture of non-Sendable type 'Seq.Type' in an isolated closure
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
/host/spi-builder-workspace/AMSMB2/Stream.swift:173:18: warning: capture of non-Sendable type 'Seq.Type' in an isolated closure
171 |     }
172 |
173 |     private func prefetchData() {
    |                  `- warning: capture of non-Sendable type 'Seq.Type' in an isolated closure
174 |         Task {
175 |             do {
/host/spi-builder-workspace/AMSMB2/Stream.swift:174:9: error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
172 |
173 |     private func prefetchData() {
174 |         Task {
    |         `- error: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure
175 |             do {
176 |                 while let data = try await iterator.next() {
    |                                            `- note: closure captures 'self' which is accessible to code in the current task
177 |                     bufferLock.withLock {
178 |                         if self.buffer == nil {
[60/72] Compiling AMSMB2 ObjCCompat.swift
[61/72] Compiling AMSMB2 Parsers.swift
[62/72] Compiling AMSMB2 MSRPC.swift
[63/72] Compiling AMSMB2 AMSMB2.swift
[64/72] Compiling AMSMB2 Context.swift
[65/72] Compiling AMSMB2 Directory.swift
/host/spi-builder-workspace/AMSMB2/Extensions.swift:228:51: warning: capture of non-Sendable type 'T.Type' in an isolated closure
226 |
227 |     func scanInt<T: FixedWidthInteger>(offset: Int, as _: T.Type) -> Int? {
228 |         scanValue(offset: offset, as: T.self).map(Int.init)
    |                                                   `- warning: capture of non-Sendable type 'T.Type' in an isolated closure
229 |     }
230 | }
[66/72] Compiling AMSMB2 Extensions.swift
/host/spi-builder-workspace/AMSMB2/Extensions.swift:228:51: warning: capture of non-Sendable type 'T.Type' in an isolated closure
226 |
227 |     func scanInt<T: FixedWidthInteger>(offset: Int, as _: T.Type) -> Int? {
228 |         scanValue(offset: offset, as: T.self).map(Int.init)
    |                                                   `- warning: capture of non-Sendable type 'T.Type' in an isolated closure
229 |     }
230 | }
[67/72] Compiling AMSMB2 FileHandle.swift
[68/72] Compiling AMSMB2 FileMonitoring.swift
[69/72] Compiling AMSMB2 Fsctl.swift
BUILD FAILURE 6.2 linux