Build Information
Failed to build Aoxiang, reference 1.1.0 (8ead0b), with Swift 6.1 for Linux on 29 Oct 2026 06:53:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/Aoxiang.git
Reference: 1.1.0
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/isaced/Aoxiang
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at 8ead0b7 test: keep the shared fetch helper out of the connection pool
Cloned https://github.com/isaced/Aoxiang.git
Revision (git rev-parse @):
8ead0b7ad5c5a64527373fd2c33da047d8555375
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/isaced/Aoxiang.git at 1.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/isaced/Aoxiang.git
https://github.com/isaced/Aoxiang.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b6bfb4c5da2c5a0e111d7eb0c087cb4f5887cce9a34b7779faa557952c747cfc
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Aoxiang Socket.swift
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:60:29: error: cannot assign value of type '(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)' to type '(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)'
58 | serveraddr.sin_port = port.bigEndian
59 | serveraddr.sin_addr = in_addr(s_addr: in_addr_t(0))
60 | serveraddr.sin_zero = (zero, zero, zero, zero, zero, zero, zero, zero)
| `- error: cannot assign value of type '(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)' to type '(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)'
61 | self.sock = socket(internetLayerProtocol, Int32(transportLayerType), 0)
62 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:61:51: error: initializer 'init(_:)' requires that '__socket_type' conform to 'BinaryFloatingPoint'
59 | serveraddr.sin_addr = in_addr(s_addr: in_addr_t(0))
60 | serveraddr.sin_zero = (zero, zero, zero, zero, zero, zero, zero, zero)
61 | self.sock = socket(internetLayerProtocol, Int32(transportLayerType), 0)
| `- error: initializer 'init(_:)' requires that '__socket_type' conform to 'BinaryFloatingPoint'
62 |
63 | // reuse socket address (for fix "Address already in use")
Swift.FixedWidthInteger.init:2:19: note: where 'T' = '__socket_type'
1 | protocol FixedWidthInteger {
2 | @inlinable public init<T>(_ source: T) where T : BinaryFloatingPoint}
| `- note: where 'T' = '__socket_type'
3 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:28: error: cannot find 'Darwin' in scope
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: cannot find 'Darwin' in scope
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:48: error: 'nil' requires a contextual type
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: 'nil' requires a contextual type
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:53: error: 'nil' requires a contextual type
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: 'nil' requires a contextual type
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:103:22: error: cannot convert value of type 'Int32' to expected argument type '__suseconds_t' (aka 'Int')
101 | var timeout = timeval(
102 | tv_sec: Int(seconds),
103 | tv_usec: Int32((seconds - seconds.rounded(.down)) * 1_000_000)
| `- error: cannot convert value of type 'Int32' to expected argument type '__suseconds_t' (aka 'Int')
104 | )
105 | setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, socklen_t(MemoryLayout<timeval>.size))
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:113:9: error: cannot find 'Darwin' in scope
111 | guard !closed else { return }
112 | closed = true
113 | Darwin.close(sock)
| `- error: cannot find 'Darwin' in scope
114 | }
115 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:140:26: error: cannot find 'Darwin' in scope
138 | var sent = 0
139 | while sent < length {
140 | let result = Darwin.write(sock, pointer + sent, Int(length - sent))
| `- error: cannot find 'Darwin' in scope
141 | if result <= 0 {
142 | throw SocketError.writeFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:156:21: error: cannot find 'Darwin' in scope
154 | open func read() throws -> UInt8 {
155 | var byte: UInt8 = 0
156 | let count = Darwin.read(sock, &byte, 1)
| `- error: cannot find 'Darwin' in scope
157 | if count == 0 {
158 | throw SocketError.connectionClosed
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:192:29: error: cannot find 'Darwin' in scope
190 | // Compute next read length in bytes. The bytes read is never more than kBufferLength at once.
191 | let readLength = offset + Socket.kBufferLength < length ? Socket.kBufferLength : length - offset
192 | let bytesRead = Darwin.read(sock, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
193 | guard bytesRead > 0 else {
194 | throw SocketError.recvFailed(errorDescription())
[4/9] Compiling Aoxiang HTTPServer.swift
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:143:36: warning: capture of 'self' with non-sendable type 'HTTPServer?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | /// }
50 | /// try server.start(3000)
51 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
52 | /// A butil-in router middleware
53 | let router = HTTPRouter()
:
141 | defer { acceptLoopDone.signal() }
142 |
143 | while let strongSelf = self, strongSelf.socket === listeningSocket {
| `- warning: capture of 'self' with non-sendable type 'HTTPServer?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 | do {
145 | let clientSocket = try listeningSocket.accept()
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:143:64: warning: capture of 'listeningSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
141 | defer { acceptLoopDone.signal() }
142 |
143 | while let strongSelf = self, strongSelf.socket === listeningSocket {
| `- warning: capture of 'listeningSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 | do {
145 | let clientSocket = try listeningSocket.accept()
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:26:7: note: class 'Socket' does not conform to the 'Sendable' protocol
24 | ///
25 | /// This class is used to create a socket, bind it to a port, listen for incoming connections, and accept them.
26 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
27 | let sock: Int32
28 |
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:162:29: warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | /// }
50 | /// try server.start(3000)
51 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
52 | /// A butil-in router middleware
53 | let router = HTTPRouter()
:
160 | }
161 | strongSelf.queue.async {
162 | strongSelf.sockets.insert(clientSocket)
| `- warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 | }
164 |
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:162:55: warning: capture of 'clientSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
160 | }
161 | strongSelf.queue.async {
162 | strongSelf.sockets.insert(clientSocket)
| `- warning: capture of 'clientSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 | }
164 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:26:7: note: class 'Socket' does not conform to the 'Sendable' protocol
24 | ///
25 | /// This class is used to create a socket, bind it to a port, listen for incoming connections, and accept them.
26 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
27 | let sock: Int32
28 |
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:168:29: warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
49 | /// }
50 | /// try server.start(3000)
51 | open class HTTPServer {
| `- note: class 'HTTPServer' does not conform to the 'Sendable' protocol
52 | /// A butil-in router middleware
53 | let router = HTTPRouter()
:
166 |
167 | strongSelf.queue.async {
168 | strongSelf.sockets.remove(clientSocket)
| `- warning: capture of 'strongSelf' with non-sendable type 'HTTPServer' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | }
170 | }
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:168:55: warning: capture of 'clientSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
166 |
167 | strongSelf.queue.async {
168 | strongSelf.sockets.remove(clientSocket)
| `- warning: capture of 'clientSocket' with non-sendable type 'Socket' in a '@Sendable' closure; this is an error in the Swift 6 language mode
169 | }
170 | }
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:26:7: note: class 'Socket' does not conform to the 'Sendable' protocol
24 | ///
25 | /// This class is used to create a socket, bind it to a port, listen for incoming connections, and accept them.
26 | class Socket: Hashable, Equatable {
| `- note: class 'Socket' does not conform to the 'Sendable' protocol
27 | let sock: Int32
28 |
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:275:29: warning: result of call to 'wait(timeout:)' is unused
273 | // loop could still accept on it.
274 | if waitForAcceptLoop {
275 | acceptLoopDone?.wait(timeout: .now() + 2)
| `- warning: result of call to 'wait(timeout:)' is unused
276 | }
277 | }
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:156:21: warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
154 | clientSocket.setReadTimeout(strongSelf.readTimeout)
155 | }
156 | Task(priority: .background) { [weak self] in
| |- warning: sending value of non-Sendable type '() async -> ()' risks causing data races; this is an error in the Swift 6 language mode
| |- note: Passing value of non-Sendable type '() async -> ()' as a 'sending' argument risks causing races in between local and caller code
| `- note: access can happen concurrently
157 | guard let strongSelf = self else {
158 | clientSocket.close()
[5/9] Compiling Aoxiang HTTPRouter.swift
[6/9] Compiling Aoxiang HTTPRequest.swift
[7/9] Emitting module Aoxiang
[8/9] Compiling Aoxiang HTTPResponse.swift
[9/9] Compiling Aoxiang HTTPParser.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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:linux-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:b6bfb4c5da2c5a0e111d7eb0c087cb4f5887cce9a34b7779faa557952c747cfc
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Emitting module Aoxiang
[3/8] Compiling Aoxiang HTTPRequest.swift
[4/8] Compiling Aoxiang HTTPResponse.swift
[5/8] Compiling Aoxiang HTTPRouter.swift
[6/8] Compiling Aoxiang HTTPParser.swift
[7/8] Compiling Aoxiang Socket.swift
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:60:29: error: cannot assign value of type '(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)' to type '(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)'
58 | serveraddr.sin_port = port.bigEndian
59 | serveraddr.sin_addr = in_addr(s_addr: in_addr_t(0))
60 | serveraddr.sin_zero = (zero, zero, zero, zero, zero, zero, zero, zero)
| `- error: cannot assign value of type '(Int8, Int8, Int8, Int8, Int8, Int8, Int8, Int8)' to type '(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)'
61 | self.sock = socket(internetLayerProtocol, Int32(transportLayerType), 0)
62 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:61:51: error: initializer 'init(_:)' requires that '__socket_type' conform to 'BinaryFloatingPoint'
59 | serveraddr.sin_addr = in_addr(s_addr: in_addr_t(0))
60 | serveraddr.sin_zero = (zero, zero, zero, zero, zero, zero, zero, zero)
61 | self.sock = socket(internetLayerProtocol, Int32(transportLayerType), 0)
| `- error: initializer 'init(_:)' requires that '__socket_type' conform to 'BinaryFloatingPoint'
62 |
63 | // reuse socket address (for fix "Address already in use")
Swift.FixedWidthInteger.init:2:19: note: where 'T' = '__socket_type'
1 | protocol FixedWidthInteger {
2 | @inlinable public init<T>(_ source: T) where T : BinaryFloatingPoint}
| `- note: where 'T' = '__socket_type'
3 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:28: error: cannot find 'Darwin' in scope
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: cannot find 'Darwin' in scope
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:48: error: 'nil' requires a contextual type
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: 'nil' requires a contextual type
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:91:53: error: 'nil' requires a contextual type
89 |
90 | public func accept() throws -> Socket {
91 | let clientSocket = Darwin.accept(sock, nil, nil)
| `- error: 'nil' requires a contextual type
92 | if clientSocket == -1 {
93 | throw SocketError.acceptFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:103:22: error: cannot convert value of type 'Int32' to expected argument type '__suseconds_t' (aka 'Int')
101 | var timeout = timeval(
102 | tv_sec: Int(seconds),
103 | tv_usec: Int32((seconds - seconds.rounded(.down)) * 1_000_000)
| `- error: cannot convert value of type 'Int32' to expected argument type '__suseconds_t' (aka 'Int')
104 | )
105 | setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, socklen_t(MemoryLayout<timeval>.size))
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:113:9: error: cannot find 'Darwin' in scope
111 | guard !closed else { return }
112 | closed = true
113 | Darwin.close(sock)
| `- error: cannot find 'Darwin' in scope
114 | }
115 |
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:140:26: error: cannot find 'Darwin' in scope
138 | var sent = 0
139 | while sent < length {
140 | let result = Darwin.write(sock, pointer + sent, Int(length - sent))
| `- error: cannot find 'Darwin' in scope
141 | if result <= 0 {
142 | throw SocketError.writeFailed(errorDescription())
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:156:21: error: cannot find 'Darwin' in scope
154 | open func read() throws -> UInt8 {
155 | var byte: UInt8 = 0
156 | let count = Darwin.read(sock, &byte, 1)
| `- error: cannot find 'Darwin' in scope
157 | if count == 0 {
158 | throw SocketError.connectionClosed
/host/spi-builder-workspace/Sources/Aoxiang/Socket.swift:192:29: error: cannot find 'Darwin' in scope
190 | // Compute next read length in bytes. The bytes read is never more than kBufferLength at once.
191 | let readLength = offset + Socket.kBufferLength < length ? Socket.kBufferLength : length - offset
192 | let bytesRead = Darwin.read(sock, baseAddress + offset, readLength)
| `- error: cannot find 'Darwin' in scope
193 | guard bytesRead > 0 else {
194 | throw SocketError.recvFailed(errorDescription())
[8/8] Compiling Aoxiang HTTPServer.swift
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:275:29: warning: result of call to 'wait(timeout:)' is unused
273 | // loop could still accept on it.
274 | if waitForAcceptLoop {
275 | acceptLoopDone?.wait(timeout: .now() + 2)
| `- warning: result of call to 'wait(timeout:)' is unused
276 | }
277 | }
BUILD FAILURE 6.1 linux