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.0 for macOS (SPM) on 31 Oct 2024 11:45:42 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.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.69s)
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.0
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-sysinfo.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/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
Darwin.vm_page_size:1:12: note: var declared here
1 | public var vm_page_size: vm_size_t
  |            `- note: var declared here
/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
[4/5] Emitting module PerfectSysInfo
[5/5] Compiling PerfectSysInfo iostat.swift
Build complete! (6.08s)
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.