Skip to content

error[E0277]: the trait bound vergen::feature::build::Build: vergen_lib::entries::Add is not satisfiedΒ #1681

@tjagh

Description

@tjagh

Look for similar bugs

found nothing.

Description

building 0.8.0 on debian trixie fails.

Version

0.8.0

How to reproduce

Steps to reproduce the behavior in librespot e.g.

  1. installed empty VM for testing (proxmox, trixie) (build failed on a media pc before, wanted a clean test env)
  2. installed rust w. rustup
  3. installed all possibly required libs
  4. cargo install librespot

Host (what you are running librespot on):

  • OS: linux / debian trixie
  • Platform: x86 VM on AMD4 proxmox node

Additional context

none.

output of cargo install librespot:

error[E0277]: the trait bound `vergen::feature::build::Build: vergen_lib::entries::Add` is not satisfied
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-core-0.8.0/build.rs:16:27
    |
 16 |         .add_instructions(&build)?
    |                           ^^^^^^ unsatisfied trait bound
    |
    = help: the trait `vergen_lib::entries::Add` is not implemented for `vergen::feature::build::Build`
note: there are multiple different versions of crate `vergen_lib` in the dependency graph
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/src/entries.rs:45:1
    |
 45 | pub trait Add {
    | ^^^^^^^^^^^^^ this is the expected trait
    |
   ::: /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-9.1.0/src/entries.rs:45:1
    |
 45 | pub trait Add {
    | ------------- this is the found trait
    = help: you can use `cargo tree` to explore your dependency tree
help: the trait `vergen_lib::entries::Add` is implemented for `Gitcl`
   --> /root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-gitcl-1.0.8/src/gitcl/mod.rs:910:1
    |
910 | impl AddEntries for Gitcl {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: required for the cast from `&vergen::feature::build::Build` to `&dyn vergen_lib::entries::Add`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `librespot-core` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `librespot v0.8.0`, intermediate artifacts can be found at `/tmp/cargo-installZA1SFy`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions