mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #1173] Cannot compile librespot #546
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#546
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 @jmennecart on GitHub (Jun 5, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1173
Hello,
I'mctrying to compile librespot without success.
Each time an error occurs. I tryied to delete all files and get again, same problem.
Compile directive is :
cargo build --release --no-default-features
and the result :
Compiling librespot-protocol v0.5.0-dev (/home/airplay/librespot/protocol)
/home/airplay/.rustup/toolchains/stable-arm-unknown-linux-gnueabihf/bin/../lib/librustc_driver-d9d4471c0634a852.so(+0x7eb198)[0xaf4c7198]
/lib/arm-linux-gnueabihf/libc.so.6(__default_sa_restorer+0x0)[0xaea17900]
error: could not compile
librespot-protocol(lib)Caused by:
process didn't exit successfully:
rustc --crate-name librespot_protocol --edition=2021 protocol/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --diagnostic-width=237 --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=83bf54a3d67a6e87 -C extra-filename=-83bf54a3d67a6e87 --out-dir /home/airplay/librespot/target/release/deps -L dependency=/home/airplay/librespot/target/release/deps --extern protobuf=/home/airplay/librespot/target/release/deps/libprotobuf-0485858edd1ca021.rmeta(signal: 11, SIGSEGV: invalid memory reference)any ideas ?
Thanks in advance
@roderickvd commented on GitHub (Jun 5, 2023):
Don't know.
cargo clean)@jmennecart commented on GitHub (Jun 6, 2023):
Hi roderickvd
Thanks for your reply.
@roderickvd commented on GitHub (Jun 6, 2023):
Bullet 4 may be it. I think the kernel tends to kill long-running, non-responsive processes. If that’s a parallel compilation process, well, then there goes your reference.
You may want to try having only a single job (I think
-j1or otherwise in.cargo/config) or try cross-compiling on another host.@jmennecart commented on GitHub (Jun 7, 2023):
Thanks for you advice.
I compiled it on a raspberry pi 4 with success.
Many thanks