Skip to content

Build Errors #5

@virjilakrum

Description

@virjilakrum

= note: #[warn(unused_variables)] on by default

warning: gpu-share-vm-manager (lib test) generated 3 warnings (3 duplicates)
warning: gpu-share-vm-manager (lib) generated 3 warnings (run cargo fix --lib -p gpu-share-vm-manager to apply 2 suggestions)
error[E0432]: unresolved import crate::core::VMConfig
--> tests/live_tests.rs:7:35
|
7 | use crate::core::{LibvirtManager, VMConfig};
| ^^^^^^^^ no VMConfig in core

error[E0432]: unresolved import crate::gpu::GPUConfig
--> tests/live_tests.rs:8:30
|
8 | use crate::gpu::{GPUManager, GPUConfig};
| ^^^^^^^^^ no GPUConfig in gpu

warning: unused import: error
--> tests/live_tests.rs:5:21
|
5 | use tracing::{info, error};
| ^^^^^
|
= note: #[warn(unused_imports)] on by default

error[E0433]: failed to resolve: could not find Server in axum
--> src/main.rs:40:11
|
40 | axum::Server::bind(&addr)
| ^^^^^^ could not find Server in axum

error[E0061]: this function takes 0 arguments but 1 argument was supplied
--> tests/live_tests.rs:13:19
|
13 | let manager = LibvirtManager::new("qemu:///system")?;
| ^^^^^^^^^^^^^^^^^^^ ---------------- unexpected argument of type &'static str
|
note: associated function defined here
--> /Users/dante/Desktop/reacthreejs/gpu-share-vm-manager/src/core/libvirt.rs:15:12
|
15 | pub fn new() -> Result {
| ^^^
help: remove the extra argument
|
13 - let manager = LibvirtManager::new("qemu:///system")?;
13 + let manager = LibvirtManager::new()?;
|

error[E0599]: no method named list_all_domains found for struct LibvirtManager in the current scope
--> tests/live_tests.rs:16:27
|
16 | for domain in manager.list_all_domains()? {
| ^^^^^^^^^^^^^^^^
|
help: there is a method list_domains with a similar name
|
16 | for domain in manager.list_domains()? {
| ~~~~~~~~~~~~

error[E0061]: this method takes 3 arguments but 1 argument was supplied
--> tests/live_tests.rs:42:22
|
42 | let vm = libvirt.create_vm(&config).await?;
| ^^^^^^^^^--------- two arguments of type u64 and u32 are missing
|
note: method defined here
--> /Users/dante/Desktop/reacthreejs/gpu-share-vm-manager/src/core/libvirt.rs:22:12
|
22 | pub fn create_vm(&self, name: &str, memory_kb: u64, vcpus: u32) -> Result {
| ^^^^^^^^^
help: provide the arguments
|
42 | let vm = libvirt.create_vm(&config, /* u64 /, / u32 */).await?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0277]: Result<virt::domain::Domain, anyhow::Error> is not a future
--> tests/live_tests.rs:42:41
|
42 | let vm = libvirt.create_vm(&config).await?;
| -^^^^^
| ||
| |Result<virt::domain::Domain, anyhow::Error> is not a future
| help: remove the .await
|
= help: the trait Future is not implemented for Result<virt::domain::Domain, anyhow::Error>
= note: Result<virt::domain::Domain, anyhow::Error> must be a future or must implement IntoFuture to be awaited
= note: required for Result<virt::domain::Domain, anyhow::Error> to implement IntoFuture

error[E0277]: Result<(), anyhow::Error> is not a future
--> tests/live_tests.rs:68:44
|
68 | let gpus = gpu_manager.discover_gpus().await?;
| -^^^^^
| ||
| |Result<(), anyhow::Error> is not a future
| help: remove the .await
|
= help: the trait Future is not implemented for Result<(), anyhow::Error>
= note: Result<(), anyhow::Error> must be a future or must implement IntoFuture to be awaited
= note: required for Result<(), anyhow::Error> to implement IntoFuture

error[E0599]: no method named get_iommu_group found for struct GPUManager in the current scope
--> tests/live_tests.rs:75:35
|
75 | let iommu_group = gpu_manager.get_iommu_group(&test_gpu.id)?;
| ^^^^^^^^^^^^^^^
|
help: there is a method assign_iommu_groups with a similar name, but with different arguments
--> /Users/dante/Desktop/reacthreejs/gpu-share-vm-manager/src/gpu/device.rs:135:5
|
135 | pub fn assign_iommu_groups(&mut self) -> Result<()> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0061]: this method takes 3 arguments but 1 argument was supplied
--> tests/live_tests.rs:87:22
|
87 | let vm = libvirt.create_vm(&config).await?;
| ^^^^^^^^^--------- two arguments of type u64 and u32 are missing
|
note: method defined here
--> /Users/dante/Desktop/reacthreejs/gpu-share-vm-manager/src/core/libvirt.rs:22:12
|
22 | pub fn create_vm(&self, name: &str, memory_kb: u64, vcpus: u32) -> Result {
| ^^^^^^^^^
help: provide the arguments
|
87 | let vm = libvirt.create_vm(&config, /* u64 /, / u32 */).await?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0277]: Result<virt::domain::Domain, anyhow::Error> is not a future
--> tests/live_tests.rs:87:41
|
87 | let vm = libvirt.create_vm(&config).await?;
| -^^^^^
| ||
| |Result<virt::domain::Domain, anyhow::Error> is not a future
| help: remove the .await
|
= help: the trait Future is not implemented for Result<virt::domain::Domain, anyhow::Error>
= note: Result<virt::domain::Domain, anyhow::Error> must be a future or must implement IntoFuture to be awaited
= note: required for Result<virt::domain::Domain, anyhow::Error> to implement IntoFuture

error[E0277]: the size for values of type str cannot be known at compilation time
--> tests/live_tests.rs:87:9
|
87 | let vm = libvirt.create_vm(&config).await?;
| ^^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for str
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature

error[E0277]: the size for values of type str cannot be known at compilation time
--> tests/live_tests.rs:87:14
|
87 | let vm = libvirt.create_vm(&config).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for str
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature

error[E0277]: the size for values of type str cannot be known at compilation time
--> tests/live_tests.rs:87:14
|
87 | let vm = libvirt.create_vm(&config).await?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for str
note: required by an implicit Sized bound in ControlFlow
--> /Users/dante/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/control_flow.rs:85:25
|
85 | pub enum ControlFlow<B, C = ()> {
| ^^^^^^ required by the implicit Sized requirement on this type parameter in ControlFlow

error[E0277]: the size for values of type str cannot be known at compilation time
--> tests/live_tests.rs:87:46
|
87 | let vm = libvirt.create_vm(&config).await?;
| ^ doesn't have a size known at compile-time
|
= help: the trait Sized is not implemented for str
note: required by a bound in Break
--> /Users/dante/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ops/control_flow.rs:85:25
|
85 | pub enum ControlFlow<B, C = ()> {
| ^^^^^^ required by this bound in Break
...
93 | Break(B),
| ----- required by a bound in this variant

error[E0277]: Result<String, anyhow::Error> is not a future
--> tests/live_tests.rs:95:52
|
95 | gpu_manager.attach_gpu_to_vm(&vm, &gpu_config).await?;
| -^^^^^
| ||
| |Result<String, anyhow::Error> is not a future
| help: remove the .await
|
= help: the trait Future is not implemented for Result<String, anyhow::Error>
= note: Result<String, anyhow::Error> must be a future or must implement IntoFuture to be awaited
= note: required for Result<String, anyhow::Error> to implement IntoFuture

error[E0599]: no method named get_xml_desc found for type str in the current scope
--> tests/live_tests.rs:98:18
|
98 | let xml = vm.get_xml_desc(0)?;
| ^^^^^^^^^^^^ method not found in str

error[E0599]: no method named create found for type str in the current scope
--> tests/live_tests.rs:103:8
|
103 | vm.create()?;
| ^^^^^^ method not found in str

error[E0599]: no method named is_active found for type str in the current scope
--> tests/live_tests.rs:104:16
|
104 | assert!(vm.is_active()?);
| ^^^^^^^^^ method not found in str

error[E0599]: no method named get_name found for type str in the current scope
--> tests/live_tests.rs:114:37
|
114 | assert!(output.contains(&vm.get_name()?), "VM'de GPU görünmüyor");
| ^^^^^^^^ method not found in str

error[E0599]: no method named destroy found for type str in the current scope
--> tests/live_tests.rs:116:8
|
116 | vm.destroy()?;
| ^^^^^^^ method not found in str

error[E0599]: no method named undefine found for type str in the current scope
--> tests/live_tests.rs:117:8
|
117 | vm.undefine()?;
| ^^^^^^^^
|
help: there is a method underline with a similar name
|
117 | vm.underline()?;
| ~~~~~~~~~

error[E0061]: this method takes 3 arguments but 1 argument was supplied
--> tests/live_tests.rs:136:22
|
136 | let vm = libvirt.create_vm(&config).await?;
| ^^^^^^^^^--------- two arguments of type u64 and u32 are missing
|
note: method defined here
--> /Users/dante/Desktop/reacthreejs/gpu-share-vm-manager/src/core/libvirt.rs:22:12
|
22 | pub fn create_vm(&self, name: &str, memory_kb: u64, vcpus: u32) -> Result {
| ^^^^^^^^^
help: provide the arguments
|
136 | let vm = libvirt.create_vm(&config, /* u64 /, / u32 */).await?;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

error[E0277]: Result<virt::domain::Domain, anyhow::Error> is not a future
--> tests/live_tests.rs:136:41
|
136 | let vm = libvirt.create_vm(&config).await?;
| -^^^^^
| ||
| |Result<virt::domain::Domain, anyhow::Error> is not a future
| help: remove the .await
|
= help: the trait Future is not implemented for Result<virt::domain::Domain, anyhow::Error>
= note: Result<virt::domain::Domain, anyhow::Error> must be a future or must implement IntoFuture to be awaited
= note: required for Result<virt::domain::Domain, anyhow::Error> to implement IntoFuture

error[E0599]: no method named get_metrics found for struct MetricsCollector in the current scope
--> tests/live_tests.rs:141:37
|
141 | let collected_metrics = metrics.get_metrics(&vm.get_uuid_string()?).await?;
| ^^^^^^^^^^^
|
help: there is a method get_vm_metrics with a similar name
|
141 | let collected_metrics = metrics.get_vm_metrics(&vm.get_uuid_string()?).await?;
| ~~~~~~~~~~~~~~

Some errors have detailed explanations: E0061, E0277, E0432, E0599.
For more information about an error, try rustc --explain E0061.
warning: gpu-share-vm-manager (test "live_tests") generated 1 warning
error: could not compile gpu-share-vm-manager (test "live_tests") due to 24 previous errors; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
For more information about this error, try rustc --explain E0433.
warning: gpu-share-vm-manager (bin "gpu-share-vm-manager") generated 3 warnings (3 duplicates)
error: could not compile gpu-share-vm-manager (bin "gpu-share-vm-manager") due to 1 previous error; 3 warnings emitted
warning: gpu-share-vm-manager (bin "gpu-share-vm-manager" test) generated 3 warnings (3 duplicates)
error: could not compile gpu-share-vm-manager (bin "gpu-share-vm-manager" test) due to 1 previous error; 3 warnings emitted

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentationhelp wantedExtra attention is neededinvalidThis doesn't seem rightlibvirtLibvirt is an open-source API, daemon and management tool for managing platform virtualizationtestTest Suite of gpu-share-vm-managervmVirtual Machine

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions