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

Successful build of PerfectSysInfo, reference master (387134), with Swift 6.1 for macOS (SPM) on 25 Apr 2025 00:53:35 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-sysinfo.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/perfectlysoft/perfect-sysinfo
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3871342 Update README.md
Cloned https://github.com/perfectlysoft/perfect-sysinfo.git
Revision (git rev-parse @):
38713425629b39e8dd2e49c6d6652cf1786addfb
SUCCESS checkout https://github.com/perfectlysoft/perfect-sysinfo.git at master
========================================
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": "perfect-sysinfo",
      "name": "PerfectSysInfo",
      "url": "https://github.com/perfectlysoft/perfect-sysinfo.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/perfect-sysinfo",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/perfectlysoft/perfect-sysinfo.git
[1/89] Fetching perfect-sysinfo
Fetched https://github.com/perfectlysoft/perfect-sysinfo.git from cache (0.60s)
Creating working copy for https://github.com/perfectlysoft/perfect-sysinfo.git
Working copy of https://github.com/perfectlysoft/perfect-sysinfo.git resolved at master (3871342)
warning: '.resolve-product-dependencies': dependency 'perfect-sysinfo' 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/perfectlysoft/perfect-sysinfo.git
https://github.com/perfectlysoft/perfect-sysinfo.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PerfectSysInfo",
  "name" : "PerfectSysInfo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PerfectSysInfo",
      "targets" : [
        "PerfectSysInfo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PerfectSysInfoTests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectSysInfoTests",
      "path" : "Tests/PerfectSysInfoTests",
      "sources" : [
        "PerfectSysInfoTests.swift"
      ],
      "target_dependencies" : [
        "PerfectSysInfo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectSysInfo",
      "module_type" : "SwiftTarget",
      "name" : "PerfectSysInfo",
      "path" : "Sources/PerfectSysInfo",
      "product_memberships" : [
        "PerfectSysInfo"
      ],
      "sources" : [
        "PerfectSysInfo.swift",
        "iostat.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/5] Emitting module PerfectSysInfo
[4/5] Compiling PerfectSysInfo iostat.swift
[5/5] Compiling PerfectSysInfo PerfectSysInfo.swift
/Users/admin/builder/spi-builder-workspace/Sources/PerfectSysInfo/PerfectSysInfo.swift:86:11: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
 84 |       }while(count > 0)
 85 |       fclose(f)
 86 |       buf.deallocate(capacity: String.szSTR)
    |           `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
 87 |       let ret = String(cString: content)
 88 |       return ret
/Users/admin/builder/spi-builder-workspace/Sources/PerfectSysInfo/PerfectSysInfo.swift:213:13: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
211 |           } while (cursor < len)
212 |         }//end if
213 |         buf.deallocate(capacity: len)
    |             `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
214 |         return true
215 |       }//end pointer
/Users/admin/builder/spi-builder-workspace/Sources/PerfectSysInfo/PerfectSysInfo.swift:283:17: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
281 |               }//end bound
282 |             } while (cursor < len)
283 |             buf.deallocate(capacity: len)
    |                 `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
284 |           }//end if
285 |           return true
/Users/admin/builder/spi-builder-workspace/Sources/PerfectSysInfo/PerfectSysInfo.swift:347:32: warning: reference to var 'vm_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
345 |         totalNice += nice
346 |       }//next
347 |       munmap(cpuLoadArray, Int(vm_page_size))
    |                                `- warning: reference to var 'vm_page_size' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
348 |       totalUser /= count
349 |       totalSystem /= count
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/mach/vm_page_size.h:42:25: note: var declared here
40 |  *	These macros assume vm_page_size is a power-of-2.
41 |  */
42 | extern  vm_size_t       vm_page_size;
   |                         `- note: var declared here
43 | extern  vm_size_t       vm_page_mask;
44 | extern  int             vm_page_shift;
/Users/admin/builder/spi-builder-workspace/Sources/PerfectSysInfo/PerfectSysInfo.swift:391:15: warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
389 |           }//next i
390 |         }//end if
391 |         pStat.deallocate(capacity: size)
    |               `- warning: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
392 |         return stat
393 |       #endif
Build complete! (4.37s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PerfectSysInfo",
  "name" : "PerfectSysInfo",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PerfectSysInfo",
      "targets" : [
        "PerfectSysInfo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PerfectSysInfoTests",
      "module_type" : "SwiftTarget",
      "name" : "PerfectSysInfoTests",
      "path" : "Tests/PerfectSysInfoTests",
      "sources" : [
        "PerfectSysInfoTests.swift"
      ],
      "target_dependencies" : [
        "PerfectSysInfo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PerfectSysInfo",
      "module_type" : "SwiftTarget",
      "name" : "PerfectSysInfo",
      "path" : "Sources/PerfectSysInfo",
      "product_memberships" : [
        "PerfectSysInfo"
      ],
      "sources" : [
        "PerfectSysInfo.swift",
        "iostat.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.