[GH-ISSUE #18] Centos 7 build errors #15

Closed
opened 2026-02-27 21:01:13 +03:00 by kerem · 4 comments
Owner

Originally created by @robkthx on GitHub (Dec 9, 2021).
Original GitHub issue: https://github.com/sg4r/proxmox-backup-client/issues/18

Following the instructions, running bash ./pbs.build.sh fails with the following errors:

warning: field is never read: `colon_token`
   --> /root/proxmox-backup-client/proxmox/proxmox-api-macro/src/util.rs:379:5
    |
379 |     pub colon_token: Token![:],
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `proxmox-api-macro` (lib) generated 1 warning
   Compiling proxmox v0.11.0 (/root/proxmox-backup-client/proxmox/proxmox)
   Compiling zstd-sys v1.4.13+zstd.1.4.3
error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/section_config.rs:451:37
    |
451 | ...                   Ok(value) => value,
    |                       ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
21  | use serde::__private::Ok;
    |
21  | use std::result::Result::Ok;
    |
21  | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:21:19
   |
21 |     } else if let Ok(format) = std::env::var(ENV_VAR_PROXMOX_OUTPUT_FORMAT) {
   |                   ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:456:17
    |
456 |                 Ok(text) => text,
    |                 ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:670:13
    |
670 |             Ok(text) => text,
    |             ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:37:9
   |
37 |         Ok((p, r)) => (p, r),
   |         ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:64:13
   |
64 |             Ok(value) => {
   |             ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:78:17
   |
78 |                 Ok(value) => {
   |                 ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:110:13
    |
110 |             Ok(value) => {
    |             ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:124:21
    |
124 |                     Ok(value) => {
    |                     ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:176:15
    |
176 |         (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)),
    |               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:176:29
    |
176 |         (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)),
    |                             ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:15
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:31
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |                               ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:51
    |
534 |         (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage {
    |                                                   ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
  --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:86:17
   |
86 |                 Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))),
   |                 ^^ not a tuple struct or tuple variant
   |
help: consider importing one of these items instead
   |
1  | use serde::__private::Ok;
   |
1  | use std::result::Result::Ok;
   |
1  | use core::result::Result::Ok;
   |

error[E0532]: expected tuple struct or tuple variant, found function `Ok`
   --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:168:9
    |
168 |         Ok(_) => Ok(password),
    |         ^^ not a tuple struct or tuple variant
    |
help: consider importing one of these items instead
    |
1   | use serde::__private::Ok;
    |
1   | use std::result::Result::Ok;
    |
1   | use core::result::Result::Ok;
    |

error[E0308]: mismatched types
   --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/getopts.rs:207:5
    |
153 | ) -> Result<(Value, Vec<String>), ParameterError> {
    |      -------------------------------------------- expected `std::result::Result<(Value, Vec<std::string::String>), schema::ParameterError>` because of return type
...
207 |     Ok((options, remaining))
    |     ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `schema::ParameterError`, found struct `anyhow::Error`
    |
    = note: expected enum `std::result::Result<_, schema::ParameterError>`
               found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
  --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:61:17
   |
50 |     fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
   |                                        ----------------- expected `std::result::Result<usize, std::io::Error>` because of return type
...
61 |                 Ok(written as usize)
   |                 ^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: `match` arms have incompatible types
  --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:69:37
   |
67 | /         match self {
68 | |             TtyOutput::Stdout(out) => out.flush(),
   | |                                       ----------- this is found to be of type `std::result::Result<(), std::io::Error>`
69 | |             TtyOutput::DevTty(_) => Ok(()),
   | |                                     ^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
70 | |         }
   | |_________- `match` arms have incompatible types
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
  --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:79:13
   |
76 |     pub fn open() -> io::Result<Option<Self>> {
   |                      ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type
...
79 |             Ok(Some(TtyOutput::Stdout(stdout)))
   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
  --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:86:27
   |
76 |     pub fn open() -> io::Result<Option<Self>> {
   |                      ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type
...
86 |                 Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))),
   |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error`
   |
   = note: expected enum `std::result::Result<_, std::io::Error>`
              found enum `std::result::Result<_, anyhow::Error>`

error[E0308]: mismatched types
   --> /root/proxmox-backup-client/proxmox/proxmox/src/tools/mod.rs:122:9
    |
115 |     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
    |                                              ----------- expected `std::result::Result<(), std::fmt::Error>` because of return type
...
122 |         Ok(())
    |         ^^^^^^ expected struct `std::fmt::Error`, found struct `anyhow::Error`
    |
    = note: expected enum `std::result::Result<_, std::fmt::Error>`
               found enum `std::result::Result<_, anyhow::Error>`

Some errors have detailed explanations: E0308, E0532.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `proxmox` due to 22 previous errors
warning: build failed, waiting for other jobs to finish...
The following warnings were emitted during compilation:

warning: couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2))
warning: set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

error: build failed
Originally created by @robkthx on GitHub (Dec 9, 2021). Original GitHub issue: https://github.com/sg4r/proxmox-backup-client/issues/18 Following the instructions, running `bash ./pbs.build.sh` fails with the following errors: ``` warning: field is never read: `colon_token` --> /root/proxmox-backup-client/proxmox/proxmox-api-macro/src/util.rs:379:5 | 379 | pub colon_token: Token![:], | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` on by default warning: `proxmox-api-macro` (lib) generated 1 warning Compiling proxmox v0.11.0 (/root/proxmox-backup-client/proxmox/proxmox) Compiling zstd-sys v1.4.13+zstd.1.4.3 error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/section_config.rs:451:37 | 451 | ... Ok(value) => value, | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 21 | use serde::__private::Ok; | 21 | use std::result::Result::Ok; | 21 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:21:19 | 21 | } else if let Ok(format) = std::env::var(ENV_VAR_PROXMOX_OUTPUT_FORMAT) { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:456:17 | 456 | Ok(text) => text, | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/text_table.rs:670:13 | 670 | Ok(text) => text, | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:37:9 | 37 | Ok((p, r)) => (p, r), | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:64:13 | 64 | Ok(value) => { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:78:17 | 78 | Ok(value) => { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:110:13 | 110 | Ok(value) => { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/command.rs:124:21 | 124 | Ok(value) => { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:176:15 | 176 | (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)), | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:176:29 | 176 | (Some(Ok(up)), Some(Ok(idle))) => Ok((up, idle)), | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:15 | 534 | (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:31 | 534 | (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/procfs/mod.rs:534:51 | 534 | (Some(Ok(size)), Some(Ok(resident)), Some(Ok(shared))) => Ok(ProcFsMemUsage { | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:86:17 | 86 | Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))), | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0532]: expected tuple struct or tuple variant, found function `Ok` --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:168:9 | 168 | Ok(_) => Ok(password), | ^^ not a tuple struct or tuple variant | help: consider importing one of these items instead | 1 | use serde::__private::Ok; | 1 | use std::result::Result::Ok; | 1 | use core::result::Result::Ok; | error[E0308]: mismatched types --> /root/proxmox-backup-client/proxmox/proxmox/src/api/cli/getopts.rs:207:5 | 153 | ) -> Result<(Value, Vec<String>), ParameterError> { | -------------------------------------------- expected `std::result::Result<(Value, Vec<std::string::String>), schema::ParameterError>` because of return type ... 207 | Ok((options, remaining)) | ^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `schema::ParameterError`, found struct `anyhow::Error` | = note: expected enum `std::result::Result<_, schema::ParameterError>` found enum `std::result::Result<_, anyhow::Error>` error[E0308]: mismatched types --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:61:17 | 50 | fn write(&mut self, buf: &[u8]) -> io::Result<usize> { | ----------------- expected `std::result::Result<usize, std::io::Error>` because of return type ... 61 | Ok(written as usize) | ^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error` | = note: expected enum `std::result::Result<_, std::io::Error>` found enum `std::result::Result<_, anyhow::Error>` error[E0308]: `match` arms have incompatible types --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:69:37 | 67 | / match self { 68 | | TtyOutput::Stdout(out) => out.flush(), | | ----------- this is found to be of type `std::result::Result<(), std::io::Error>` 69 | | TtyOutput::DevTty(_) => Ok(()), | | ^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error` 70 | | } | |_________- `match` arms have incompatible types | = note: expected enum `std::result::Result<_, std::io::Error>` found enum `std::result::Result<_, anyhow::Error>` error[E0308]: mismatched types --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:79:13 | 76 | pub fn open() -> io::Result<Option<Self>> { | ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type ... 79 | Ok(Some(TtyOutput::Stdout(stdout))) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error` | = note: expected enum `std::result::Result<_, std::io::Error>` found enum `std::result::Result<_, anyhow::Error>` error[E0308]: mismatched types --> /root/proxmox-backup-client/proxmox/proxmox/src/sys/linux/tty.rs:86:27 | 76 | pub fn open() -> io::Result<Option<Self>> { | ------------------------ expected `std::result::Result<std::option::Option<TtyOutput>, std::io::Error>` because of return type ... 86 | Ok(fd) => Ok(Some(TtyOutput::DevTty(fd))), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `std::io::Error`, found struct `anyhow::Error` | = note: expected enum `std::result::Result<_, std::io::Error>` found enum `std::result::Result<_, anyhow::Error>` error[E0308]: mismatched types --> /root/proxmox-backup-client/proxmox/proxmox/src/tools/mod.rs:122:9 | 115 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ----------- expected `std::result::Result<(), std::fmt::Error>` because of return type ... 122 | Ok(()) | ^^^^^^ expected struct `std::fmt::Error`, found struct `anyhow::Error` | = note: expected enum `std::result::Result<_, std::fmt::Error>` found enum `std::result::Result<_, anyhow::Error>` Some errors have detailed explanations: E0308, E0532. For more information about an error, try `rustc --explain E0308`. error: could not compile `proxmox` due to 22 previous errors warning: build failed, waiting for other jobs to finish... The following warnings were emitted during compilation: warning: couldn't execute `llvm-config --prefix` (error: No such file or directory (os error 2)) warning: set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable error: build failed ```
kerem closed this issue 2026-02-27 21:01:13 +03:00
Author
Owner

@JoRoSouth commented on GitHub (Dec 19, 2021):

Same issue. Was trying to add the client to a centos based system.

The rustc --explain E0308

--Below

Expected type did not match the received type.

Erroneous code examples:

fn plus_one(x: i32) -> i32 {
    x + 1
}

plus_one("Not a number");
//       ^^^^^^^^^^^^^^ expected `i32`, found `&str`

if "Not a bool" {
// ^^^^^^^^^^^^ expected `bool`, found `&str`
}

let x: f32 = "Not a float";
//     ---   ^^^^^^^^^^^^^ expected `f32`, found `&str`
//     |
//     expected due to this

This error occurs when an expression was used in a place where the compiler
expected an expression of a different type. It can occur in several cases, the
most common being when calling a function and passing an argument which has a
different type than the matching type in the function declaration.

<!-- gh-comment-id:997433872 --> @JoRoSouth commented on GitHub (Dec 19, 2021): Same issue. Was trying to add the client to a centos based system. The rustc --explain E0308 --Below Expected type did not match the received type. Erroneous code examples: ``` fn plus_one(x: i32) -> i32 { x + 1 } plus_one("Not a number"); // ^^^^^^^^^^^^^^ expected `i32`, found `&str` if "Not a bool" { // ^^^^^^^^^^^^ expected `bool`, found `&str` } let x: f32 = "Not a float"; // --- ^^^^^^^^^^^^^ expected `f32`, found `&str` // | // expected due to this ``` This error occurs when an expression was used in a place where the compiler expected an expression of a different type. It can occur in several cases, the most common being when calling a function and passing an argument which has a different type than the matching type in the function declaration.
Author
Owner

@sg4r commented on GitHub (Dec 25, 2021):

i have check version 2.1.2, but i have build error
openssl::pkcs5::scrypt(
| ^^^^^^ not found in openssl::pkcs5

it work for centos8

<!-- gh-comment-id:1001069885 --> @sg4r commented on GitHub (Dec 25, 2021): i have check version 2.1.2, but i have build error openssl::pkcs5::scrypt( | ^^^^^^ not found in `openssl::pkcs5` it work for centos8
Author
Owner

@sg4r commented on GitHub (Jan 23, 2022):

hi, must use openssl11 from epel and i work afert set varoable path. i must refresh the build script in 2 files for centos7 and centos8. you can find the centos7 rpm at https://github.com/sg4r/proxmox-backup-client/releases/tag/v2.1.2

<!-- gh-comment-id:1019543859 --> @sg4r commented on GitHub (Jan 23, 2022): hi, must use openssl11 from epel and i work afert set varoable path. i must refresh the build script in 2 files for centos7 and centos8. you can find the centos7 rpm at https://github.com/sg4r/proxmox-backup-client/releases/tag/v2.1.2
Author
Owner

@robkthx commented on GitHub (Jan 24, 2022):

hi, must use openssl11 from epel and i work afert set varoable path. i must refresh the build script in 2 files for centos7 and centos8. you can find the centos7 rpm at https://github.com/sg4r/proxmox-backup-client/releases/tag/v2.1.2

Those RPMs worked, thanks.

<!-- gh-comment-id:1020421564 --> @robkthx commented on GitHub (Jan 24, 2022): > hi, must use openssl11 from epel and i work afert set varoable path. i must refresh the build script in 2 files for centos7 and centos8. you can find the centos7 rpm at https://github.com/sg4r/proxmox-backup-client/releases/tag/v2.1.2 Those RPMs worked, thanks.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-backup-client#15
No description provided.