[GH-ISSUE #993] Docker compile for ARM hf fails on branch dev #480

Closed
opened 2026-02-27 19:30:53 +03:00 by kerem · 6 comments
Owner

Originally created by @pejobo on GitHub (May 1, 2022).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/993

This is from the log:

   Compiling num-integer v0.1.44
error[E0658]: `while` is not allowed in a `const fn`
  --> /build/cache/registry/src/github.com-1ecc6299db9ec823/http-0.2.5/src/header/value.rs:85:9
   |
85 | /         while i < bytes.len() {
86 | |             if !is_visible_ascii(bytes[i]) {
87 | |                 ([] as [u8; 0])[0]; // Invalid header value
88 | |             }
89 | |             i += 1;
90 | |         }
   | |_________^
   |
   = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information

error[E0658]: `if` is not allowed in a `const fn`
  --> /build/cache/registry/src/github.com-1ecc6299db9ec823/http-0.2.5/src/header/value.rs:86:13
   |
86 | /             if !is_visible_ascii(bytes[i]) {
87 | |                 ([] as [u8; 0])[0]; // Invalid header value
88 | |             }
   | |_____________^
   |
   = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information

   Compiling futures-macro v0.3.17
   Compiling futures-util v0.3.17
   Compiling tokio v1.12.0
   Compiling indexmap v1.7.0
   Compiling num-bigint v0.4.2
   Compiling priority-queue v1.2.0
   Compiling generic-array v0.14.4
   Compiling tinyvec v1.5.0
   Compiling tracing-core v0.1.21
   Compiling shannon v0.2.0
   Compiling ogg v0.8.0
error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `http`.
$> git show
commit 650d41b020691fec6c7d2c90c0f6de91ac8635cf (HEAD -> dev, origin/dev, origin/HEAD)
Merge: 616809b e0e23c9
Author: Roderick van Domburg <roderick@vandomburg.net>
Date:   Sat Mar 19 22:49:26 2022 +0100

    Merge pull request #976 from JasonLG1979/pulseaudio-name
    
    Set the PulseAudio name to match librespot's device name
Originally created by @pejobo on GitHub (May 1, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/993 This is from the log: ``` Compiling num-integer v0.1.44 error[E0658]: `while` is not allowed in a `const fn` --> /build/cache/registry/src/github.com-1ecc6299db9ec823/http-0.2.5/src/header/value.rs:85:9 | 85 | / while i < bytes.len() { 86 | | if !is_visible_ascii(bytes[i]) { 87 | | ([] as [u8; 0])[0]; // Invalid header value 88 | | } 89 | | i += 1; 90 | | } | |_________^ | = note: see issue #52000 <https://github.com/rust-lang/rust/issues/52000> for more information error[E0658]: `if` is not allowed in a `const fn` --> /build/cache/registry/src/github.com-1ecc6299db9ec823/http-0.2.5/src/header/value.rs:86:13 | 86 | / if !is_visible_ascii(bytes[i]) { 87 | | ([] as [u8; 0])[0]; // Invalid header value 88 | | } | |_____________^ | = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information Compiling futures-macro v0.3.17 Compiling futures-util v0.3.17 Compiling tokio v1.12.0 Compiling indexmap v1.7.0 Compiling num-bigint v0.4.2 Compiling priority-queue v1.2.0 Compiling generic-array v0.14.4 Compiling tinyvec v1.5.0 Compiling tracing-core v0.1.21 Compiling shannon v0.2.0 Compiling ogg v0.8.0 error: aborting due to 2 previous errors For more information about this error, try `rustc --explain E0658`. error: could not compile `http`. ``` ``` $> git show commit 650d41b020691fec6c7d2c90c0f6de91ac8635cf (HEAD -> dev, origin/dev, origin/HEAD) Merge: 616809b e0e23c9 Author: Roderick van Domburg <roderick@vandomburg.net> Date: Sat Mar 19 22:49:26 2022 +0100 Merge pull request #976 from JasonLG1979/pulseaudio-name Set the PulseAudio name to match librespot's device name ```
kerem 2026-02-27 19:30:53 +03:00
Author
Owner

@JasonLG1979 commented on GitHub (May 2, 2022):

The docker builds aren't really maintained very well. The above error is an upstream dependency issue (num-integer) and does not happen when building on my Ubuntu or Debian based machines or when building the Raspotify .debs in docker.

<!-- gh-comment-id:1114392146 --> @JasonLG1979 commented on GitHub (May 2, 2022): The docker builds aren't really maintained very well. The above error is an upstream dependency issue (num-integer) and does not happen when building on my Ubuntu or Debian based machines or when building the [Raspotify](https://github.com/dtcooper/raspotify) .debs in docker.
Author
Owner

@JasonLG1979 commented on GitHub (May 2, 2022):

Pretty much everything in the contrib folder is the product of drive by commits that may or may not be of any real use.

<!-- gh-comment-id:1114395397 --> @JasonLG1979 commented on GitHub (May 2, 2022): Pretty much everything in the contrib folder is the product of drive by commits that may or may not be of any real use.
Author
Owner

@pejobo commented on GitHub (May 2, 2022):

That's sad. I will have a look later this week if I can fix it. But my rust skills are very limited..

<!-- gh-comment-id:1114966902 --> @pejobo commented on GitHub (May 2, 2022): That's sad. I will have a look later this week if I can fix it. But my rust skills are very limited..
Author
Owner

@ashthespy commented on GitHub (May 2, 2022):

What version of Rust are you on in that Docker container? You might want to update it to the MSRV

<!-- gh-comment-id:1114992210 --> @ashthespy commented on GitHub (May 2, 2022): What version of Rust are you on in that Docker container? You might want to update it to the MSRV
Author
Owner

@pejobo commented on GitHub (May 5, 2022):

See #994, which is for master branch. There an update from stretch to bullseye was sufficient. I assume that will fix it for the dev branch, too.

<!-- gh-comment-id:1118765776 --> @pejobo commented on GitHub (May 5, 2022): See #994, which is for master branch. There an update from stretch to bullseye was sufficient. I assume that will fix it for the dev branch, too.
Author
Owner

@roderickvd commented on GitHub (May 19, 2022):

I understand that we can close this issue now.

<!-- gh-comment-id:1132175880 --> @roderickvd commented on GitHub (May 19, 2022): I understand that we can close this issue now.
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#480
No description provided.