mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1447] Build error of v0.6.0 on raspberry pi -- aws-lc-sys fails #650
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#650
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kalj on GitHub (Jan 18, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1447
Description
librespotv0.6.0 fails to build with cargo install on a Raspberry Pi 3 with Raspbian 11. It seems like the dependencyaws-lc-sys0.25.0 encounters some strange build error where it complains aboutstddef.hnot existing...Version
Version 0.6.0 (maybe others)
How to reproduce
Do cargo install librespot.
Log
Host (what you are running
librespoton):@photovoltex commented on GitHub (Jan 18, 2025):
I think I encountered that problem recently and it had something to do in regards to build dependencies I think.
You could try to install a matching clang for your distro that is mentioned here and it might just work.
https://rust-lang.github.io/rust-bindgen/requirements.html
@kalj commented on GitHub (Jan 19, 2025):
Hm, it says clang 9 or greater whereas I have clang 11. That ought to be sufficient.
@kingosticks commented on GitHub (Jan 19, 2025):
How did you install bindgen? Is it from apt or cargo?
@kalj commented on GitHub (Jan 22, 2025):
I was under the impression that it is being pulled in by cargo. I definitely don't have it installed using apt.
@photovoltex commented on GitHub (Jan 22, 2025):
Then installing
bindgen-climight fix the issue. Here (https://aws.github.io/aws-lc-rs/requirements/linux.html#bindgen-cli) are the requirements foraws-lc-rsthat I wanted to link previously but didn't found.When we compile to "other" platforms, which includes your targeted platform
armv7-unknown-linux-gnueabihf, it requires thebindgen-clias prerequisite.@kalj commented on GitHub (Jan 22, 2025):
Alright, installing bindgen-cli using cargo now, then trying again!
@kalj commented on GitHub (Jan 22, 2025):
I seem to be getting the exact same error:
Or maybe this line tells me that I did not in fact get my installed bindgen:
Did I?
@photovoltex commented on GitHub (Jan 22, 2025):
Do you have
$HOME/.cargo/binadded to your PATH? If not you may need to add the directory to your path and restart the shell.Another point is that the error you are getting points to a clang issue from a quick search. So maybe try installing a different clang version. Just to rule out that the clang version of raspbian is incompatible.
Besides, could you not just install a cross compiled version of the binary? We provided some scripts here to compile them yourself using docker https://github.com/librespot-org/librespot/tree/dev/contrib
@kingosticks commented on GitHub (Jan 22, 2025):
Sounds like https://github.com/rust-lang/rust-bindgen/issues/242#issuecomment-1152747511
@kalj commented on GitHub (Jan 23, 2025):
Wow, yeah that turned out to be it! Thanks!