Kodi Community Forum

Full Version: [AML S905x] Manjaro Linux Desktop Kodi Compiling Issue
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello All,
I am new to this forum and I have been experimenting with the Amlogic S905x SBC from Khadas, VIM1 device. After I was able to build Manjaro Linux for the device I tried installing Kodi to test if that would work but as I see kodi-c2 was the only one available for Amlogix s905x SBC, this failed as i was getting stuck with this error



 [New LWP 7376] [New LWP 7374] [New LWP 7373] [New LWP 7379] [New LWP 7377] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". Core was generated by `/usr/lib/kodi/kodi.bin'. Program terminated with signal SIGABRT, Aborted. #0 0x0000ffffa58df854 in raise () from /usr/lib/libc.so.6 [Current thread is 1 (Thread 0xffffa13a7c10 (LWP 7368))] Thread 6 (Thread 0xffff9affce50 (LWP 7377)): #0 0x0000ffffa5976cd8 in ioctl () from /usr/lib/libc.so.6 #1 0x0000ffffa61e5058 in ?? () from /usr/lib/libasound.so.2 #2 0x0000aaaab0385458 in CAESinkALSA::AddPackets(unsigned char**, unsigned int, unsigned int) () #3 0x0000aaaab037321c in ActiveAE::CActiveAESink::OutputSamples(ActiveAE::CSampleBuffer*) () #4 0x0000aaaab0374dd0 in ActiveAE::CActiveAESink::StateMachine(int, Actor:Tonguerotocol*, Actor::Message*) () #5 0x0000aaaab03757a0 in ActiveAE::CActiveAESink:Tonguerocess() () #6 0x0000aaaaafa00df0 in CThread::Action() () #7 0x0000aaaaafa01120 in CThread:ConfusedtaticThread(void*) () #8 0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0 #9 0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6 Thread 5 (Thread 0xffff99ffae50 (LWP 7379)): #0 0x0000ffffa6f81880 in [email protected]@GLIBC_2.17 () from /usr/lib/libpthread.so.0 #1 0x0000ffffa5f7bc98 in _mali_osu_lock_wait () from /usr/lib/mali-egl/libGLESv2.so.2 #2 0x0000ffffa5f78ca0 in ?? () from /usr/lib/mali-egl/libGLESv2.so.2 #3 0x0000ffffd1262f10 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) Thread 4 (Thread 0xffffa13a3e50 (LWP 7373)): #0 0x0000ffffa6f81880 in [email protected]@GLIBC_2.17 () from /usr/lib/libpthread.so.0 #1 0x0000aaaab01f9058 in ANNOUNCEMENT::CAnnouncementManager:Tonguerocess() () #2 0x0000aaaaafa00df0 in CThread::Action() () #3 0x0000aaaaafa01120 in CThread:ConfusedtaticThread(void*) () #4 0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0 #5 0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6 Thread 3 (Thread 0xffffa0ba2e50 (LWP 7374)): #0 0x0000ffffa5974f68 in poll () from /usr/lib/libc.so.6 #1 0x0000aaaaaf6e7f80 in CFDEventMonitor:Tonguerocess() () #2 0x0000aaaaafa00df0 in CThread::Action() () #3 0x0000aaaaafa01120 in CThread:ConfusedtaticThread(void*) () #4 0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0 #5 0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6 Thread 2 (Thread 0xffff9b7fde50 (LWP 7376)): #0 0x0000ffffa6f81ba0 in [email protected]@GLIBC_2.17 () from /usr/lib/libpthread.so.0 #1 0x0000aaaab036bbcc in ActiveAE::CActiveAE:Tonguerocess() () #2 0x0000aaaaafa00df0 in CThread::Action() () #3 0x0000aaaaafa01120 in CThread:ConfusedtaticThread(void*) () #4 0x0000ffffa6f7b5d4 in start_thread () from /usr/lib/libpthread.so.0 #5 0x0000ffffa597e41c in thread_start () from /usr/lib/libc.so.6 Thread 1 (Thread 0xffffa13a7c10 (LWP 7368)): #0 0x0000ffffa58df854 in raise () from /usr/lib/libc.so.6 #1 0x0000ffffa58cd2a8 in abort () from /usr/lib/libc.so.6 #2 0x0000ffffa591a4f0 in __libc_message () from /usr/lib/libc.so.6 #3 0x0000ffffa5920d8c in malloc_printerr () from /usr/lib/libc.so.6 #4 0x0000ffffa5922828 in _int_free () from /usr/lib/libc.so.6 #5 0x0000aaaaaf9963d4 in non-virtual thunk to CRssManager::OnSettingsUnloaded() () #6 0x0000aaaaafe494c4 in CSettingsManager::Unload() () #7 0x0000aaaaafe4c400 in CSettingsManager::Clear() () #8 0x0000aaaaafea9d04 in CSettings::Uninitialize() () #9 0x0000aaaaafeaa360 in CSettings::~CSettings() () #10 0x0000ffffa58e1f80 in __run_exit_handlers () from /usr/lib/libc.so.6 #11 0x0000ffffa58e20ec in exit () from /usr/lib/libc.so.6 #12 0x0000ffffa58cd6e8 in __libc_start_main () from /usr/lib/libc.so.6 #13 0x0000aaaaaf53e9d0 in _start () Backtrace stopped: previous frame identical to this frame (corrupt stack?) ############# END STACK TRACE ############### ################# LOG FILE ################## 22:32:41.405 T:281472788745232 NOTICE: special://profile/ is mapped to: special://masterprofile/ 22:32:41.406 T:281472788745232 NOTICE: ----------------------------------------------------------------------- 22:32:41.406 T:281472788745232 NOTICE: Starting Kodi (17.6 Git:20190623-nogitfound). Platform: Linux ARM 64-bit 22:32:41.406 T:281472788745232 NOTICE: Using Release Kodi x64 build 22:32:41.406 T:281472788745232 NOTICE: Kodi compiled Jun 23 2019 by GCC 8.3.0 for Linux ARM 64-bit version 5.1.0 (327936) 22:32:41.406 T:281472788745232 NOTICE: Running on Manjaro ARM 19.06, kernel: Linux ARM 64-bit version 5.2.0-1 22:32:41.415 T:281472788745232 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi 22:32:41.415 T:281472788745232 NOTICE: Host CPU: ARMv8 Processor rev 4 (v8l), 4 cores available 22:32:41.415 T:281472788745232 NOTICE: ARM Features: Neon disabled 22:32:41.415 T:281472788745232 NOTICE: special://xbmc/ is mapped to: /usr/share/kodi 22:32:41.415 T:281472788745232 NOTICE: special://xbmcbin/ is mapped to: /usr/lib/kodi 22:32:41.415 T:281472788745232 NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/kodi/addons 22:32:41.415 T:281472788745232 NOTICE: special://masterprofile/ is mapped to: /root/.kodi/userdata 22:32:41.416 T:281472788745232 NOTICE: special://envhome/ is mapped to: /root 22:32:41.416 T:281472788745232 NOTICE: special://home/ is mapped to: /root/.kodi 22:32:41.416 T:281472788745232 NOTICE: special://temp/ is mapped to: /root/.kodi/temp 22:32:41.416 T:281472788745232 NOTICE: special://logpath/ is mapped to: /root/.kodi/temp 22:32:41.416 T:281472788745232 NOTICE: The executable running is: /usr/lib/kodi/kodi.bin 22:32:41.416 T:281472788745232 NOTICE: Local hostname: spikerguy-pc 22:32:41.416 T:281472788745232 NOTICE: Log File is located: /root/.kodi/temp//kodi.log 22:32:41.416 T:281472788745232 NOTICE: ----------------------------------------------------------------------- 22:32:41.569 T:281472788745232 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property “CanSuspend” 22:32:41.572 T:281472788745232 ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - No such property “CanHibernate” 22:32:41.581 T:281472788745232 NOTICE: load settings... 22:32:41.687 T:281472788745232 NOTICE: Found 1 Lists of Devices 22:32:41.687 T:281472788745232 NOTICE: Enumerated ALSA devices: 22:32:41.687 T:281472788745232 NOTICE: Device 1 22:32:41.687 T:281472788745232 NOTICE: m_deviceName : default 22:32:41.687 T:281472788745232 NOTICE: m_displayName : Default (HDMI S/PDIF) 22:32:41.687 T:281472788745232 NOTICE: m_displayNameExtra: 22:32:41.687 T:281472788745232 NOTICE: m_deviceType : AE_DEVTYPE_IEC958 22:32:41.687 T:281472788745232 NOTICE: m_channels : FL,FR 22:32:41.687 T:281472788745232 NOTICE: m_sampleRates : 32000,44100,48000,88200,96000,176400,192000 22:32:41.687 T:281472788745232 NOTICE: m_dataFormats : AE_FMT_RAW,AE_FMT_S24NE4,AE_FMT_S16NE,AE_FMT_S16LE 22:32:41.687 T:281472788745232 NOTICE: m_streamTypes : STREAM_TYPE_AC3,STREAM_TYPE_DTSHD_CORE,STREAM_TYPE_DTS_1024,STREAM_TYPE_DTS_2048,STREAM_TYPE_DTS_512 22:32:41.706 T:281472788745232 NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml) 22:32:41.707 T:281472788745232 NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml) 22:32:41.707 T:281472788745232 NOTICE: Default Video Player: VideoPlayer 22:32:41.707 T:281472788745232 NOTICE: Default Audio Player: paplayer 22:32:41.707 T:281472788745232 NOTICE: Disabled debug logging due to GUI setting. Level 0. 22:32:41.707 T:281472788745232 NOTICE: Log level changed to "LOG_LEVEL_NORMAL" 22:32:41.707 T:281472788745232 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml. 22:32:41.709 T:281472788745232 NOTICE: Loaded playercorefactory configuration 22:32:41.709 T:281472788745232 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml. 22:32:41.709 T:281472788745232 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping. 19:32:41.754 T:281472788745232 NOTICE: Running database version Addons27 19:32:41.977 T:281472788745232 NOTICE: ADDONS: Using repository repository.xbmc.org 19:32:42.114 T:281472788745232 NOTICE: InitWindowSystem: Using EGL Implementation: amlogic 19:32:42.114 T:281472788745232 ERROR: GetString: error reading /sys/class/display/mode 19:32:42.131 T:281472788745232 ERROR: EGL error in InitDisplay: 3003 19:32:42.132 T:281472788745232 ERROR: InitWindowSystem: Could not create display 19:32:42.132 T:281472788745232 FATAL: CApplication::Create: Unable to init windowing system ############### END LOG FILE ################ ############ END Kodi CRASH LOG #############]

then I tried to compile kodi using the similar PKGBUILD of kodi-c2 using the same repo used in this PKGBUILD, this got me stuck with another failed attempt.
Error log
 Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRenderer.cpp.o [ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRendererGUI.cpp.o [ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/OverlayRendererUtil.cpp.o [ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderCapture.cpp.o [ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderFlags.cpp.o [ 91%] Building CXX object build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderManager.cpp.o /home/spikerguy/Desktop/Kodi-vim1/src/xbmc-7e7160eacdcb0c5b70e91dd4265d20358ba33c26/xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp: In member function ‘void CRenderManager::CreateRenderer()’: /home/spikerguy/Desktop/Kodi-vim1/src/xbmc-7e7160eacdcb0c5b70e91dd4265d20358ba33c26/xbmc/cores/VideoPlayer/VideoRenderers/RenderManager.cpp:582:25: error: ‘CRendererAML’ does not name a type; did you mean ‘CRenderInfo’? m_pRenderer = new CRendererAML; ^~~~~~~~~~~~ CRenderInfo make[2]: *** [build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/build.make:154: build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/RenderManager.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:7818: build/cores/VideoPlayer/videorenderers/CMakeFiles/videorenderers.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...]


I tried using balbes kodi repo also and the Latest xbmc core repo also had problem with patch or sometime CheckFunction Error.
Error Log
: Entering directory '/home/spikerguy/Desktop/Kodi-vim1/src/kodi-build/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o /usr/bin/cc -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.15/Modules/CheckFunctionExists.c Linking C executable cmTC_a2c74 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a2c74.dir/link.txt --verbose=1 /usr/bin/cc -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -DPLATFORM_SETTINGS_FILE=x11.xml -Wall -DCHECK_FUNCTION_EXISTS=pthread_create -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fuse-ld=gold CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o -o cmTC_a2c74 -lpthreads /usr/bin/ld.gold: error: cannot find -lpthreads CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create' CMakeFiles/cmTC_a2c74.dir/CheckFunctionExists.c.o:CheckFunctionExists.c:function main: error: undefined reference to 'pthread_create' collect2: error: ld returned 1 exit status make[1]: *** [CMakeFiles/cmTC_a2c74.dir/build.make:87: cmTC_a2c74] Error 1 make[1]: Leaving directory '/home/spikerguy/Desktop/Kodi-vim1/src/kodi-build/CMakeFiles/CMakeTmp' make: *** [Makefile:121: cmTC_a2c74/fast] Error 2]

Had posting the same on Khadas Forum but I think asking in Kodi forum is a better option to get support.
For the mods if this Post is not in the correct Category then please move it or advice me on this.

Thanks
Thread moved to Linux
Anyone who can guide me in the right direction with this ?
I tried compiling with x11=OFF and this error didnt appear but then it have another error which is related to audio.

Error Log HERE
I would like to know how to disable the active AE while compiling. If I can build the kodi and it starts without any audio then also it will be fine for me then I can look into the audio issue.

Any advice?
You trying to build 17.x or 18.x?  I suspect there is a reason why it's stuck on 17.x.
(2019-08-11, 13:44)graysky Wrote: [ -> ]You trying to build 17.x or 18.x?  I suspect there is a reason why it's stuck on 17.x.

Yes I am following an old Built specially for Amlogic SOC's.

Can you suggest where to use the source files from for Amlogic Soc's ? I have a Khadas Vim1 device for development.
I do not have any insights, just wondering if the problem was you were unable to build 18.x (since Arch ARM still ships 17.x seems like there might be a reason they cannot build it).
(2019-08-13, 21:39)graysky Wrote: [ -> ]I do not have any insights, just wondering if the problem was you were unable to build 18.x (since Arch ARM still ships 17.x seems like there might be a reason they cannot build it).

Ah ok thanks for the reply though.
Hello,
I tried compiling kodi with your PKGBUILD for kodi-aml Link
and Your branch of Kodi for amlogic Link on Manjaro 19.08 kernel 5.3.0-rc5 with lima enabled. With the last commit and it is having some error while compiling
Error Log. This is one of the few error I got.

Can anyone advice me on the reason of this error? Would really appreciate the help.