The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Hardware, reference v1.0.1 (ad1632), with Swift 6.1 for Wasm on 28 May 2025 08:07:57 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/elegantchaos/Hardware.git
Reference: v1.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/elegantchaos/Hardware
 * tag               v1.0.1     -> FETCH_HEAD
HEAD is now at ad16325 fixed for Swift 5.0
Cloned https://github.com/elegantchaos/Hardware.git
Revision (git rev-parse @):
ad16325e879052c73c8226399ea177e993059fcf
SUCCESS checkout https://github.com/elegantchaos/Hardware.git at v1.0.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/elegantchaos/Hardware.git
https://github.com/elegantchaos/Hardware.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Hardware",
  "name" : "Hardware",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Hardware",
      "targets" : [
        "Hardware"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HardwareTests",
      "module_type" : "SwiftTarget",
      "name" : "HardwareTests",
      "path" : "Tests/HardwareTests",
      "sources" : [
        "DeviceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Hardware"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Hardware",
      "module_type" : "SwiftTarget",
      "name" : "Hardware",
      "path" : "Sources/Hardware",
      "product_memberships" : [
        "Hardware"
      ],
      "sources" : [
        "Device.swift",
        "EthernetInterface.swift",
        "IOIterator.swift",
        "IOObject.swift",
        "IORegistryEntry.swift",
        "IOService.swift",
        "MacAddress.swift",
        "Platform.swift",
        "System.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 Hardware IOObject.swift
[4/11] Compiling Hardware IORegistryEntry.swift
[5/12] Compiling Hardware IOIterator.swift
[6/12] Compiling Hardware Device.swift
/host/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = Device()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     #if canImport(IOKit)
[7/12] Compiling Hardware EthernetInterface.swift
/host/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = Device()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     #if canImport(IOKit)
[8/12] Emitting module Hardware
/host/spi-builder-workspace/Sources/Hardware/Device.swift:15:23: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 | /// (also incorporates some values from ProcessInfo.processInfo which don't vary per-process)
14 | public struct Device {
15 |     public static var main: Device = Device()
   |                       |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 |     #if canImport(IOKit)
[9/12] Compiling Hardware IOService.swift
[10/12] Compiling Hardware MacAddress.swift
[11/12] Compiling Hardware Platform.swift
/host/spi-builder-workspace/Sources/Hardware/Platform.swift:59:36: error: type 'Platform.Base' has no member 'unknown'
57 |             return Platform(base: .linux, variant: .normal)
58 |         #else
59 |             return Platform(base: .unknown, variant: .normal)
   |                                    `- error: type 'Platform.Base' has no member 'unknown'
60 |         #endif
61 |     }
[12/12] Compiling Hardware System.swift
/host/spi-builder-workspace/Sources/Hardware/System.swift:44:5: error: return from initializer without initializing all stored properties
18 |
19 | public struct System {
20 |     public let name: String
   |                `- note: 'self.name' not initialized
21 |     public let versionString: String
   |                `- note: 'self.versionString' not initialized
22 |     public let fullVersionString: String
23 |     public let version: OperatingSystemVersion
   :
42 |         #endif
43 |
44 |     }
   |     `- error: return from initializer without initializing all stored properties
45 | }
46 |
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 Hardware IOService.swift
[3/10] Compiling Hardware IORegistryEntry.swift
[4/11] Compiling Hardware IOIterator.swift
[5/11] Compiling Hardware IOObject.swift
[6/11] Compiling Hardware Device.swift
[7/11] Compiling Hardware EthernetInterface.swift
[8/11] Emitting module Hardware
[9/11] Compiling Hardware Platform.swift
/host/spi-builder-workspace/Sources/Hardware/Platform.swift:59:36: error: type 'Platform.Base' has no member 'unknown'
57 |             return Platform(base: .linux, variant: .normal)
58 |         #else
59 |             return Platform(base: .unknown, variant: .normal)
   |                                    `- error: type 'Platform.Base' has no member 'unknown'
60 |         #endif
61 |     }
[10/11] Compiling Hardware MacAddress.swift
[11/11] Compiling Hardware System.swift
/host/spi-builder-workspace/Sources/Hardware/System.swift:44:5: error: return from initializer without initializing all stored properties
18 |
19 | public struct System {
20 |     public let name: String
   |                `- note: 'self.name' not initialized
21 |     public let versionString: String
   |                `- note: 'self.versionString' not initialized
22 |     public let fullVersionString: String
23 |     public let version: OperatingSystemVersion
   :
42 |         #endif
43 |
44 |     }
   |     `- error: return from initializer without initializing all stored properties
45 | }
46 |
BUILD FAILURE 6.1 wasm