The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Aoxiang, reference main (8ead0b), with Swift 6.2 for Linux on 29 Oct 2026 02:47:57 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/isaced/Aoxiang.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/isaced/Aoxiang.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:fb5d8fda777a26ddf92a54d8d0a4928674c7f15e70feba2d3a729a0a6d9cf40c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling Aoxiang HTTPResponse.swift
[4/9] Compiling Aoxiang HTTPRequest.swift
[5/9] Compiling Aoxiang HTTPParser.swift
[6/9] Emitting module Aoxiang
[7/9] Compiling Aoxiang HTTPServer.swift
/host/spi-builder-workspace/Sources/Aoxiang/HTTPServer.swift:275:29: warning: result of call to 'wait(timeout:)' is unused [#no-usage]
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 [#no-usage]
276 |         }
277 |     }
[8/9] Compiling Aoxiang HTTPRouter.swift
[9/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())
BUILD FAILURE 6.2 linux