The Swift Package Index logo.Swift Package Index

Build Information

Failed to build MicroExpress with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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:             5.10
Building package at path:  $workDir
https://github.com/helje5/MicroExpress.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/swift-server/http
[1/1874] Fetching http
Fetched https://github.com/swift-server/http from cache (0.32s)
Computing version for https://github.com/swift-server/http
Computed https://github.com/swift-server/http at 0.1.0 (0.44s)
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
[4/10] Compiling CHTTPParser http_parser.c
[6/21] Compiling HTTP PoCSocketConnectionListener.swift
[7/22] Compiling HTTP HTTPVersion.swift
[8/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
        listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
                                                  ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:236:44: note: conflicting access is here
                return Int32(ntohs(addr_in.sin_port))
                                   ~~~~~~~~^~~~~~~~
[9/22] Emitting module HTTP
[10/22] Compiling HTTP HTTPCommon.swift
[11/22] Compiling HTTP HTTPHeaders.swift
[12/22] Compiling HTTP PoCSocketSimpleServer.swift
[13/22] Compiling HTTP HTTPResponse.swift
[14/22] Compiling HTTP HTTPServer.swift
[15/22] Compiling HTTP HTTPStreamingParser.swift
[16/22] Compiling HTTP HTTPMethod.swift
[17/22] Compiling HTTP HTTPRequest.swift
error: fatalError
[0/1] Planning build
Building for debugging...
[0/6] Write swift-version-24593BA9C3E375BF.txt
[2/8] Emitting module HTTP
[3/8] 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
        listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
                                                  ^~~~~~~~
/host/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:236:44: note: conflicting access is here
                return Int32(ntohs(addr_in.sin_port))
                                   ~~~~~~~~^~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2