Build Information
Failed to build DLKit, reference main (d04fc2
), with Swift 6.1 for Wasm on 10 Sep 2025 08:59:21 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/DLKit.git
Reference: main
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/johnno1962/DLKit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d04fc21 slow_dlsym2()
Cloned https://github.com/johnno1962/DLKit.git
Revision (git rev-parse @):
d04fc21a4dc3d24e63f90364b9d2badab5d0c4d3
SUCCESS checkout https://github.com/johnno1962/DLKit.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/johnno1962/DLKit.git
https://github.com/johnno1962/DLKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "fishhook",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.1",
"upper_bound" : "1.3.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/johnno1962/fishhook"
}
],
"manifest_display_name" : "DLKit",
"name" : "DLKit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "DLKit",
"targets" : [
"DLKit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DLKitC",
"targets" : [
"DLKitC"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DLKitD",
"targets" : [
"DLKitD"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DLKitCD",
"targets" : [
"DLKitCD"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "DLKitTests",
"module_type" : "SwiftTarget",
"name" : "DLKitTests",
"path" : "Tests/DLKitTests",
"sources" : [
"DLKitTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"DLKit"
],
"type" : "test"
},
{
"c99name" : "DLKitD",
"module_type" : "SwiftTarget",
"name" : "DLKitD",
"path" : "Sources/DLKitD",
"product_dependencies" : [
"fishhookD"
],
"product_memberships" : [
"DLKitD"
],
"sources" : [
"DLKit.swift",
"Demangling.swift",
"FileSymbols.swift",
"ImageSymbols.swift",
"Interposing.swift",
"Iterators.swift"
],
"target_dependencies" : [
"DLKitCD"
],
"type" : "library"
},
{
"c99name" : "DLKitCD",
"module_type" : "ClangTarget",
"name" : "DLKitCD",
"path" : "Sources/DLKitCD",
"product_dependencies" : [
"fishhookD"
],
"product_memberships" : [
"DLKitD",
"DLKitCD"
],
"sources" : [
"DLKitC.c",
"trie_dladdr.mm",
"trie_dlops.mm"
],
"type" : "library"
},
{
"c99name" : "DLKitC",
"module_type" : "ClangTarget",
"name" : "DLKitC",
"path" : "Sources/DLKitC",
"product_memberships" : [
"DLKit",
"DLKitC"
],
"sources" : [
"DLKitC.c",
"trie_dladdr.mm",
"trie_dlops.mm"
],
"type" : "library"
},
{
"c99name" : "DLKit",
"module_type" : "SwiftTarget",
"name" : "DLKit",
"path" : "Sources/DLKit",
"product_dependencies" : [
"fishhook"
],
"product_memberships" : [
"DLKit"
],
"sources" : [
"DLKit.swift",
"Demangling.swift",
"FileSymbols.swift",
"ImageSymbols.swift",
"Interposing.swift",
"Iterators.swift"
],
"target_dependencies" : [
"DLKitC"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/johnno1962/fishhook
[1/169] Fetching fishhook
Fetched https://github.com/johnno1962/fishhook from cache (0.38s)
Computing version for https://github.com/johnno1962/fishhook
Computed https://github.com/johnno1962/fishhook at 1.2.1 (1.33s)
Creating working copy for https://github.com/johnno1962/fishhook
Working copy of https://github.com/johnno1962/fishhook resolved at 1.2.1
Building for debugging...
[0/11] Compiling DLKitC trie_dladdr.mm
[0/11] Write sources
[2/11] Compiling DLKitCD DLKitC.c
[2/11] Compiling DLKitCD trie_dladdr.mm
[2/11] Compiling DLKitC DLKitC.c
[5/11] Write sources
[6/11] Compiling fishhook fishhook.c
[6/11] Compiling fishhookD fishhook.c
[8/11] Compiling DLKitCD trie_dlops.mm
[9/11] Compiling DLKitC trie_dlops.mm
[10/11] Write swift-version-24593BA9C3E375BF.txt
[12/25] Compiling DLKit Interposing.swift
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:30:42: error: no type named 'SymbolValue' in module 'DLKit'
28 |
29 | extension ImageSymbols {
30 | public typealias SymbolValue = DLKit.SymbolValue
| `- error: no type named 'SymbolValue' in module 'DLKit'
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:33:53: error: no type named 'SymbolName' in module 'DLKit'
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
33 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
34 | return rebind(symbols: Array(mapping.keys),
35 | values: Array(mapping.values),
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:40:53: error: no type named 'SymbolName' in module 'DLKit'
38 | public func rebind(symbols: [String], values: [String],
39 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
40 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
41 | return rebind(names: symbols.map {$0.withCString {$0}}, values:
42 | values.map { if let replacement = dlsym(scope, $0) {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:52:54: error: no type named 'SymbolName' in module 'DLKit'
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
52 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
53 | let names = symbols.map {$0.withCString {$0}}
54 | return rebind(names: names, values: values, warn: warn)
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:51:52: error: cannot find type 'SymbolValue' in scope
49 | }, warn: warn)
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
52 | warn: Bool = false) -> [DLKit.SymbolName] {
53 | let names = symbols.map {$0.withCString {$0}}
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:57:54: error: no type named 'SymbolName' in module 'DLKit'
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
57 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
59 | guard $0 < values.count,
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:56:38: error: no type named 'SymbolName' in module 'DLKit'
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: no type named 'SymbolName' in module 'DLKit'
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:56:60: error: cannot find type 'SymbolValue' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:73:65: error: no type named 'SymbolName' in module 'DLKit'
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'rebinding' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
97 | extension ImageSymbols {
98 | public struct DLKInfo {
99 | public let info: Dl_info
| `- error: cannot find type 'Dl_info' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:100:32: error: no type named 'SymbolName' in module 'DLKit'
98 | public struct DLKInfo {
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
| `- error: no type named 'SymbolName' in module 'DLKit'
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:101:26: error: cannot find type 'SymbolValue' in scope
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
| `- error: cannot find type 'SymbolValue' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:102:48: error: cannot find type 'nlist_t' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
| `- error: cannot find type 'nlist_t' in scope
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:103:27: error: cannot find type 'ImageSymbols' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
| `- error: cannot find type 'ImageSymbols' in scope
104 | public var image: ImageSymbols? {
105 | return (owner.imageNumbers.first(where: {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:104:27: error: cannot find type 'ImageSymbols' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
| `- error: cannot find type 'ImageSymbols' in scope
105 | return (owner.imageNumbers.first(where: {
106 | info.dli_fname == $0.imageName }) ??
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:113:50: error: cannot find type 'DLKInfo' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:113:34: error: cannot find type 'SymbolValue' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:120:44: error: cannot find type 'DLKInfo' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:120:28: error: cannot find type 'SymbolValue' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:124:50: error: cannot find type 'SymbolValue' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'SymbolValue' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:124:35: error: no type named 'SymbolName' in module 'DLKit'
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: no type named 'SymbolName' in module 'DLKit'
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:129:54: error: cannot find type 'SymbolValue' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:129:37: error: no type named 'SymbolName' in module 'DLKit'
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: no type named 'SymbolName' in module 'DLKit'
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:145:46: error: cannot find type 'SymbolValue' in scope
143 | }
144 | /// Array of Strings version of subscript
145 | public subscript (symbols: [String]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
146 | get { return self[symbols.map {$0.withCString {$0}}] }
147 | set (newValue) {
[13/25] Compiling DLKit Iterators.swift
[14/25] Compiling DLKit FileSymbols.swift
[15/25] Compiling DLKit ImageSymbols.swift
[16/25] Compiling DLKit Demangling.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/25] Compiling DLKit DLKit.swift
[18/25] Emitting module DLKit
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/25] Compiling DLKitD ImageSymbols.swift
[20/25] Compiling DLKitD Iterators.swift
[21/25] Compiling DLKitD Demangling.swift
[22/25] Compiling DLKitD DLKit.swift
[23/25] Compiling DLKitD FileSymbols.swift
[24/25] Emitting module DLKitD
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
[25/25] Compiling DLKitD Interposing.swift
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:30:36: error: cannot find type 'DLKit' in scope
28 |
29 | extension ImageSymbols {
30 | public typealias SymbolValue = DLKit.SymbolValue
| `- error: cannot find type 'DLKit' in scope
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:33:47: error: cannot find type 'DLKit' in scope
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
33 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
34 | return rebind(symbols: Array(mapping.keys),
35 | values: Array(mapping.values),
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:40:47: error: cannot find type 'DLKit' in scope
38 | public func rebind(symbols: [String], values: [String],
39 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
40 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
41 | return rebind(names: symbols.map {$0.withCString {$0}}, values:
42 | values.map { if let replacement = dlsym(scope, $0) {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:52:48: error: cannot find type 'DLKit' in scope
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
52 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
53 | let names = symbols.map {$0.withCString {$0}}
54 | return rebind(names: names, values: values, warn: warn)
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:51:52: error: cannot find type 'SymbolValue' in scope
49 | }, warn: warn)
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
52 | warn: Bool = false) -> [DLKit.SymbolName] {
53 | let names = symbols.map {$0.withCString {$0}}
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:57:48: error: cannot find type 'DLKit' in scope
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
57 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
59 | guard $0 < values.count,
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:56:32: error: cannot find type 'DLKit' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'DLKit' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:56:60: error: cannot find type 'SymbolValue' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:59: error: cannot find type 'DLKit' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'rebinding' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
97 | extension ImageSymbols {
98 | public struct DLKInfo {
99 | public let info: Dl_info
| `- error: cannot find type 'Dl_info' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:100:26: error: cannot find type 'DLKit' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
| `- error: cannot find type 'DLKit' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:101:26: error: cannot find type 'SymbolValue' in scope
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
| `- error: cannot find type 'SymbolValue' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:102:48: error: cannot find type 'nlist_t' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
| `- error: cannot find type 'nlist_t' in scope
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:103:27: error: cannot find type 'ImageSymbols' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
| `- error: cannot find type 'ImageSymbols' in scope
104 | public var image: ImageSymbols? {
105 | return (owner.imageNumbers.first(where: {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:104:27: error: cannot find type 'ImageSymbols' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
| `- error: cannot find type 'ImageSymbols' in scope
105 | return (owner.imageNumbers.first(where: {
106 | info.dli_fname == $0.imageName }) ??
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:50: error: cannot find type 'DLKInfo' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:34: error: cannot find type 'SymbolValue' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:120:44: error: cannot find type 'DLKInfo' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:120:28: error: cannot find type 'SymbolValue' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:124:50: error: cannot find type 'SymbolValue' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'SymbolValue' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:124:29: error: cannot find type 'DLKit' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'DLKit' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:129:54: error: cannot find type 'SymbolValue' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:129:31: error: cannot find type 'DLKit' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'DLKit' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:145:46: error: cannot find type 'SymbolValue' in scope
143 | }
144 | /// Array of Strings version of subscript
145 | public subscript (symbols: [String]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
146 | get { return self[symbols.map {$0.withCString {$0}}] }
147 | set (newValue) {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" 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:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
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/15] Compiling DLKit DLKit.swift
[3/15] Compiling DLKit Demangling.swift
[4/15] Compiling DLKitD ImageSymbols.swift
[5/15] Compiling DLKitD Interposing.swift
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:30:36: error: cannot find type 'DLKit' in scope
28 |
29 | extension ImageSymbols {
30 | public typealias SymbolValue = DLKit.SymbolValue
| `- error: cannot find type 'DLKit' in scope
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:33:47: error: cannot find type 'DLKit' in scope
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
33 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
34 | return rebind(symbols: Array(mapping.keys),
35 | values: Array(mapping.values),
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:40:47: error: cannot find type 'DLKit' in scope
38 | public func rebind(symbols: [String], values: [String],
39 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
40 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
41 | return rebind(names: symbols.map {$0.withCString {$0}}, values:
42 | values.map { if let replacement = dlsym(scope, $0) {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:52:48: error: cannot find type 'DLKit' in scope
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
52 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
53 | let names = symbols.map {$0.withCString {$0}}
54 | return rebind(names: names, values: values, warn: warn)
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:51:52: error: cannot find type 'SymbolValue' in scope
49 | }, warn: warn)
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
52 | warn: Bool = false) -> [DLKit.SymbolName] {
53 | let names = symbols.map {$0.withCString {$0}}
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:57:48: error: cannot find type 'DLKit' in scope
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
57 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
59 | guard $0 < values.count,
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:56:32: error: cannot find type 'DLKit' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'DLKit' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:56:60: error: cannot find type 'SymbolValue' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:59: error: cannot find type 'DLKit' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'DLKit' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'rebinding' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
97 | extension ImageSymbols {
98 | public struct DLKInfo {
99 | public let info: Dl_info
| `- error: cannot find type 'Dl_info' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:100:26: error: cannot find type 'DLKit' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
| `- error: cannot find type 'DLKit' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:101:26: error: cannot find type 'SymbolValue' in scope
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
| `- error: cannot find type 'SymbolValue' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:102:48: error: cannot find type 'nlist_t' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
| `- error: cannot find type 'nlist_t' in scope
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:103:27: error: cannot find type 'ImageSymbols' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
| `- error: cannot find type 'ImageSymbols' in scope
104 | public var image: ImageSymbols? {
105 | return (owner.imageNumbers.first(where: {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:104:27: error: cannot find type 'ImageSymbols' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
| `- error: cannot find type 'ImageSymbols' in scope
105 | return (owner.imageNumbers.first(where: {
106 | info.dli_fname == $0.imageName }) ??
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:50: error: cannot find type 'DLKInfo' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:113:34: error: cannot find type 'SymbolValue' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:120:44: error: cannot find type 'DLKInfo' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:120:28: error: cannot find type 'SymbolValue' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:124:50: error: cannot find type 'SymbolValue' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'SymbolValue' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:124:29: error: cannot find type 'DLKit' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'DLKit' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:129:54: error: cannot find type 'SymbolValue' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:129:31: error: cannot find type 'DLKit' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'DLKit' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:145:46: error: cannot find type 'SymbolValue' in scope
143 | }
144 | /// Array of Strings version of subscript
145 | public subscript (symbols: [String]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
146 | get { return self[symbols.map {$0.withCString {$0}}] }
147 | set (newValue) {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/15] Compiling DLKitD FileSymbols.swift
[7/15] Compiling DLKitD Demangling.swift
[8/15] Compiling DLKitD DLKit.swift
[9/15] Emitting module DLKitD
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKitD/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
[10/15] Compiling DLKitD Iterators.swift
[11/15] Compiling DLKit FileSymbols.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Compiling DLKit ImageSymbols.swift
[13/15] Compiling DLKit Iterators.swift
[14/15] Emitting module DLKit
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
[15/15] Compiling DLKit Interposing.swift
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:29:11: error: cannot find type 'ImageSymbols' in scope
27 | }
28 |
29 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
30 | public typealias SymbolValue = DLKit.SymbolValue
31 | public func rebind(mapping: [String: String],
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:97:11: error: cannot find type 'ImageSymbols' in scope
95 |
96 | // Weird subscripting api.
97 | extension ImageSymbols {
| `- error: cannot find type 'ImageSymbols' in scope
98 | public struct DLKInfo {
99 | public let info: Dl_info
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:30:42: error: no type named 'SymbolValue' in module 'DLKit'
28 |
29 | extension ImageSymbols {
30 | public typealias SymbolValue = DLKit.SymbolValue
| `- error: no type named 'SymbolValue' in module 'DLKit'
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:33:53: error: no type named 'SymbolName' in module 'DLKit'
31 | public func rebind(mapping: [String: String],
32 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
33 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
34 | return rebind(symbols: Array(mapping.keys),
35 | values: Array(mapping.values),
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:40:53: error: no type named 'SymbolName' in module 'DLKit'
38 | public func rebind(symbols: [String], values: [String],
39 | scope: UnsafeMutableRawPointer? = DLKit.RTLD_DEFAULT,
40 | warn: Bool = true) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
41 | return rebind(names: symbols.map {$0.withCString {$0}}, values:
42 | values.map { if let replacement = dlsym(scope, $0) {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:52:54: error: no type named 'SymbolName' in module 'DLKit'
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
52 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
53 | let names = symbols.map {$0.withCString {$0}}
54 | return rebind(names: names, values: values, warn: warn)
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:51:52: error: cannot find type 'SymbolValue' in scope
49 | }, warn: warn)
50 | }
51 | public func rebind(symbols: [String], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
52 | warn: Bool = false) -> [DLKit.SymbolName] {
53 | let names = symbols.map {$0.withCString {$0}}
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:57:54: error: no type named 'SymbolName' in module 'DLKit'
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
57 | warn: Bool = false) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
59 | guard $0 < values.count,
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:56:38: error: no type named 'SymbolName' in module 'DLKit'
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: no type named 'SymbolName' in module 'DLKit'
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:56:60: error: cannot find type 'SymbolValue' in scope
54 | return rebind(names: names, values: values, warn: warn)
55 | }
56 | public func rebind(names: [DLKit.SymbolName], values: [SymbolValue?],
| `- error: cannot find type 'SymbolValue' in scope
57 | warn: Bool = false) -> [DLKit.SymbolName] {
58 | var rebindings: [rebinding] = (0..<names.count).compactMap {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:73:65: error: no type named 'SymbolName' in module 'DLKit'
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: no type named 'SymbolName' in module 'DLKit'
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:73:43: error: cannot find type 'rebinding' in scope
71 | return replaced
72 | }
73 | public func rebind(rebindings: inout [rebinding]) -> [DLKit.SymbolName] {
| `- error: cannot find type 'rebinding' in scope
74 | var replaced = [DLKit.SymbolName]()
75 | for image in imageNumbers {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:99:26: error: cannot find type 'Dl_info' in scope
97 | extension ImageSymbols {
98 | public struct DLKInfo {
99 | public let info: Dl_info
| `- error: cannot find type 'Dl_info' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:100:32: error: no type named 'SymbolName' in module 'DLKit'
98 | public struct DLKInfo {
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
| `- error: no type named 'SymbolName' in module 'DLKit'
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:101:26: error: cannot find type 'SymbolValue' in scope
99 | public let info: Dl_info
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
| `- error: cannot find type 'SymbolValue' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:102:48: error: cannot find type 'nlist_t' in scope
100 | public var name: DLKit.SymbolName! { info.dli_sname }
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
| `- error: cannot find type 'nlist_t' in scope
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:103:27: error: cannot find type 'ImageSymbols' in scope
101 | public var addr: SymbolValue { info.dli_saddr }
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
| `- error: cannot find type 'ImageSymbols' in scope
104 | public var image: ImageSymbols? {
105 | return (owner.imageNumbers.first(where: {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:104:27: error: cannot find type 'ImageSymbols' in scope
102 | public var entry: UnsafeMutablePointer<nlist_t>?
103 | public var owner: ImageSymbols
104 | public var image: ImageSymbols? {
| `- error: cannot find type 'ImageSymbols' in scope
105 | return (owner.imageNumbers.first(where: {
106 | info.dli_fname == $0.imageName }) ??
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:113:50: error: cannot find type 'DLKInfo' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:113:34: error: cannot find type 'SymbolValue' in scope
111 | }
112 | /// Address lookup returning image symbol name and wrapped image for an address.
113 | public func getInfo(address: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
114 | var info = Dl_info(), entry: UnsafeMutablePointer<nlist_t>?
115 | guard trie_dladdr2(address, &info, &entry) != 0 ||
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:120:44: error: cannot find type 'DLKInfo' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'DLKInfo' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:120:28: error: cannot find type 'SymbolValue' in scope
118 | }
119 | /// Inverse lookup returning image symbol name and wrapped image for an address.
120 | public subscript (ptr: SymbolValue) -> DLKInfo? {
| `- error: cannot find type 'SymbolValue' in scope
121 | return getInfo(address: ptr)
122 | }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:124:50: error: cannot find type 'SymbolValue' in scope
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: cannot find type 'SymbolValue' in scope
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:124:35: error: no type named 'SymbolName' in module 'DLKit'
122 | }
123 | /// Loook up an individual symbol by name
124 | public subscript (name: DLKit.SymbolName) -> SymbolValue? {
| `- error: no type named 'SymbolName' in module 'DLKit'
125 | get { return self[[name]][0] }
126 | set (newValue) { self[[name]] = [newValue] }
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:129:54: error: cannot find type 'SymbolValue' in scope
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:129:37: error: no type named 'SymbolName' in module 'DLKit'
127 | }
128 | /// Loook up an array of symbols
129 | public subscript (names: [DLKit.SymbolName]) -> [SymbolValue?] {
| `- error: no type named 'SymbolName' in module 'DLKit'
130 | get {
131 | if imageHandle == nil {
/host/spi-builder-workspace/Sources/DLKit/Interposing.swift:145:46: error: cannot find type 'SymbolValue' in scope
143 | }
144 | /// Array of Strings version of subscript
145 | public subscript (symbols: [String]) -> [SymbolValue?] {
| `- error: cannot find type 'SymbolValue' in scope
146 | get { return self[symbols.map {$0.withCString {$0}}] }
147 | set (newValue) {
BUILD FAILURE 6.1 wasm