Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add installation issues chapter to the readme #43

Open
Matin7697 opened this issue Jun 18, 2023 · 3 comments
Open

Add installation issues chapter to the readme #43

Matin7697 opened this issue Jun 18, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Matin7697
Copy link

Matin7697 commented Jun 18, 2023

Hi, i want to install x8 (i use aarch64) (cargo install x8)
but i got this error:

error: cannot find derive macro `Serialize` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/network/utils.rs:47:39
   |
47 | #[derive(Debug, Clone, PartialEq, Eq, Serialize, Copy)]
   |                                       ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/network/utils.rs:7:5
   |
7  | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^

error: cannot find derive macro `Serialize` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:15:17
   |
15 | #[derive(Debug, Serialize)]
   |                 ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:1:5
   |
1  | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^

error: cannot find attribute `serde` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:35:7
   |
35 |     #[serde(skip_serializing)]
   |       ^^^^^
   |
   = note: `serde` is in scope, but it is a crate, not an attribute

error: cannot find attribute `serde` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:39:7
   |
39 |     #[serde(skip_serializing)]
   |       ^^^^^
   |
   = note: `serde` is in scope, but it is a crate, not an attribute

error: cannot find derive macro `Serialize` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:27:39
   |
27 | #[derive(Debug, Clone, PartialEq, Eq, Serialize)]
   |                                       ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:8:5
   |
8  | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^

error: cannot find derive macro `Serialize` in this scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:35:24
   |
35 | #[derive(Debug, Clone, Serialize)]
   |                        ^^^^^^^^^
   |
note: `Serialize` is imported here, but it is only a trait, without a derive macro
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/utils.rs:8:5
   |
8  | use serde::Serialize;
   |     ^^^^^^^^^^^^^^^^

error[E0277]: the trait bound `RunnerOutput: Serialize` is not satisfied
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/x8-4.3.0/src/runner/output.rs:144:36
     |
144  |             serde_json::to_string(&self).unwrap()
     |             ---------------------  ^^^^ the trait `Serialize` is not implemented for `RunnerOutput`
     |             |
     |             required by a bound introduced by this call
     |
     = help: the following other types implement trait `Serialize`:
               &'a T
               &'a mut T
               ()
               (T0, T1)
               (T0, T1, T2)
               (T0, T1, T2, T3)
               (T0, T1, T2, T3, T4)
               (T0, T1, T2, T3, T4, T5)
             and 132 others
     = note: required for `Vec<RunnerOutput>` to implement `Serialize`
     = note: 1 redundant requirement hidden
     = note: required for `&Vec<RunnerOutput>` to implement `Serialize`
note: required by a bound in `serde_json::to_string`
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.97/src/ser.rs:2145:17
     |
2145 |     T: ?Sized + Serialize,
     |                 ^^^^^^^^^ required by this bound in `to_string`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `x8` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `x8 v4.3.0`, intermediate artifacts can be found at `/tmp/cargo-installZuluBu`
@Sh1Yo
Copy link
Owner

Sh1Yo commented Jun 19, 2023

Hi. Try to update rust version.

@Sh1Yo Sh1Yo changed the title Error while installing Add installation issues chapter to the readme Jun 19, 2023
@Sh1Yo Sh1Yo added the enhancement New feature or request label Jun 19, 2023
@Sh1Yo
Copy link
Owner

Sh1Yo commented Jun 30, 2023

I've checked the issue and it turns out the problem was in serde dependency that caused the build to break in the stable version of the rust. I've updated the dependency and it builds fine now.

The main issue of adding common installation issues to README.md is still unsolved tho.

@Matin7697
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants