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

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

Originally created by @tjagh on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1681

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`.

Originally created by @tjagh on GitHub (Jan 25, 2026). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1681 ### 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: ```rust 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`. ```
kerem 2026-02-27 19:32:21 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@photovoltex commented on GitHub (Jan 25, 2026):

This sounds like a new (patch) version did break something.

Could you try installing with the --locked flag? This should in theory resolve your problem^^

<!-- gh-comment-id:3796634589 --> @photovoltex commented on GitHub (Jan 25, 2026): This sounds like a new (patch) version did break something. Could you try installing with the [`--locked`](https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile) flag? This should _in theory_ resolve your problem^^
Author
Owner

@tjagh commented on GitHub (Jan 25, 2026):

This sounds like a new (patch) version did break something.

Could you try installing with the --locked flag? This should in theory resolve your problem^^

thx photovoltex, i could build with --locked.

should i close this or let it open for the base issue ?

<!-- gh-comment-id:3796840743 --> @tjagh commented on GitHub (Jan 25, 2026): > This sounds like a new (patch) version did break something. > > Could you try installing with the [`--locked`](https://doc.rust-lang.org/cargo/commands/cargo-install.html#dealing-with-the-lockfile) flag? This should _in theory_ resolve your problem^^ thx photovoltex, i could build with --locked. should i close this or let it open for the base issue ?
Author
Owner

@photovoltex commented on GitHub (Jan 25, 2026):

let it as-is, as there seems to be an issue somewhere, we just need to identify where and why^^. and besides that, it will also be helpful for others to resolve their issues

<!-- gh-comment-id:3797016270 --> @photovoltex commented on GitHub (Jan 25, 2026): let it as-is, as there seems to be an issue somewhere, we just need to identify where and why^^. and besides that, it will also be helpful for others to resolve their issues
Author
Owner

@SharliBeicon commented on GitHub (Jan 26, 2026):

I'm facing this same error in my project as well (I use librespot as library). Problem appeared when I updated some dependencies and cleaned the lockfile.

It doesn't seems like an error with librespot itself, since I've been using the same version for a while. The error is upstream, specifically in vergen-gitcl which has a broken dependency specification.

vergen-gitcl depends on both:
- vergen, which brings vergen-lib v9.1.0 to the dependency tree
- vergen-lib directly, which resolves to v0.1.6

There is an open issue in their repo: https://github.com/rustyhorde/vergen/issues/478

<!-- gh-comment-id:3799118282 --> @SharliBeicon commented on GitHub (Jan 26, 2026): I'm facing this same error in my project as well (I use `librespot` as library). Problem appeared when I updated some dependencies and cleaned the lockfile. It doesn't seems like an error with `librespot` itself, since I've been using the same version for a while. The error is upstream, specifically in `vergen-gitcl` which has a broken dependency specification. `vergen-gitcl` depends on both: - `vergen`, which brings `vergen-lib v9.1.0` to the dependency tree - `vergen-lib` directly, which resolves to `v0.1.6` There is an open issue in their repo: https://github.com/rustyhorde/vergen/issues/478
Sign in to join this conversation.
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/librespot#765
No description provided.