Build Information
Failed to build BRUtils, reference 1.1.5 (b2ba81
), with Swift 6.1 for Wasm on 27 May 2025 16:42:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Balancingrock/BRUtils.git
Reference: 1.1.5
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/Balancingrock/BRUtils
* tag 1.1.5 -> FETCH_HEAD
HEAD is now at b2ba81e Added license, swift version and platforms
Cloned https://github.com/Balancingrock/BRUtils.git
Revision (git rev-parse @):
b2ba81ea6098d32dd3a59c35b70fd7be72ea6afd
SUCCESS checkout https://github.com/Balancingrock/BRUtils.git at 1.1.5
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Balancingrock/BRUtils.git
https://github.com/Balancingrock/BRUtils.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "BRUtils",
"name" : "BRUtils",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.10"
},
{
"name" : "ios",
"version" : "8.0"
}
],
"products" : [
{
"name" : "BRUtils",
"targets" : [
"BRUtils"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"swift_languages_versions" : [
"4",
"4.2",
"5"
],
"targets" : [
{
"c99name" : "BRUtils",
"module_type" : "SwiftTarget",
"name" : "BRUtils",
"path" : "Sources/BRUtils",
"product_memberships" : [
"BRUtils"
],
"sources" : [
"Array.Extensions.swift",
"Bool.Extensions.swift",
"Data.Extensions.swift",
"Date.Extensions.swift",
"Endianness.swift",
"GlobalFunctions.swift",
"Int.Extensions.swift",
"NSNumber.Extensions.swift",
"TimeRelated.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/11] Compiling BRUtils GlobalFunctions.swift
[4/12] Compiling BRUtils NSNumber.Extensions.swift
[5/12] Compiling BRUtils Date.Extensions.swift
[6/12] Compiling BRUtils Data.Extensions.swift
[7/12] Compiling BRUtils Endianness.swift
/host/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'machineEndianness' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[8/12] Compiling BRUtils Array.Extensions.swift
[9/12] Compiling BRUtils Bool.Extensions.swift
[10/12] Compiling BRUtils Int.Extensions.swift
[11/12] Emitting module BRUtils
/host/spi-builder-workspace/Sources/BRUtils/Endianness.swift:57:12: warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
39 | /// The endianess type
40 |
41 | public enum Endianness {
| `- note: consider making enum 'Endianness' conform to the 'Sendable' protocol
42 |
43 |
:
55 | /// The endianness of the local computer
56 |
57 | public let machineEndianness: Endianness = {
| |- warning: let 'machineEndianness' is not concurrency-safe because non-'Sendable' type 'Endianness' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let 'machineEndianness' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | func test(_ ptr: UnsafePointer<UInt16>) -> Endianness {
59 | let mptr = UnsafeRawPointer(ptr)
[12/12] Compiling BRUtils TimeRelated.swift
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:58:62: error: cannot find 'NSEC_PER_SEC' in scope
56 | init(timeInterval: TimeInterval) {
57 | let sec = Int(timeInterval)
58 | let nsec = Int((timeInterval - Double(sec)) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
59 | self.init(tv_sec: sec, tv_nsec: nsec)
60 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:59:27: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
57 | let sec = Int(timeInterval)
58 | let nsec = Int((timeInterval - Double(sec)) * Double(NSEC_PER_SEC))
59 | self.init(tv_sec: sec, tv_nsec: nsec)
| `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
60 | }
61 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:76:64: error: cannot find 'USEC_PER_SEC' in scope
74 | let usec = Int((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
75 | #else
76 | let usec = Int32((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
| `- error: cannot find 'USEC_PER_SEC' in scope
77 | #endif
78 | self.init(tv_sec: sec, tv_usec: usec)
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:78:27: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
76 | let usec = Int32((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
77 | #endif
78 | self.init(tv_sec: sec, tv_usec: usec)
| `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
79 | }
80 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:91:80: error: cannot find 'NSEC_PER_SEC' in scope
89 |
90 | init(timespec: timespec) {
91 | self.init(Double(timespec.tv_sec) + (Double(timespec.tv_nsec) / Double(NSEC_PER_SEC)))
| `- error: cannot find 'NSEC_PER_SEC' in scope
92 | }
93 |
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:98:78: error: cannot find 'USEC_PER_SEC' in scope
96 |
97 | init(timeval: timeval) {
98 | self.init(Double(timeval.tv_sec) + (Double(timeval.tv_usec) / Double(USEC_PER_SEC)))
| `- error: cannot find 'USEC_PER_SEC' in scope
99 | }
100 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/10] Compiling BRUtils Endianness.swift
[3/11] Compiling BRUtils Int.Extensions.swift
[4/11] Compiling BRUtils NSNumber.Extensions.swift
[5/11] Compiling BRUtils GlobalFunctions.swift
[6/11] Compiling BRUtils Date.Extensions.swift
[7/11] Compiling BRUtils TimeRelated.swift
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:58:62: error: cannot find 'NSEC_PER_SEC' in scope
56 | init(timeInterval: TimeInterval) {
57 | let sec = Int(timeInterval)
58 | let nsec = Int((timeInterval - Double(sec)) * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
59 | self.init(tv_sec: sec, tv_nsec: nsec)
60 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:59:27: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
57 | let sec = Int(timeInterval)
58 | let nsec = Int((timeInterval - Double(sec)) * Double(NSEC_PER_SEC))
59 | self.init(tv_sec: sec, tv_nsec: nsec)
| `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
60 | }
61 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:76:64: error: cannot find 'USEC_PER_SEC' in scope
74 | let usec = Int((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
75 | #else
76 | let usec = Int32((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
| `- error: cannot find 'USEC_PER_SEC' in scope
77 | #endif
78 | self.init(tv_sec: sec, tv_usec: usec)
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:78:27: error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
76 | let usec = Int32((timeInterval - Double(sec)) * Double(USEC_PER_SEC))
77 | #endif
78 | self.init(tv_sec: sec, tv_usec: usec)
| `- error: cannot convert value of type 'Int' to expected argument type 'time_t' (aka 'Int64')
79 | }
80 | }
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:91:80: error: cannot find 'NSEC_PER_SEC' in scope
89 |
90 | init(timespec: timespec) {
91 | self.init(Double(timespec.tv_sec) + (Double(timespec.tv_nsec) / Double(NSEC_PER_SEC)))
| `- error: cannot find 'NSEC_PER_SEC' in scope
92 | }
93 |
/host/spi-builder-workspace/Sources/BRUtils/TimeRelated.swift:98:78: error: cannot find 'USEC_PER_SEC' in scope
96 |
97 | init(timeval: timeval) {
98 | self.init(Double(timeval.tv_sec) + (Double(timeval.tv_usec) / Double(USEC_PER_SEC)))
| `- error: cannot find 'USEC_PER_SEC' in scope
99 | }
100 | }
[8/11] Emitting module BRUtils
[9/11] Compiling BRUtils Data.Extensions.swift
[10/11] Compiling BRUtils Array.Extensions.swift
[11/11] Compiling BRUtils Bool.Extensions.swift
BUILD FAILURE 6.1 wasm