i96751414 / plugin.video.torrest

Torrest plugin for Kodi
MIT License
27 stars 6 forks source link

Error while loading shared libraries: libatomic.so.1 in Libreelec and Coreelec on Torrest version 0.0.13 #19

Closed lopezvg closed 2 years ago

lopezvg commented 2 years ago
Starting Kodi (19.4 (19.4.0) Git:19.4-Matrix). Platform: Linux ARM 32-bit
INFO <general>: Using Release Kodi x32
INFO <general>: Kodi compiled 2022-03-05 by GCC 10.2.0 for Linux ARM 32-bit version 5.10.95 (330335)
INFO <general>: Running on BCM2835 with **LibreELEC** (official): 10.0.2, kernel: Linux ARM 64-bit version 5.10.95
INFO <general>: FFmpeg version/source: 4.3.2-Kodi
ERROR <general>: WARNING:root:## Resolving platform - system=linux, version=5.10.95, arch=x86, machine=aarch64
ERROR <general>: WARNING:root:## Resolved platform - system=linux, arch=armv7

INFO <general>: [plugin.video.torrest] Starting daemon with args: ('--port', '61235', '--settings', '/storage/.kodi/userdata/addon_data/plugin.video.torrest/settings.json')
INFO <general>: [plugin.video.torrest] Starting daemon logger
INFO <general>: [plugin.video.torrest] /storage/.kodi/userdata/addon_data/plugin.video.torrest/bin/torrest: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory

Starting Kodi (18.9 (18.9.0) Git:00ff7594e42e9539912c9bd12c5a6a9d1b9d8d78). Platform: Linux ARM 32-bit
NOTICE: Using Release Kodi x32 build
NOTICE: Kodi compiled 2021-09-07 by GCC 8.3.0 for Linux ARM 32-bit version 3.14.29 (200221)
NOTICE: Running on **CoreELEC** (official): 9.2.8, kernel: Linux ARM 64-bit version 3.14.29 aarch64
ERROR: WARNING:root:## Resolving platform - system=linux, version=3.14.29, arch=x86, machine=armv7l
ERROR: WARNING:root:## Resolved platform - system=linux, arch=armv7

NOTICE: [plugin.video.torrest] Starting daemon with args: ('--port', '61235', '--settings', u'/storage/.kodi/userdata/addon_data/plugin.video.torrest/settings.json')
NOTICE: [plugin.video.torrest] Starting daemon logger
NOTICE: [plugin.video.torrest] /storage/.kodi/userdata/addon_data/plugin.video.torrest/bin/torrest: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
i96751414 commented 2 years ago

I will need some help to understand if libatomic is present or not on those OSs. If it is not present, any chance they are installed for now (as a workaround)?

lopezvg commented 2 years ago

I have not found the way to check nor install a package in Libreelec. It does not have any package magement.

I'm afraid you'll have to build the binary linking libatomic as static library

i96751414 commented 2 years ago

Can you connect via SSH?

lopezvg commented 2 years ago

Yes, I did, but Linux "apt" command, or similar, does not exist

i96751414 commented 2 years ago

Can you do a find for atomic please? find / -name ”*atomic*"

lopezvg commented 2 years ago

Sorry, a busy day...

##############################################
#                 LibreELEC                  #
#            https://libreelec.tv            #
##############################################

LibreELEC (official): 10.0.2 (RPi4.arm)
RPI3:~ # find / -name "*atomic*"
/sys/kernel/tracing/events/nfs/nfs_atomic_open_enter
/sys/kernel/tracing/events/nfs/nfs_atomic_open_exit
/sys/kernel/debug/tracing/events/nfs/nfs_atomic_open_enter
/sys/kernel/debug/tracing/events/nfs/nfs_atomic_open_exit
/sys/fs/f2fs/features/atomic_write
RPI3:~ #
i96751414 commented 2 years ago

No worries. Ok, I'll generate a few new binaries for you to test during the weekend. In case you want to play around with it, you just need to add a case for linux-armv7 on https://github.com/i96751414/torrest-cpp/blob/master/docker/Makefile#L53

Then simply make torrest-linux-armv7

lopezvg commented 2 years ago

I have tried unsuccessfully.

Maybe I'm doing something wrong...

i96751414 commented 2 years ago

Can you try with -latomic? You can also try eventually -Wl,-Bstatic -latomic

lopezvg commented 2 years ago

Nothing works...

i96751414 commented 2 years ago

We might be setting them in the wrong place. Please try -DCMAKE_CXX_FLAGS_RELEASE=-latomic

i96751414 commented 2 years ago

I think I got it: torrest.zip

lopezvg commented 2 years ago

It works ok in both LibreElec and CoreElec, however there is a stange behaviour in managing Magnets that I need to test further. Downloads from magnets is increasingly important.

i96751414 commented 2 years ago

What worked? My binary? In regard to magnets, please open an issue in torrest-cpp project if you find a bug - I've tested and it worked so far.

lopezvg commented 2 years ago

Yes, your binary works