Build Information
Failed to build MicroExpress, reference 0.0.1 (06f66c
), with Swift 6.1 for Linux on 27 Apr 2025 00:20:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/MicroExpress.git
Reference: 0.0.1
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/helje5/MicroExpress
* tag 0.0.1 -> FETCH_HEAD
HEAD is now at 06f66cf Language tag
Cloned https://github.com/helje5/MicroExpress.git
Revision (git rev-parse @):
06f66cf05a8cd8a1e0dca120d615afbc470bde10
SUCCESS checkout https://github.com/helje5/MicroExpress.git at 0.0.1
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/helje5/MicroExpress.git
https://github.com/helje5/MicroExpress.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "http",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/http"
}
],
"manifest_display_name" : "MicroExpress",
"name" : "MicroExpress",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "MicroExpress",
"targets" : [
"MicroExpress"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MicroHelloServer",
"targets" : [
"MicroHelloServer"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MicroHelloServer",
"module_type" : "SwiftTarget",
"name" : "MicroHelloServer",
"path" : "Sources/MicroHelloServer",
"product_memberships" : [
"MicroHelloServer"
],
"sources" : [
"TodoModel.swift",
"main.swift"
],
"target_dependencies" : [
"MicroExpress"
],
"type" : "executable"
},
{
"c99name" : "MicroExpress",
"module_type" : "SwiftTarget",
"name" : "MicroExpress",
"path" : "Sources/MicroExpress",
"product_dependencies" : [
"HTTP"
],
"product_memberships" : [
"MicroExpress",
"MicroHelloServer"
],
"sources" : [
"CORS.swift",
"Express.swift",
"IncomingMessage.swift",
"Middleware.swift",
"QueryString.swift",
"Router.swift",
"ServerResponse.swift"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/swift-server/http
[1/1874] Fetching http
Fetched https://github.com/swift-server/http from cache (0.83s)
Computing version for https://github.com/swift-server/http
Computed https://github.com/swift-server/http at 0.1.0 (1.30s)
Creating working copy for https://github.com/swift-server/http
Working copy of https://github.com/swift-server/http resolved at 0.1.0
Building for debugging...
[0/10] Write sources
[3/10] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling CHTTPParser http_parser.c
[6/21] Compiling HTTP HTTPCommon.swift
[7/21] Compiling HTTP HTTPHeaders.swift
[8/21] Compiling HTTP HTTPResponse.swift
[9/21] Compiling HTTP HTTPServer.swift
[10/22] Compiling HTTP HTTPVersion.swift
[11/22] Compiling HTTP PoCSocketConnectionListener.swift
[12/22] Compiling HTTP HTTPStreamingParser.swift
[13/22] Emitting module HTTP
[14/22] Compiling HTTP HTTPMethod.swift
[15/22] Compiling HTTP HTTPRequest.swift
[16/22] Compiling HTTP PoCSocket.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:230:51: error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
228 | var addr_in = sockaddr_in()
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
| `- error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
:
234 | }
235 | #if os(Linux)
236 | return Int32(ntohs(addr_in.sin_port))
| `- note: conflicting access is here
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
[17/22] Compiling HTTP PoCSocketSimpleServer.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/6] Write swift-version-24593BA9C3E375BF.txt
[2/17] Compiling HTTP HTTPMethod.swift
[3/17] Compiling HTTP HTTPRequest.swift
[4/18] Compiling HTTP HTTPVersion.swift
[5/18] Compiling HTTP PoCSocketConnectionListener.swift
[6/18] Compiling HTTP PoCSocket.swift
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:230:51: error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
228 | var addr_in = sockaddr_in()
229 |
230 | listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
| `- error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
231 | var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 | if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
:
234 | }
235 | #if os(Linux)
236 | return Int32(ntohs(addr_in.sin_port))
| `- note: conflicting access is here
237 | #else
238 | return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
[7/18] Compiling HTTP PoCSocketSimpleServer.swift
[8/18] Compiling HTTP HTTPCommon.swift
[9/18] Compiling HTTP HTTPHeaders.swift
[10/18] Emitting module HTTP
[11/18] Compiling HTTP HTTPStreamingParser.swift
[12/18] Compiling HTTP HTTPResponse.swift
[13/18] Compiling HTTP HTTPServer.swift
BUILD FAILURE 6.1 linux