Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
dependencies ▾

Modern-Apps.git / analysis_build_err.txt

analysis_build_err.txt400 lines · 20.6 KiBRaw
1warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
2package: C:\Users\Vayun\Documents\code\Modern-Apps\astronomy\src\main\rust\Cargo.toml
3workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
4warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
5package: C:\Users\Vayun\Documents\code\Modern-Apps\photos\src\main\rust\Cargo.toml
6workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
7warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
8package: C:\Users\Vayun\Documents\code\Modern-Apps\office\src\main\rust\Cargo.toml
9workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
10warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
11package: C:\Users\Vayun\Documents\code\Modern-Apps\weather\src\main\rust\Cargo.toml
12workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
13warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
14package: C:\Users\Vayun\Documents\code\Modern-Apps\pdf\src\main\rust\Cargo.toml
15workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
16warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
17package: C:\Users\Vayun\Documents\code\Modern-Apps\camera\src\main\rust\Cargo.toml
18workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
19warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
20package: C:\Users\Vayun\Documents\code\Modern-Apps\maps\src\main\rust\Cargo.toml
21workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
22warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
23package: C:\Users\Vayun\Documents\code\Modern-Apps\networklocation\src\main\rust\Cargo.toml
24workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
25warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
26package: C:\Users\Vayun\Documents\code\Modern-Apps\euicc\src\main\rust\Cargo.toml
27workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
28warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
29package: C:\Users\Vayun\Documents\code\Modern-Apps\passwords\src\main\rust\Cargo.toml
30workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
31warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
32package: C:\Users\Vayun\Documents\code\Modern-Apps\vpn\src\main\rust\Cargo.toml
33workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
34warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
35package: C:\Users\Vayun\Documents\code\Modern-Apps\library\e2ee-p2p\src\main\rust\Cargo.toml
36workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
37warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
38package: C:\Users\Vayun\Documents\code\Modern-Apps\measure\src\main\rust\Cargo.toml
39workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
40warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
41package: C:\Users\Vayun\Documents\code\Modern-Apps\communicate\src\main\rust\Cargo.toml
42workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
43warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
44package: C:\Users\Vayun\Documents\code\Modern-Apps\youpipe\src\main\rust\Cargo.toml
45workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
46warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
47package: C:\Users\Vayun\Documents\code\Modern-Apps\share\src\main\rust\Cargo.toml
48workspace: C:\Users\Vayun\Documents\code\Modern-Apps\Cargo.toml
49warning: C:\Users\Vayun\Documents\code\Modern-Apps\third_party\betocore\crypto_provider_rustcrypto\Cargo.toml: `default-features` is ignored for rand, since `default-features` was not specified for `workspace.dependencies.rand`, this could become a hard error in the future
50 Checking ml_vulkan v0.1.0 (C:\Users\Vayun\Documents\code\Modern-Apps\library\ml\src\main\rust)
51error[E0432]: unresolved import `ash`
52 --> library\ml\src\main\rust\src\device.rs:29:5
53 |
5429 | use ash::{Entry, vk};
55 | ^^^ use of unresolved module or unlinked crate `ash`
56 |
57 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
58
59error[E0432]: unresolved import `super::vulkan_session::KvCache`
60 --> library\ml\src\main\rust\src\jni_bridge.rs:61:41
61 |
6261 | use super::vulkan_session::{GpuSession, KvCache};
63 | ^^^^^^^ no `KvCache` in `vulkan_session`
64
65error[E0433]: cannot find `GpuTensor` in `onnx_vulkan`
66 --> library\ml\src\main\rust\src\vulkan_session.rs:101:49
67 |
68101 | inputs.into_iter().map(onnx_vulkan::GpuTensor::from).collect();
69 | ^^^^^^^^^ could not find `GpuTensor` in `onnx_vulkan`
70 |
71help: an enum with a similar name exists
72 |
73101 - inputs.into_iter().map(onnx_vulkan::GpuTensor::from).collect();
74101 + inputs.into_iter().map(onnx_vulkan::Tensor::from).collect();
75 |
76
77error[E0425]: cannot find type `GpuTensor` in crate `onnx_vulkan`
78 --> library\ml\src\main\rust\src\vulkan_session.rs:100:42
79 |
80100 | let gpu_inputs: Vec<onnx_vulkan::GpuTensor> =
81 | ^^^^^^^^^
82 |
83 ::: C:\Users\Vayun\.cargo\git\checkouts\onnx-vulkan-rs-91074aa5a2270394\c3aa968\crates\onnx-vulkan-core\src\device.rs:36:1
84 |
85 36 | pub enum Tensor<'a> {
86 | ------------------- similarly named enum `Tensor` defined here
87 |
88help: an enum with a similar name exists
89 |
90100 - let gpu_inputs: Vec<onnx_vulkan::GpuTensor> =
91100 + let gpu_inputs: Vec<onnx_vulkan::Tensor> =
92 |
93
94error[E0425]: cannot find function `probe_json` in module `probe`
95 --> library\ml\src\main\rust\src\jni_bridge.rs:165:47
96 |
97165 | jstring_or_null(&mut env, Some(probe::probe_json()))
98 | ^^^^^^^^^^ not found in `probe`
99
100error[E0308]: mismatched types
101 --> library\ml\src\main\rust\src\vulkan_session.rs:66:60
102 |
10366 | onnx_vulkan::Error::Load(msg) => VulcanError::Load(msg),
104 | ----------------- ^^^ expected `String`, found `Error`
105 | |
106 | arguments to this enum variant are incorrect
107 |
108note: tuple variant defined here
109 --> library\ml\src\main\rust\src\vulkan_session.rs:25:5
110 |
11125 | Load(String),
112 | ^^^^
113help: try using a conversion method
114 |
11566 | onnx_vulkan::Error::Load(msg) => VulcanError::Load(msg.to_string()),
116 | ++++++++++++
117
118error[E0599]: no associated function or constant named `from_bytes` found for struct `Session` in the current scope
119 --> library\ml\src\main\rust\src\vulkan_session.rs:81:45
120 |
121 81 | let session = onnx_vulkan::Session::from_bytes(bytes, base_dir).map_err(map_native_error)?;
122 | ^^^^^^^^^^ associated function or constant not found in `Session`
123 |
124note: if you're trying to build a new `Session` consider using one of the following associated functions:
125 Session::load
126 Session::load_from_bytes
127 --> C:\Users\Vayun\.cargo\git\checkouts\onnx-vulkan-rs-91074aa5a2270394\c3aa968\crates\onnx-vulkan\src\lib.rs:147:5
128 |
129147 | pub fn load(path: impl AsRef<Path>) -> Result<Self> {
130 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
131...
132154 | pub fn load_from_bytes(bytes: &[u8], base_dir: Option<&Path>) -> Result<Self> {
133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134help: there is an associated function `load_from_bytes` with a similar name
135 |
136 81 | let session = onnx_vulkan::Session::load_from_bytes(bytes, base_dir).map_err(map_native_error)?;
137 | +++++
138
139error[E0599]: the method `into_iter` exists for struct `Run<'_>`, but its trait bounds were not satisfied
140 --> library\ml\src\main\rust\src\vulkan_session.rs:104:14
141 |
142103 | / gpu_outputs
143104 | | .into_iter()
144 | | -^^^^^^^^^ method cannot be called on `Run<'_>` due to unsatisfied trait bounds
145 | |_____________|
146 |
147 |
148 ::: C:\Users\Vayun\.cargo\git\checkouts\onnx-vulkan-rs-91074aa5a2270394\c3aa968\crates\onnx-vulkan\src\lib.rs:726:1
149 |
150726 | pub struct Run<'a> {
151 | ------------------ doesn't satisfy `Run<'_>: IntoIterator` or `Run<'_>: Iterator`
152 |
153 = note: the following trait bounds were not satisfied:
154 `Run<'_>: Iterator`
155 which is required by `Run<'_>: IntoIterator`
156 `&Run<'_>: Iterator`
157 which is required by `&Run<'_>: IntoIterator`
158 `&mut Run<'_>: Iterator`
159 which is required by `&mut Run<'_>: IntoIterator`
160
161error[E0277]: the trait bound `VulcanError: From<Infallible>` is not satisfied
162 --> library\ml\src\main\rust\src\vulkan_session.rs:105:27
163 |
164105 | .map(|tensor| HostTensor::try_from(tensor).map_err(VulcanError::from))
165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
166 |
167help: the trait `From<Infallible>` is not implemented for `VulcanError`
168 but trait `From<TensorError>` is implemented for it
169 --> library\ml\src\main\rust\src\vulkan_session.rs:37:14
170 |
171 37 | Tensor(#[from] TensorError),
172 | ^^^^
173 = help: for that trait implementation, expected `TensorError`, found `Infallible`
174
175error[E0277]: the trait bound `VulcanError: From<Infallible>` is not satisfied
176 --> library\ml\src\main\rust\src\vulkan_session.rs:105:64
177 |
178105 | .map(|tensor| HostTensor::try_from(tensor).map_err(VulcanError::from))
179 | ^^^^^^^^^^^ unsatisfied trait bound
180 |
181help: the trait `From<Infallible>` is not implemented for `VulcanError`
182 but trait `From<TensorError>` is implemented for it
183 --> library\ml\src\main\rust\src\vulkan_session.rs:37:14
184 |
185 37 | Tensor(#[from] TensorError),
186 | ^^^^
187 = help: for that trait implementation, expected `TensorError`, found `Infallible`
188
189error[E0599]: no method named `plan_stats` found for reference `&Session` in the current scope
190 --> library\ml\src\main\rust\src\vulkan_session.rs:115:78
191 |
192115 | Some(session) => format!("key={} plan={}", self.key, session.plan_stats()),
193 | ^^^^^^^^^^ method not found in `&Session`
194
195error[E0061]: this function takes 2 arguments but 0 arguments were supplied
196 --> library\ml\src\main\rust\src\vulkan_session.rs:151:20
197 |
198151 | cache: onnx_vulkan::KvCache::new(),
199 | ^^^^^^^^^^^^^^^^^^^^^^^^^-- two arguments of type `&Session` and `usize` are missing
200 |
201note: associated function defined here
202 --> C:\Users\Vayun\.cargo\git\checkouts\onnx-vulkan-rs-91074aa5a2270394\c3aa968\crates\onnx-vulkan\src\lib.rs:634:12
203 |
204634 | pub fn new(session: &Session, max_seq_len: usize) -> Result<Self> {
205 | ^^^
206help: provide the arguments
207 |
208151 | cache: onnx_vulkan::KvCache::new(/* &Session */, /* usize */),
209 | +++++++++++++++++++++++++++
210
211error[E0308]: mismatched types
212 --> library\ml\src\main\rust\src\vulkan_session.rs:151:20
213 |
214151 | cache: onnx_vulkan::KvCache::new(),
215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `KvCache`, found `Result<KvCache, Error>`
216 |
217 = note: expected struct `KvCache`
218 found enum `Result<KvCache, onnx_vulkan::Error>`
219help: consider using `Result::expect` to unwrap the `Result<KvCache, onnx_vulkan::Error>` value, panicking if the value is a `Result::Err`
220 |
221151 | cache: onnx_vulkan::KvCache::new().expect("REASON"),
222 | +++++++++++++++++
223
224error[E0308]: mismatched types
225 --> library\ml\src\main\rust\src\jni_bridge.rs:78:20
226 |
227 78 | env.get_string(value)
228 | ---------- ^^^^^ expected `&JString<'_>`, found `JString<'_>`
229 | |
230 | arguments to this method are incorrect
231 |
232note: method defined here
233 --> C:\Users\Vayun\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\jni-0.21.1\src\wrapper\jnienv.rs:1629:12
234 |
2351629 | pub fn get_string<'other_local: 'obj_ref, 'obj_ref>(
236 | ^^^^^^^^^^
237help: consider borrowing here
238 |
239 78 | env.get_string(&value)
240 | +
241
242error[E0061]: this function takes 3 arguments but 2 arguments were supplied
243 --> library\ml\src\main\rust\src\jni_bridge.rs:184:15
244 |
245184 | match GpuSession::load(&bytes, &tag) {
246 | ^^^^^^^^^^^^^^^^ ---- argument #2 of type `Option<&str>` is missing
247 |
248note: associated function defined here
249 --> library\ml\src\main\rust\src\vulkan_session.rs:80:12
250 |
251 80 | pub fn load(bytes: &[u8], base_dir: Option<&str>, key: &str) -> Result<Self, VulcanError> {
252 | ^^^^ ----------------------
253help: provide the argument
254 |
255184 | match GpuSession::load(&bytes, /* Option<&str> */, &tag) {
256 | +++++++++++++++++++
257
258error[E0599]: no associated function or constant named `preflight` found for struct `GpuSession` in the current scope
259 --> library\ml\src\main\rust\src\jni_bridge.rs:204:41
260 |
261204 | let summary = match GpuSession::preflight(&bytes) {
262 | ^^^^^^^^^ associated function or constant not found in `GpuSession`
263 |
264 ::: library\ml\src\main\rust\src\vulkan_session.rs:52:1
265 |
266 52 | pub struct GpuSession {
267 | --------------------- associated function or constant `preflight` not found for this struct
268 |
269note: if you're trying to build a new `GpuSession`, consider using `GpuSession::load` which returns `Result<GpuSession, VulcanError>`
270 --> library\ml\src\main\rust\src\vulkan_session.rs:80:5
271 |
272 80 | pub fn load(bytes: &[u8], base_dir: Option<&str>, key: &str) -> Result<Self, VulcanError> {
273 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
274
275error[E0599]: no associated function or constant named `load_path` found for struct `GpuSession` in the current scope
276 --> library\ml\src\main\rust\src\jni_bridge.rs:224:27
277 |
278224 | match GpuSession::load_path(&path) {
279 | ^^^^^^^^^ associated function or constant not found in `GpuSession`
280 |
281 ::: library\ml\src\main\rust\src\vulkan_session.rs:52:1
282 |
283 52 | pub struct GpuSession {
284 | --------------------- associated function or constant `load_path` not found for this struct
285 |
286note: if you're trying to build a new `GpuSession`, consider using `GpuSession::load` which returns `Result<GpuSession, VulcanError>`
287 --> library\ml\src\main\rust\src\vulkan_session.rs:80:5
288 |
289 80 | pub fn load(bytes: &[u8], base_dir: Option<&str>, key: &str) -> Result<Self, VulcanError> {
290 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
291
292error[E0308]: mismatched types
293 --> library\ml\src\main\rust\src\jni_bridge.rs:263:71
294 |
295263 | let output = with_session(handle, None, |session| session.run(&input).ok());
296 | --- ^^^^^^ expected `Vec<HostTensor>`, found `&Vec<u8>`
297 | |
298 | arguments to this method are incorrect
299 |
300 = note: expected struct `Vec<tensors::HostTensor>`
301 found reference `&Vec<u8>`
302note: method defined here
303 --> library\ml\src\main\rust\src\vulkan_session.rs:92:12
304 |
305 92 | pub fn run(&self, inputs: Vec<HostTensor>) -> Result<Vec<HostTensor>, VulcanError> {
306 | ^^^ -----------------------
307
308error[E0308]: mismatched types
309 --> library\ml\src\main\rust\src\jni_bridge.rs:264:34
310 |
311264 | jbytes_or_null(&mut env, output)
312 | -------------- ^^^^^^ expected `Option<Vec<u8>>`, found `Option<Vec<HostTensor>>`
313 | |
314 | arguments to this function are incorrect
315 |
316 = note: expected enum `Option<Vec<u8>>`
317 found enum `Option<Vec<tensors::HostTensor>>`
318note: function defined here
319 --> library\ml\src\main\rust\src\jni_bridge.rs:97:4
320 |
321 97 | fn jbytes_or_null(env: &mut JNIEnv, data: Option<Vec<u8>>) -> jbyteArray {
322 | ^^^^^^^^^^^^^^ ---------------------
323
324error[E0599]: no method named `output_shapes_json` found for mutable reference `&mut GpuSession` in the current scope
325 --> library\ml\src\main\rust\src\jni_bridge.rs:278:26
326 |
327278 | Some(session.output_shapes_json())
328 | ^^^^^^^^^^^^^^^^^^ method not found in `&mut GpuSession`
329
330error[E0599]: no method named `output_names_json` found for mutable reference `&mut GpuSession` in the current scope
331 --> library\ml\src\main\rust\src\jni_bridge.rs:293:70
332 |
333293 | let json = with_session(handle, None, |session| Some(session.output_names_json()));
334 | ^^^^^^^^^^^^^^^^^ method not found in `&mut GpuSession`
335
336error[E0599]: no method named `create_kv` found for mutable reference `&mut GpuSession` in the current scope
337 --> library\ml\src\main\rust\src\jni_bridge.rs:310:27
338 |
339310 | match session.create_kv(max_tokens) {
340 | ^^^^^^^^^ method not found in `&mut GpuSession`
341
342error[E0433]: cannot find module or crate `ash` in this scope
343 --> library\ml\src\main\rust\src\device.rs:142:16
344 |
345142 | instance: &ash::Instance,
346 | ^^^ use of unresolved module or unlinked crate `ash`
347 |
348 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
349
350error[E0433]: cannot find module or crate `ash` in this scope
351 --> library\ml\src\main\rust\src\device.rs:165:16
352 |
353165 | instance: &ash::Instance,
354 | ^^^ use of unresolved module or unlinked crate `ash`
355 |
356 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
357
358error[E0433]: cannot find module or crate `ash` in this scope
359 --> library\ml\src\main\rust\src\device.rs:194:45
360 |
361194 | fn create_instance(entry: &Entry) -> Result<ash::Instance, DeviceError> {
362 | ^^^ use of unresolved module or unlinked crate `ash`
363 |
364 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
365
366error[E0433]: cannot find module or crate `ash` in this scope
367 --> library\ml\src\main\rust\src\device.rs:207:16
368 |
369207 | instance: &ash::Instance,
370 | ^^^ use of unresolved module or unlinked crate `ash`
371 |
372 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
373
374error[E0433]: cannot find module or crate `ash` in this scope
375 --> library\ml\src\main\rust\src\device.rs:249:15
376 |
377249 | instance: ash::Instance,
378 | ^^^ use of unresolved module or unlinked crate `ash`
379 |
380 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
381
382error[E0433]: cannot find module or crate `ash` in this scope
383 --> library\ml\src\main\rust\src\device.rs:251:14
384 |
385251 | logical: ash::Device,
386 | ^^^ use of unresolved module or unlinked crate `ash`
387 |
388 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
389
390error[E0433]: cannot find module or crate `ash` in this scope
391 --> library\ml\src\main\rust\src\device.rs:260:37
392 |
393260 | pub const fn logical(&self) -> &ash::Device {
394 | ^^^ use of unresolved module or unlinked crate `ash`
395 |
396 = help: if you wanted to use a crate named `ash`, use `cargo add ash` to add it to your `Cargo.toml`
397
398Some errors have detailed explanations: E0061, E0277, E0308, E0425, E0432, E0433, E0599.
399For more information about an error, try `rustc --explain E0061`.
400error: could not compile `ml_vulkan` (lib) due to 29 previous errors