The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build ImGui, reference master (dbf41b), with Swift 6.0 for Linux on 30 Nov 2024 10:46:06 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.0-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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/forkercat/SwiftImGui.git
Reference: master
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/forkercat/SwiftImGui
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at dbf41bd Remove unused submodule
Submodule path '3rdparty/cimgui': checked out '6a98f4bbedec967d02f3395f319feceec311ecb2'
Submodule path '3rdparty/cimgui/imgui': checked out '64aab8480a5643cec1880af17931963a90a8f990'
Submodule '3rdparty/cimgui' (https://github.com/cimgui/cimgui.git) registered for path '3rdparty/cimgui'
Cloning into '/host/spi-builder-workspace/3rdparty/cimgui'...
Submodule 'imgui' (https://github.com/ocornut/imgui.git) registered for path '3rdparty/cimgui/imgui'
Cloning into '/host/spi-builder-workspace/3rdparty/cimgui/imgui'...
Cloned https://github.com/forkercat/SwiftImGui.git
Revision (git rev-parse @):
dbf41bd66b45c701635e6265340b95e71f958521
SUCCESS checkout https://github.com/forkercat/SwiftImGui.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/forkercat/SwiftImGui.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/18] Write sources
[2/18] Copying definitions.json
[3/18] Write sources
[4/18] Compiling imgui_tables.cpp
[5/18] Compiling imgui_demo.cpp
[6/18] Compiling imgui_draw.cpp
[7/18] Compiling CImGui cimgui.cpp
[8/18] Compiling imgui.cpp
[9/18] Compiling imgui_widgets.cpp
[9/18] Write swift-version-24593BA9C3E375BF.txt
[12/32] Compiling AutoWrapper SwiftKeywords.swift
[13/33] Compiling ImGui ImGui+Definitions.swift
[14/33] Compiling ImGui Helper.swift
[15/33] Emitting module ImGui
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:10:1: warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
 8 | import CImGui
 9 |
10 | extension ImVec1: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: ImVec1, rhs: ImVec1) -> Bool {
12 |         lhs.x == rhs.x
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:16:1: warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
14 | }
15 |
16 | extension ImVec2: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: ImVec2, rhs: ImVec2) -> Bool {
18 |         lhs.x == rhs.x &&
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:23:1: warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
21 | }
22 |
23 | extension ImVec4: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
24 |     public static func == (lhs: ImVec4, rhs: ImVec4) -> Bool {
25 |         lhs.x == rhs.x &&
[16/33] Compiling ImGui Export.swift
[17/33] Compiling ImGui ImVec+Extensions.swift
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:10:1: warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
 8 | import CImGui
 9 |
10 | extension ImVec1: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec1' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: ImVec1, rhs: ImVec1) -> Bool {
12 |         lhs.x == rhs.x
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:16:1: warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
14 | }
15 |
16 | extension ImVec2: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec2' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: ImVec2, rhs: ImVec2) -> Bool {
18 |         lhs.x == rhs.x &&
/host/spi-builder-workspace/Sources/ImGui/ImVec+Extensions.swift:23:1: warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
21 | }
22 |
23 | extension ImVec4: Equatable {
   | |- warning: extension declares a conformance of imported type 'ImVec4' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'CImGui' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
24 |     public static func == (lhs: ImVec4, rhs: ImVec4) -> Bool {
25 |         lhs.x == rhs.x &&
[18/34] Compiling AutoWrapper Exceptions.swift
/host/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:59:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 |     /// causes "Use of undeclared type '...'" compiler error.
59 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
61 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
69 | }
70 |
71 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
72 |     public let name: String
73 |     public let typealiasType: String
[19/34] Compiling AutoWrapper Definitions.swift
/host/spi-builder-workspace/Sources/AutoWrapper/Definitions.swift:38:16: warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
 36 |     public let argsT: [ArgsT]
 37 |     public let ret: DataType?
 38 |     public let templated = false
    |                |- warning: immutable property will not be decoded because it is declared with an initial value which cannot be overwritten
    |                |- note: set the initial value via the initializer or explicitly define a CodingKeys enum without a 'templated' case to silence this warning
    |                `- note: make the property mutable instead
 39 |     public let namespace: String?
 40 |
[20/34] Compiling AutoWrapper FunctionBodyRenderer.swift
[21/34] Compiling AutoWrapper DataType.swift
/host/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:59:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 |     /// causes "Use of undeclared type '...'" compiler error.
59 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
61 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
69 | }
70 |
71 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
72 |     public let name: String
73 |     public let typealiasType: String
[22/34] Wrapping AST for ImGui for debugging
[24/36] Compiling DemoMinimal main.swift
[25/36] Emitting module DemoMinimal
[26/37] Wrapping AST for DemoMinimal for debugging
[27/37] Write Objects.LinkFileList
error: link command failed with exit code 1 (use -v to see invocation)
Sources/CImGui/./imgui/imgui_internal.h:369: error: undefined reference to 'powf'
Sources/CImGui/./imgui/imgui_internal.h:370: error: undefined reference to 'pow'
Sources/CImGui/./imgui/imgui_internal.h:371: error: undefined reference to 'logf'
Sources/CImGui/./imgui/imgui_internal.h:372: error: undefined reference to 'log'
Sources/CImGui/./imgui/imgui_internal.h:397: error: undefined reference to 'sqrtf'
Sources/CImGui/imgui/imgui.cpp:1839: error: undefined reference to 'fmodf'
Sources/CImGui/imgui/imgui_demo.cpp:430: error: undefined reference to 'fmodf'
Sources/CImGui/imgui/imgui_demo.cpp:7342: error: undefined reference to 'fmodf'
Sources/CImGui/imgui/imgui_demo.cpp:7344: error: undefined reference to 'fmodf'
Sources/CImGui/imgui/imgui_demo.cpp:6071: error: undefined reference to 'floorf'
Sources/CImGui/imgui/imgui_demo.cpp:1203: error: undefined reference to 'cosf'
Sources/CImGui/imgui/imgui_demo.cpp:1203: error: undefined reference to 'sinf'
Sources/CImGui/imgui/imgui_demo.cpp:1576: error: undefined reference to 'cosf'
Sources/CImGui/imgui/imgui_demo.cpp:2891: error: undefined reference to 'sinf'
Sources/CImGui/imgui/imgui_demo.cpp:5781: error: undefined reference to 'sqrtf'
Sources/CImGui/imgui/imgui_demo.cpp:1600: error: undefined reference to 'sinf'
Sources/CImGui/imgui/imgui_draw.cpp:375: error: undefined reference to 'cosf'
Sources/CImGui/imgui/imgui_draw.cpp:375: error: undefined reference to 'sinf'
Sources/CImGui/imgui/imgui_draw.cpp:377: error: undefined reference to 'cosf'
Sources/CImGui/imgui/imgui_draw.cpp:390: error: undefined reference to 'acosf'
Sources/CImGui/imgui/imgui_draw.cpp:390: error: undefined reference to 'ceilf'
Sources/CImGui/imgui/imgui_draw.cpp:556: error: undefined reference to 'acosf'
Sources/CImGui/imgui/imgui_draw.cpp:556: error: undefined reference to 'ceilf'
Sources/CImGui/imgui/imgui_draw.cpp:740: error: undefined reference to 'sqrtf'
Sources/CImGui/imgui/imgui_draw.cpp:933: error: undefined reference to 'sqrtf'
Sources/CImGui/imgui/imgui_draw.cpp:1163: error: undefined reference to 'ceilf'
Sources/CImGui/imgui/imgui_draw.cpp:1184: error: undefined reference to 'ceilf'
Sources/CImGui/imgui/imgui_draw.cpp:3782: error: undefined reference to 'acosf'
Sources/CImGui/imgui/imstb_truetype.h:2640: error: undefined reference to 'floorf'
Sources/CImGui/imgui/imstb_truetype.h:2641: error: undefined reference to 'floorf'
Sources/CImGui/imgui/imstb_truetype.h:4199: error: undefined reference to 'floorf'
Sources/CImGui/imgui/imgui_widgets.cpp:5033: error: undefined reference to 'atan2f'
Sources/CImGui/imgui/imgui_internal.h:369: error: undefined reference to 'powf'
Sources/CImGui/imgui/imgui_internal.h:371: error: undefined reference to 'logf'
Sources/CImGui/imgui/imgui_internal.h:372: error: undefined reference to 'log'
Sources/CImGui/imgui/imgui_internal.h:370: error: undefined reference to 'pow'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[28/37] Linking DemoMinimal
[29/37] Emitting module AutoWrapper
/host/spi-builder-workspace/Sources/AutoWrapper/Exceptions.swift:59:23: warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 |     /// causes "Use of undeclared type '...'" compiler error.
59 |     public static let undeclardTypes: [String: Declaration] = [
   |                       |- warning: static property 'undeclardTypes' is not concurrency-safe because non-'Sendable' type '[String : Declaration]' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'undeclardTypes' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 |         "ImBitArray": Declaration(name: "ImBitArray", typealiasType: "OpaquePointer"),
61 |         "ImChunkStream": Declaration(name: "ImChunkStream", typealiasType: "OpaquePointer"),
   :
69 | }
70 |
71 | public struct Declaration {
   |               `- note: consider making struct 'Declaration' conform to the 'Sendable' protocol
72 |     public let name: String
73 |     public let typealiasType: String
BUILD FAILURE 6.0 linux