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 PeripheryKit, reference main (a02676), with Swift 6.1 for macOS (SPM) on 29 Apr 2025 01:06:30 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CmST0us/PeripheryKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CmST0us/PeripheryKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a02676d package: remote sysroot copy plugin package: add static and shared product target Cperiphery: bump to 1.0.0 version
Cloned https://github.com/CmST0us/PeripheryKit.git
Revision (git rev-parse @):
a02676dd096523ec792fab3574ae490b421f0364
SUCCESS checkout https://github.com/CmST0us/PeripheryKit.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "peripherykit",
      "name": "PeripheryKit",
      "url": "https://github.com/CmST0us/PeripheryKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PeripheryKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CmST0us/PeripheryKit.git
[1/163] Fetching peripherykit
Fetched https://github.com/CmST0us/PeripheryKit.git from cache (0.72s)
Creating working copy for https://github.com/CmST0us/PeripheryKit.git
Working copy of https://github.com/CmST0us/PeripheryKit.git resolved at main (a02676d)
warning: '.resolve-product-dependencies': dependency 'peripherykit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/CmST0us/PeripheryKit.git
https://github.com/CmST0us/PeripheryKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PeripheryKit",
  "name" : "PeripheryKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PeripheryKit_static",
      "targets" : [
        "PeripheryKit"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "PeripheryKit_shared",
      "targets" : [
        "PeripheryKit"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "pio",
      "targets" : [
        "pio"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "pio",
      "module_type" : "SwiftTarget",
      "name" : "pio",
      "path" : "Sources/pio",
      "product_memberships" : [
        "pio"
      ],
      "sources" : [
        "pio.swift"
      ],
      "target_dependencies" : [
        "PeripheryKit"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PeripheryKitTests",
      "module_type" : "SwiftTarget",
      "name" : "PeripheryKitTests",
      "path" : "Tests/PeripheryKitTests",
      "sources" : [
        "PeripheryKitTests.swift"
      ],
      "target_dependencies" : [
        "PeripheryKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PeripheryKit",
      "module_type" : "SwiftTarget",
      "name" : "PeripheryKit",
      "path" : "Sources/PeripheryKit",
      "product_memberships" : [
        "PeripheryKit_static",
        "PeripheryKit_shared",
        "pio"
      ],
      "sources" : [
        "Button.swift",
        "Buzzer.swift",
        "Delay.swift",
        "GPIO.swift",
        "GPIOEventDispatcher.swift",
        "I2C.swift",
        "LED.swift",
        "PWM.swift",
        "Utils/Data+Int.swift",
        "Utils/Int+Data.swift"
      ],
      "target_dependencies" : [
        "Cperiphery"
      ],
      "type" : "library"
    },
    {
      "c99name" : "DownloadCPeriphery",
      "module_type" : "PluginTarget",
      "name" : "DownloadCPeriphery",
      "path" : "Plugins/DownloadCPeriphery",
      "plugin_capability" : {
        "intent" : {
          "description" : "Download c-periphery",
          "type" : "custom",
          "verb" : "download-c-periphery"
        },
        "permissions" : [
          {
            "network_scope" : {
              "all" : {
                "ports" : [
                  443
                ]
              }
            },
            "reason" : "Download packages",
            "type" : "allowNetworkConnections"
          },
          {
            "network_scope" : {
              "none" : {
              }
            },
            "reason" : "Write packages",
            "type" : "writeToPackageDirectory"
          }
        ],
        "type" : "command"
      },
      "sources" : [
        "DownloadCPeriphery.swift"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "Cperiphery",
      "module_type" : "ClangTarget",
      "name" : "Cperiphery",
      "path" : "Sources/Cperiphery",
      "product_memberships" : [
        "PeripheryKit_static",
        "PeripheryKit_shared",
        "pio"
      ],
      "sources" : [
        "gpio.c",
        "gpio_cdev_v1.c",
        "gpio_cdev_v2.c",
        "gpio_sysfs.c",
        "i2c.c",
        "led.c",
        "mmio.c",
        "pwm.c",
        "serial.c",
        "shims.c",
        "spi.c",
        "version.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -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
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
[1/24] Write swift-version-2F0A5646E1D333AE.txt
[2/24] Write sources
[3/24] Write pio-entitlement.plist
[3/24] Write sources
[5/24] Compiling Cperiphery version.c
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c:22:12: error: call to undeclared function 'clock_nanosleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   22 |     while (clock_nanosleep(CLOCK_MONOTONIC, 0, &req, &rem) == -1) {
      |            ^
1 error generated.
[6/24] Compiling Cperiphery shims.c
[6/24] Compiling Cperiphery gpio.c
[6/24] Compiling Cperiphery pwm.c
[6/24] Compiling Cperiphery gpio_cdev_v1.c
[6/24] Compiling Cperiphery mmio.c
[6/24] Compiling Cperiphery i2c.c
[6/24] Compiling Cperiphery gpio_sysfs.c
[6/24] Compiling Cperiphery gpio_cdev_v2.c
[6/24] Compiling Cperiphery led.c
[6/24] Compiling Cperiphery spi.c
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
[1/1] Compiling plugin DownloadCPeriphery
Building for debugging...
/Users/admin/builder/spi-builder-workspace/Sources/Cperiphery/shims.c:22:12: error: call to undeclared function 'clock_nanosleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   22 |     while (clock_nanosleep(CLOCK_MONOTONIC, 0, &req, &rem) == -1) {
      |            ^
1 error generated.
[1/20] Compiling Cperiphery shims.c
[1/20] Compiling Cperiphery i2c.c
[1/20] Compiling Cperiphery led.c
[1/20] Compiling Cperiphery gpio_cdev_v1.c
[1/20] Compiling Cperiphery gpio_cdev_v2.c
[1/20] Compiling Cperiphery gpio_sysfs.c
[1/20] Compiling Cperiphery serial.c
[1/20] Compiling Cperiphery spi.c
[1/20] Compiling Cperiphery pwm.c
[1/20] Compiling Cperiphery mmio.c
BUILD FAILURE 6.1 macosSpm