Skip to content

[Bug]: Crash compiling v0.12.1 on Linux #321

@sbrl

Description

@sbrl

Is there an existing issue for this?

  • I have searched the existing issues

Description

I'm installing rimage via cargo on Artix, but unfortunately the latest release is crashing on install:

$ cargo install rimage
.....
   Compiling zune-image v0.5.0-rc0
   Compiling zune-imageprocs v0.5.0-rc0
   Compiling libavif v0.14.0
   Compiling rimage v0.12.1
error[E0308]: mismatched types
   --> /home/sbrl/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rimage-0.12.1/src/main.rs:189:21
    |
189 |     LogWrapper::new(multi.clone(), logger).try_init().unwrap();
    |     --------------- ^^^^^^^^^^^^^ expected `indicatif::multi::MultiProgress`, found `MultiProgress`
    |     |
    |     arguments to this function are incorrect
    |
note: two different versions of crate `indicatif` are being used; two types coming from two different versions of the same crate are different types even if they look the same
   --> /home/sbrl/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/multi.rs:18:1
    |
18  | pub struct MultiProgress {
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `MultiProgress`
    |
   ::: /home/sbrl/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.18.0/src/multi.rs:18:1
    |
18  | pub struct MultiProgress {
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `indicatif::multi::MultiProgress`
    |
   ::: /home/sbrl/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rimage-0.12.1/src/main.rs:14:5
    |
14  | use indicatif::{
    |     --------- one version of crate `indicatif` used here, as a direct dependency of the current crate
...
18  | use indicatif_log_bridge::LogWrapper;
    |     -------------------- one version of crate `indicatif` used here, as a dependency of crate `indicatif_log_bridge`
    = help: you can use `cargo tree` to explore your dependency tree
note: associated function defined here
   --> /home/sbrl/.config/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-log-bridge-0.2.3/src/lib.rs:67:12
    |
67  |     pub fn new(bar: MultiProgress, log: L) -> Self {
    |            ^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `rimage` (bin "rimage") due to 1 previous error
error: failed to compile `rimage v0.12.1`, intermediate artifacts can be found at `/tmp/cargo-installGdwr2z`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.


Updated 0 packages.
Failed to update rimage.

Expected behavior

I expect it to install without crashing

Library Version

None

Steps To Reproduce

  1. cargo install rimage
  2. Wait
  3. See crash

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions