[GH-ISSUE #411] Error while compiling (on core/src/channel.rs:69) #265

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

Originally created by @fariss on GitHub (Dec 14, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/411

Hello;

I am encountring this error, while trying to build librespot.
Screenshot of the error when compiling librespot-core

Same output for cargo build and cargo build --release:

....
/* successfully compiled crates */
....

   Compiling librespot-core v0.1.0 (/home/fariss/librespot/core)
   Compiling tokio-core v0.1.17
   Compiling rodio v0.9.0
   Compiling tokio-proto v0.1.1
   Compiling libmdns v0.2.4
   Compiling hyper v0.11.27
   Compiling hyper-proxy v0.4.1
error[E0658]: use of unstable library feature 'duration_as_u128' (see issue #50202)
  --> core/src/channel.rs:69:64
   |
69 |                 if (current_time - download_measurement_start).as_millis() > 1000 {
   |                                                                ^^^^^^^^^

error[E0658]: use of unstable library feature 'duration_as_u128' (see issue #50202)
  --> core/src/channel.rs:71:71
   |
71 |                         / (current_time - download_measurement_start).as_millis() as usize;
   |                                                                       ^^^^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `librespot-core`.

To learn more, run the command again with --verbose.

Originally created by @fariss on GitHub (Dec 14, 2019). Original GitHub issue: https://github.com/librespot-org/librespot/issues/411 Hello; I am encountring this error, while trying to build librespot. ![Screenshot of the error when compiling librespot-core](https://user-images.githubusercontent.com/31004043/70852032-de357c00-1e9c-11ea-9806-f55d12f13533.png) Same output for `cargo build` and `cargo build --release`: ```bash .... /* successfully compiled crates */ .... Compiling librespot-core v0.1.0 (/home/fariss/librespot/core) Compiling tokio-core v0.1.17 Compiling rodio v0.9.0 Compiling tokio-proto v0.1.1 Compiling libmdns v0.2.4 Compiling hyper v0.11.27 Compiling hyper-proxy v0.4.1 error[E0658]: use of unstable library feature 'duration_as_u128' (see issue #50202) --> core/src/channel.rs:69:64 | 69 | if (current_time - download_measurement_start).as_millis() > 1000 { | ^^^^^^^^^ error[E0658]: use of unstable library feature 'duration_as_u128' (see issue #50202) --> core/src/channel.rs:71:71 | 71 | / (current_time - download_measurement_start).as_millis() as usize; | ^^^^^^^^^ error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0658`. error: Could not compile `librespot-core`. To learn more, run the command again with --verbose. ```
kerem closed this issue 2026-02-27 19:29:44 +03:00
Author
Owner

@HEnquist commented on GitHub (Dec 17, 2019):

Which version of Cargo, rustc etc are you using? I compiled yesterday without any problems using the default versions in Fedora 31.

<!-- gh-comment-id:566728386 --> @HEnquist commented on GitHub (Dec 17, 2019): Which version of Cargo, rustc etc are you using? I compiled yesterday without any problems using the default versions in Fedora 31.
Author
Owner

@fariss commented on GitHub (Dec 17, 2019):

Which version of Cargo, rustc etc are you using? I compiled yesterday without any problems using the default versions in Fedora 31.

Rustc version:

$ rustc --version
rustc 1.32.0 (9fda7c223 2019-01-16)

Cargo version:

$ cargo --version
cargo 1.32.0 (8610973aa 2019-01-02)

My Ubuntu version is 19.10:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 19.10
Release:	19.10
Codename:	eoan
<!-- gh-comment-id:566782996 --> @fariss commented on GitHub (Dec 17, 2019): >Which version of Cargo, rustc etc are you using? I compiled yesterday without any problems using the default versions in Fedora 31. Rustc version: ```bash $ rustc --version rustc 1.32.0 (9fda7c223 2019-01-16) ``` Cargo version: ```bash $ cargo --version cargo 1.32.0 (8610973aa 2019-01-02) ``` My Ubuntu version is `19.10`: ```bash $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.10 Release: 19.10 Codename: eoan ```
Author
Owner

@HEnquist commented on GitHub (Dec 17, 2019):

Ok, then try to upgrade rustc. The readme says at least 1.33.

<!-- gh-comment-id:566798294 --> @HEnquist commented on GitHub (Dec 17, 2019): Ok, then try to upgrade rustc. The readme says at least 1.33.
Author
Owner

@fariss commented on GitHub (Jan 28, 2020):

After updating rustc, it works like a charm.
Closing this issue.

Thank you.

<!-- gh-comment-id:579137687 --> @fariss commented on GitHub (Jan 28, 2020): After updating rustc, it works like a charm. Closing this issue. Thank you.
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#265
No description provided.