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 DLKit, reference main (f12ceb), with Swift 5.10 for macOS (SPM) on 23 Jul 2024 18:14:26 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.47.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/DLKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/DLKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f12cebd Flatten sub-packages.
Cloned https://github.com/johnno1962/DLKit.git
Revision (git rev-parse @):
f12cebd9b0a39962b6b3f94b7b4946c903da0027
SUCCESS checkout https://github.com/johnno1962/DLKit.git at main
Fetching https://github.com/johnno1962/fishhook
[1/169] Fetching fishhook
Fetched https://github.com/johnno1962/fishhook from cache (1.10s)
Computing version for https://github.com/johnno1962/fishhook
Computed https://github.com/johnno1962/fishhook at 1.2.1 (0.59s)
Creating working copy for https://github.com/johnno1962/fishhook
Working copy of https://github.com/johnno1962/fishhook resolved at 1.2.1
========================================
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": "dlkit",
      "name": "DLKit",
      "url": "https://github.com/johnno1962/DLKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DLKit",
      "dependencies": [
        {
          "identity": "fishhook",
          "name": "fishhook",
          "url": "https://github.com/johnno1962/fishhook",
          "version": "1.2.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/fishhook",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/johnno1962/DLKit.git
[4/374] Fetching dlkit
Fetched https://github.com/johnno1962/DLKit.git from cache (0.77s)
Fetching https://github.com/johnno1962/fishhook from cache
Fetched https://github.com/johnno1962/fishhook from cache (0.46s)
Computing version for https://github.com/johnno1962/fishhook
Computed https://github.com/johnno1962/fishhook at 1.2.1 (0.03s)
Creating working copy for https://github.com/johnno1962/DLKit.git
Working copy of https://github.com/johnno1962/DLKit.git resolved at main (f12cebd)
Creating working copy for https://github.com/johnno1962/fishhook
Working copy of https://github.com/johnno1962/fishhook resolved at 1.2.1
warning: '.resolve-product-dependencies': dependency 'dlkit' is not used by any target
Found 1 product dependencies
  - fishhook
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/johnno1962/DLKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/11] Write sources
[2/11] Write swift-version-33747A42983211AE.txt
[3/11] Compiling DLKitC DLKitC.c
[4/11] Compiling fishhookD fishhook.c
[4/11] Compiling fishhook fishhook.c
[6/11] Compiling DLKitCD DLKitC.c
/Users/admin/builder/spi-builder-workspace/Sources/DLKitC/trie_dladdr.mm:86:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
    auto it = upper_bound(array.begin(), array.end(), value);
    ^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/DLKitC/trie_dlops.mm:166:46: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
            for (uint32_t aVisitedNodeOffset : visitedNodeOffsets) {
                                             ^
1 warning generated.
[7/11] Compiling DLKitC trie_dladdr.mm
/Users/admin/builder/spi-builder-workspace/Sources/DLKitCD/trie_dlops.mm:166:46: warning: range-based for loop is a C++11 extension [-Wc++11-extensions]
            for (uint32_t aVisitedNodeOffset : visitedNodeOffsets) {
                                             ^
1 warning generated.
/Users/admin/builder/spi-builder-workspace/Sources/DLKitCD/trie_dladdr.mm:86:5: warning: 'auto' type specifier is a C++11 extension [-Wc++11-extensions]
    auto it = upper_bound(array.begin(), array.end(), value);
    ^
1 warning generated.
[8/11] Compiling DLKitCD trie_dlops.mm
[8/11] Compiling DLKitCD trie_dladdr.mm
[8/11] Compiling DLKitC trie_dlops.mm
[12/25] Compiling DLKit Iterators.swift
[13/25] Compiling DLKitD ImageSymbols.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
          ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
    public var imageHeader: UnsafePointer<mach_header_t> {
                                          ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:117:33: error: cannot find type 'TrieSymbol' in scope
    open func trieSymbols() -> [TrieSymbol]? {
                                ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
        var state = symbol_iterator()
                    ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:118:30: error: cannot find 'trie_iterator' in scope
        guard let iterator = trie_iterator(imageHeader),
                             ^~~~~~~~~~~~~
[14/25] Compiling DLKitD Iterators.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:22:48: error: cannot find type 'nlist_t' in scope
                   entry: UnsafeMutablePointer<nlist_t>
                                               ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
        var state = symbol_iterator()
                    ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
          ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:54: error: cannot find type 'mach_header_t' in scope
        override open var imageHeader: UnsafePointer<mach_header_t> {
                                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:27: error: property does not override any property from its superclass
        override open var imageHeader: UnsafePointer<mach_header_t> {
        ~~~~~~~~          ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:25:49: error: cannot find 'N_STAB' in scope
            return entry.pointee.n_type & UInt8(N_STAB) != 0
                                                ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:29:52: error: cannot find 'uintptr_t' in scope
                          unsafeBitCast(value, to: uintptr_t.self),
                                                   ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:42:13: error: cannot find 'init_symbol_iterator' in scope
            init_symbol_iterator(image.imageHeader, &state, image is FileSymbols)
            ^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
    public var imageHeader: UnsafePointer<mach_header_t> {
                                          ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:52:49: error: cannot find 'NO_SECT' in scope
                value: symbol.pointee.n_sect == NO_SECT ? nil : SymbolValue(
                                                ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:57: error: cannot find 'N_STAB' in scope
        return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
                                                        ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:66: error: cannot find 'N_PEXT' in scope
        return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
                                                                 ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:89:64: error: cannot convert value of type 'UInt8' to expected argument type 'Int32'
        return RefilteredSymbols(owner: self, typeMask: N_STAB | N_PEXT) }
                                                               ^
                                                        Int32(         )
[15/25] Compiling DLKitD Interposing.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
    public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
                                          ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
        public let info: Dl_info
                         ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:42:59: error: cannot find 'dlsym' in scope
                        values.map { if let replacement = dlsym(scope, $0) {
                                                          ^~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:58:26: error: cannot find type 'rebinding' in scope
        var rebindings: [rebinding] = (0..<names.count).compactMap {
                         ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:66:43: error: extra argument 'rebindings' in call
        let replaced = rebind(rebindings: &rebindings)
                             ~~~~~~~~~~~~~^~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:66:31: error: missing argument for parameter 'mapping' in call
        let replaced = rebind(rebindings: &rebindings)
                              ^
                              mapping: <#[String : String]#>,
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:31:17: note: 'rebind(mapping:scope:warn:)' declared here
    public func rebind(mapping: [String: String],
                ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:82:13: error: cannot find 'rebind_symbols_image' in scope
            rebind_symbols_image(
            ^~~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:107:25: error: cannot find 'strcmp' in scope
                        strcmp(info.dli_fname, $0.imageName) == 0 })
                        ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:20: error: cannot find 'Dl_info' in scope
        var info = Dl_info()
                   ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:114:15: error: cannot find 'dladdr' in scope
        guard dladdr(address, &info) != 0 ||
              ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:115:10: error: cannot find 'trie_dladdr' in scope
         trie_dladdr(address, &info) != 0 else { return nil }
         ^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:131:31: error: cannot find 'dlopen' in scope
                imageHandle = dlopen(imageName, RTLD_LAZY)
                              ^~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:131:49: error: cannot find 'RTLD_LAZY' in scope
                imageHandle = dlopen(imageName, RTLD_LAZY)
                                                ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:133:31: error: cannot find 'dlsym' in scope
            return names.map {dlsym(imageHandle, $0)}
                              ^~~~~
[16/25] Compiling DLKitD FileSymbols.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
          ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:24:38: error: cannot find type 'mach_header_t' in scope
    public let header: UnsafePointer<mach_header_t>
                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:50: error: cannot find type 'mach_header_t' in scope
    override open var imageHeader: UnsafePointer<mach_header_t> {
                                                 ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:23: error: property does not override any property from its superclass
    override open var imageHeader: UnsafePointer<mach_header_t> {
    ~~~~~~~~          ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:34:42: error: cannot find type 'mach_header_t' in scope
                        -> UnsafePointer<mach_header_t>? {
                                         ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:54:57: error: cannot find 'mach_header_t' in scope
            header = data.bytes.assumingMemoryBound(to: mach_header_t.self)
                                                        ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:54:33: error: generic parameter 'T' could not be inferred
            header = data.bytes.assumingMemoryBound(to: mach_header_t.self)
                                ^
Swift.UnsafeRawPointer:15:17: note: in call to function 'assumingMemoryBound(to:)'
    public func assumingMemoryBound<T>(to: T.Type) -> UnsafePointer<T>
                ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
    public var imageHeader: UnsafePointer<mach_header_t> {
                                          ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:63:9: error: cannot find 'trie_register' in scope
        trie_register(path, header)
        ^~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/25] Compiling DLKitD Demangling.swift
[18/25] Emitting module DLKitD
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
          ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:24:38: error: cannot find type 'mach_header_t' in scope
    public let header: UnsafePointer<mach_header_t>
                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:50: error: cannot find type 'mach_header_t' in scope
    override open var imageHeader: UnsafePointer<mach_header_t> {
                                                 ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:26:23: error: property does not override any property from its superclass
    override open var imageHeader: UnsafePointer<mach_header_t> {
    ~~~~~~~~          ^
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/FileSymbols.swift:34:42: error: cannot find type 'mach_header_t' in scope
                        -> UnsafePointer<mach_header_t>? {
                                         ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
    public var imageHeader: UnsafePointer<mach_header_t> {
                                          ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:117:33: error: cannot find type 'TrieSymbol' in scope
    open func trieSymbols() -> [TrieSymbol]? {
                                ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
    public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
                                          ^~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
        public let info: Dl_info
                         ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:22:48: error: cannot find type 'nlist_t' in scope
                   entry: UnsafeMutablePointer<nlist_t>
                                               ^~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:38:21: error: cannot find 'symbol_iterator' in scope
        var state = symbol_iterator()
                    ^~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:54: error: cannot find type 'mach_header_t' in scope
        override open var imageHeader: UnsafePointer<mach_header_t> {
                                                     ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/Iterators.swift:75:27: error: property does not override any property from its superclass
        override open var imageHeader: UnsafePointer<mach_header_t> {
        ~~~~~~~~          ^
[19/25] Compiling DLKitD DLKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:130:11: error: cannot find type 'TrieSymbol' in scope
extension TrieSymbol: CustomStringConvertible {
          ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:138:36: error: cannot find type 'mach_header_t' in scope
    var imageHeader: UnsafePointer<mach_header_t> {
                                   ^~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:47:26: error: cannot find 'self_caller_address' in scope
        return allImages[self_caller_address()!]!.image!
                         ^~~~~~~~~~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/DLKit.swift:123:9: error: cannot find 'trie_dlsym' in scope
        trie_dlsym($0.imageHeader, symbol) }.first
        ^~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/Sources/DLKitD/ImageSymbols.swift:39:43: error: cannot find type 'mach_header_t' in scope
    public var imageHeader: UnsafePointer<mach_header_t> {
                                          ^~~~~~~~~~~~~
error: fatalError
[20/25] Compiling DLKit Interposing.swift
[21/25] Emitting module DLKit
[22/25] Compiling DLKit Demangling.swift
[23/25] Compiling DLKit FileSymbols.swift
BUILD FAILURE 5.10 macosSpm