Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Librespot error - libgcc missing? #15

Open
peetipablo opened this issue Aug 5, 2021 · 3 comments
Open

Librespot error - libgcc missing? #15

peetipablo opened this issue Aug 5, 2021 · 3 comments

Comments

@peetipablo
Copy link

Hey there,

I added your repo and was able to successfully get snapserver and snapclient working, thank you! I'm having a problem with libspotify - after building and starting the container, I'm getting the error that libgcc_s.so.1 is missing. I'm not sure how to fix this?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Start Librespot...
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /usr/local/bin/librespot)
Error relocating /usr/local/bin/librespot: _Unwind_Resume: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetIPInfo: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetDataRelBase: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetRegionStart: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_SetGR: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetTextRelBase: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_DeleteException: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_RaiseException: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetIP: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_Backtrace: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_GetLanguageSpecificData: symbol not found
Error relocating /usr/local/bin/librespot: _Unwind_SetIP: symbol not found
[cmd] /run.sh exited 127
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

@peetipablo peetipablo changed the title Libspotify error - libgcc missing? Librespot error - libgcc missing? Aug 6, 2021
@rdrr
Copy link

rdrr commented Nov 22, 2021

Having the same issue, with the exact same log message.

Will take this opportunity to thank you raphii, because I also have snapserver and snapclient running thanks to you!!! Awesome work! librespot is the final piece of my puzzle. If I can't get this working I'm going to try to build off of poeschl's mopidy addon and add mopidy-spotify (that uses libspotify), but I'm guessing that is going to be hard :).

EDIT: Hey, the 'official' Spotify Connect addon uses librespot. Can't we install that and possibly point to it with the snapcast addon?

@peetipablo
Copy link
Author

Having the same issue, with the exact same log message.

Will take this opportunity to thank you raphii, because I also have snapserver and snapclient running thanks to you!!! Awesome work! librespot is the final piece of my puzzle. If I can't get this working I'm going to try to build off of poeschl's mopidy addon and add mopidy-spotify (that uses libspotify), but I'm guessing that is going to be hard :).

EDIT: Hey, the 'official' Spotify Connect addon uses librespot. Can't we install that and possibly point to it with the snapcast addon?

@rdrr I couldn't get this working so just ended up spinning up some docker containers outside of homeassistant:

jaedb/snapserver
mmmaxwwwell/librespot

@rdrr
Copy link

rdrr commented Nov 24, 2021

Hey thanks @peetipablo ! Any specific reason you used those images, cause I see mmmaxwwwell has a snapserver docker as well? But finding the libresport one is great! Thanks again

EDIT: Did these by any chance work on an Raspberry pi for you? Did you build the docker image itself? Sorry for the basic questions, but getting this working for aarch64 has been the tricky part.

EDIT2: Wanted to update because I'm sure there are others using raphii's awesome mopdiy and snapcast on an RPI4. There seem to be several librespot docker images out there for ARM64 (aka aarch64 AKA ARMv8) that will probably work. To get it working on an RPI4, I used this image and had to make a couple adjustments to the expamle docker run:
docker run --name librespot --net host --device /dev/snd --volume /mnt/data/supervisor/share/snapfifo:/share/snapfifo 4f7a796d616e6469617334320a/librespot:alpine /usr/bin/librespot --name HomeAssistant --bitrate 320 --backend pipe --device /share/snapfifo/librespot

This plugged in perfectly with snapserver from here, with the exception that the volume is very low compared to mopidy output and homeassistant TTS announcements. Gonna try to work on that, but this is probably enough for some. Final EDIT: add '--initial-volume 100' as an argument and it's perfect! Again thanks to raphii, as I'd have given up if I didn't come across this repository!

And this was run on the host, ssh instructions here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants