publicarray / spksrc

Cross compilation framework to create native packages for the Synology's NAS
https://synocommunity.com/
Other
66 stars 14 forks source link

jellyfin aarch64 not working #10

Closed Cissoubaka closed 3 years ago

Cissoubaka commented 4 years ago

For new Package Requests, see the guidelines

Setup

Package Name: jellyfin Package Version: 10.5.5

NAS Model: D418J NAS Architecture: aarch64 DSM version: 6.2.2

Expected behavior

jellyfin doesn't launch

Package log

Check Package Center or /usr/local/{package}/var/

Wed May 13 10:06:02 CEST 2020
Starting jellyfin command /volume1/@appstore/jellyfin/jellyfin --noautorunwebapp --package-name synology -d /volume1/@appstore/jellyfin/var/$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jelly$
/volume1/@appstore/jellyfin/jellyfin: relocation error: /volume1/@appstore/jellyfin/jellyfin: symbol _ZTTNSt7__cxx1118basic_stringstreamIcSt$

Other logs

E.g. /var/log/synopkg.log

2020/05/13 10:05:00     install jellyfin 10.5.5-0 Begin preinst
2020/05/13 10:05:00     install jellyfin 10.5.5-0 End preinst ret=[0]
2020/05/13 10:05:00     install jellyfin 10.5.5-0 Begin /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/jellyfin
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/mv -f /volume1/@tmp/pkginstall/package /volume1/@appstore/jellyfin ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/rm -rf /var/packages/jellyfin
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/rm -rf /var/packages/jellyfin ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/mkdir -p /var/packages/jellyfin
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/mkdir -p /var/packages/jellyfin ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/jellyfin/INFO
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/mv -f /volume1/@tmp/pkginstall/INFO /var/packages/jellyfin/INFO ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/rm -rf /var/packages/jellyfin/scripts
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/rm -rf /var/packages/jellyfin/scripts ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/jellyfin/scripts
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/mv -f /volume1/@tmp/pkginstall/scripts /var/packages/jellyfin/scripts ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/rm -rf /var/packages/jellyfin/conf
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/rm -rf /var/packages/jellyfin/conf ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/jellyfin/conf
2020/05/13 10:05:01     install jellyfin 10.5.5-0 End /bin/mv -f /volume1/@tmp/pkginstall/conf /var/packages/jellyfin/conf ret=[0]
2020/05/13 10:05:01     install jellyfin 10.5.5-0 Begin postinst
2020/05/13 10:05:03     install jellyfin 10.5.5-0 End postinst ret=[0]
2020/05/13 10:05:03     install jellyfin 10.5.5-0 Begin /bin/rm -rf /volume1/@tmp/pkginstall
2020/05/13 10:05:03     install jellyfin 10.5.5-0 End /bin/rm -rf /volume1/@tmp/pkginstall ret=[0]
2020/05/13 10:05:03     install jellyfin 10.5.5-0 successfully
2020/05/13 10:05:08     install jellyfin: begin to start version 10.5.5-0
2020/05/13 10:05:08     install jellyfin 10.5.5-0 Begin pre-load apparmor
2020/05/13 10:05:09     install jellyfin 10.5.5-0 End pre-load apparmor ret=[0]
2020/05/13 10:05:09     install jellyfin 10.5.5-0 Begin start-stop-status start
2020/05/13 10:05:09     install jellyfin 10.5.5-0 End start-stop-status start ret=[0]
2020/05/13 10:05:09     install jellyfin: start version 10.5.5-0 successfully, result 0
2020/05/13 10:05:46     start jellyfin: begin to stop version 10.5.5-0
2020/05/13 10:05:47     start jellyfin 10.5.5-0 Begin start-stop-status stop
2020/05/13 10:05:47     start jellyfin 10.5.5-0 End start-stop-status stop ret=[0]
2020/05/13 10:05:47     start jellyfin 10.5.5-0 Begin unload apparmor
2020/05/13 10:05:47     start jellyfin 10.5.5-0 End unload apparmor ret=[0]
2020/05/13 10:05:47     start jellyfin: stop version 10.5.5-0 successfully, result 0
2020/05/13 10:05:47     start jellyfin: begin to start version 10.5.5-0
2020/05/13 10:05:47     start jellyfin 10.5.5-0 Begin pre-load apparmor
2020/05/13 10:05:47     start jellyfin 10.5.5-0 End pre-load apparmor ret=[0]
2020/05/13 10:05:48     start jellyfin 10.5.5-0 Begin start-stop-status start
2020/05/13 10:05:48     start jellyfin 10.5.5-0 End start-stop-status start ret=[0]
2020/05/13 10:05:48     start jellyfin: start version 10.5.5-0 successfully, result 0
2020/05/13 10:06:01     start jellyfin: begin to stop version 10.5.5-0
2020/05/13 10:06:02     start jellyfin 10.5.5-0 Begin start-stop-status stop
2020/05/13 10:06:02     start jellyfin 10.5.5-0 End start-stop-status stop ret=[0]
2020/05/13 10:06:02     start jellyfin 10.5.5-0 Begin unload apparmor
2020/05/13 10:06:02     start jellyfin 10.5.5-0 End unload apparmor ret=[0]
2020/05/13 10:06:02     start jellyfin: stop version 10.5.5-0 successfully, result 0
2020/05/13 10:06:02     start jellyfin: begin to start version 10.5.5-0
2020/05/13 10:06:02     start jellyfin 10.5.5-0 Begin pre-load apparmor
2020/05/13 10:06:02     start jellyfin 10.5.5-0 End pre-load apparmor ret=[0]
2020/05/13 10:06:02     start jellyfin 10.5.5-0 Begin start-stop-status start
2020/05/13 10:06:02     start jellyfin 10.5.5-0 End start-stop-status start ret=[0]
2020/05/13 10:06:02     start jellyfin: start version 10.5.5-0 successfully, result 0
publicarray commented 4 years ago

Thanks for the report. I've tried to reduce the number of builds for every toolchain to just CPU architectures. Can you run the slightly older version 10.5.2) where I used the old build process? (download rtd1296 for your CPU)

Cissoubaka commented 4 years ago

same error with the 10.5.2

Starting jellyfin command /volume1/@appstore/jellyfin/jellyfin --noautorunwebapp --package-name synology -d /volume1/@appstore/jellyfin/var/data -C /volume1/@appstore/jellyfin/var/cache -c /volume1/@appstore/jellyfin/var/config -l /volume1/@appstore/jellyfin/var/log -w /volume1/@appstore/jellyfin/web 
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: /lib64/libstdc++.so.6: no version information available (required by /volume1/@appstore/jellyfin/jellyfin)
/volume1/@appstore/jellyfin/jellyfin: relocation error: /volume1/@appstore/jellyfin/jellyfin: symbol _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE, version GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

I put the full log, didn't see it was cut before

publicarray commented 4 years ago

Ok Thank you, so It looks like we need to cross build the .NET runtime with the synology toolchain rather than to just rely on the pre-compiled runtime. Sorry but this may take some time to do.

publicarray commented 4 years ago

NET runtime minimum libstd c++ version is higher than the one installed on the DSM

DSM 7 will have a more recent version, see the conversation here: https://github.com/SynoCommunity/spksrc/issues/3892#issuecomment-628828603

publicarray commented 3 years ago

A updated libstdc++ from debian is now included to fix this issue