[GH-ISSUE #96] Compilation error[E0460]: found possibly newer version of crate log which librespot depends on #87

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

Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/96

Issue by chriszirkel
Friday Nov 03, 2017 at 16:53 GMT
Originally opened as https://github.com/plietar/librespot/issues/264


After I cloned and installed librespot on my RPi3 with cargo build, I tried to run the play.rs example with the following command:

pi@raspberrypi:~/librespot/target/release $ rustc play.rs --extern librespot=liblibrespot.rlib && ./excecutable

This results in the following error:

error[E0460]: found possibly newer version of crate 'log' which 'librespot' depends on
--> play.rs:1:1
|
1 | extern crate librespot;
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: crate 'log' path #1: /home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblog-4df2ac3c730deffe.rlib
= note: crate 'librespot' path #1: /home/pi/librespot/target/release/liblibrespot.rlib

error: aborting due to previous error

I don't really know what the problem is about. According to Cargo.toml, librespot has a dependency to log = "0.3.5", and the newest version is of log = "0.3.8".
Do I need to update this specific crate?

Originally created by @sashahilton00 on GitHub (Jan 29, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/96 <a href="https://github.com/chriszirkel"><img src="https://avatars1.githubusercontent.com/u/950244?v=4" align="left" width="96" height="96" hspace="10"></img></a> **Issue by [chriszirkel](https://github.com/chriszirkel)** _Friday Nov 03, 2017 at 16:53 GMT_ _Originally opened as https://github.com/plietar/librespot/issues/264_ ---- After I cloned and installed librespot on my RPi3 with cargo build, I tried to run the play.rs example with the following command: `pi@raspberrypi:~/librespot/target/release $ rustc play.rs --extern librespot=liblibrespot.rlib && ./excecutable` This results in the following error: error[E0460]: found possibly newer version of crate 'log' which 'librespot' depends on --> play.rs:1:1 | 1 | extern crate librespot; | ^^^^^^^^^^^^^^^^^^^^^^^ | = note: perhaps that crate needs to be recompiled? = note: crate 'log' path #1: /home/pi/.rustup/toolchains/stable-armv7-unknown-linux-gnueabihf/lib/rustlib/armv7-unknown-linux-gnueabihf/lib/liblog-4df2ac3c730deffe.rlib = note: crate 'librespot' path #1: /home/pi/librespot/target/release/liblibrespot.rlib error: aborting due to previous error I don't really know what the problem is about. According to Cargo.toml, librespot has a dependency to log = "0.3.5", and the newest version is of log = "0.3.8". Do I need to update this specific crate?
kerem 2026-02-27 19:28:45 +03:00
Author
Owner

@ComlOnline commented on GitHub (Jan 29, 2018):

Hey @chriszirkel, Is there any reason you didn't run the binary directly?

./librespot --name "speaker"
<!-- gh-comment-id:361319822 --> @ComlOnline commented on GitHub (Jan 29, 2018): Hey @chriszirkel, Is there any reason you didn't run the binary directly? ``` ./librespot --name "speaker" ```
Author
Owner

@sashahilton00 commented on GitHub (Feb 7, 2018):

Can we close this? I can't reproduce in either release or debug when compiling for RPi...

<!-- gh-comment-id:363787196 --> @sashahilton00 commented on GitHub (Feb 7, 2018): Can we close this? I can't reproduce in either release or debug when compiling for RPi...
Author
Owner

@plietar commented on GitHub (Feb 7, 2018):

You should be building play.rs with cargo, not rustc.

cargo build --example play
<!-- gh-comment-id:363817844 --> @plietar commented on GitHub (Feb 7, 2018): You should be building `play.rs` with cargo, not rustc. ``` cargo build --example play ```
Author
Owner

@sashahilton00 commented on GitHub (Feb 7, 2018):

This feels like a non-issue, so closing for now. Feel free to reopen if you think I've closed this prematurely.

<!-- gh-comment-id:363819558 --> @sashahilton00 commented on GitHub (Feb 7, 2018): This feels like a non-issue, so closing for now. Feel free to reopen if you think I've closed this prematurely.
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#87
No description provided.