[GH-ISSUE #994] Docker compile for ARM hf fails on branch master #478

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

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

From the log:

   Compiling socket2 v0.4.1
error[E0658]: `match` is not allowed in a `const fn`
   --> /build/cache/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs:156:9
    |
156 | /         match address {
157 | |             SocketAddr::V4(_) => Domain::IPV4,
158 | |             SocketAddr::V6(_) => Domain::IPV6,
159 | |         }
    | |_________^
    |
    = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `socket2`.
$ git show
commit c1ac4cbb3ad3bbdaeb6f8582186442c69cdae744 (HEAD -> master, tag: v0.3.1, origin/master)
Author: Roderick van Domburg <roderick@vandomburg.net>
Date:   Sun Oct 24 20:23:47 2021 +0200

    Update Cargo.lock for 0.3.1
Originally created by @pejobo on GitHub (May 1, 2022). Original GitHub issue: https://github.com/librespot-org/librespot/issues/994 From the log: ``` Compiling socket2 v0.4.1 error[E0658]: `match` is not allowed in a `const fn` --> /build/cache/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.1/src/lib.rs:156:9 | 156 | / match address { 157 | | SocketAddr::V4(_) => Domain::IPV4, 158 | | SocketAddr::V6(_) => Domain::IPV6, 159 | | } | |_________^ | = note: see issue #49146 <https://github.com/rust-lang/rust/issues/49146> for more information error: aborting due to previous error For more information about this error, try `rustc --explain E0658`. error: could not compile `socket2`. ``` ``` $ git show commit c1ac4cbb3ad3bbdaeb6f8582186442c69cdae744 (HEAD -> master, tag: v0.3.1, origin/master) Author: Roderick van Domburg <roderick@vandomburg.net> Date: Sun Oct 24 20:23:47 2021 +0200 Update Cargo.lock for 0.3.1 ```
kerem 2026-02-27 19:30:53 +03:00
Author
Owner

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

See also #993

<!-- gh-comment-id:1114968211 --> @pejobo commented on GitHub (May 2, 2022): See also #993
Author
Owner

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

I just updated the docker file from debian:stretch to debian:bullseye and it compiled without errors.

<!-- gh-comment-id:1118747272 --> @pejobo commented on GitHub (May 5, 2022): I just updated the docker file from debian:stretch to debian:bullseye and it compiled without errors.
Author
Owner

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

I understand that we can close this issue now.

<!-- gh-comment-id:1132176233 --> @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#478
No description provided.