Kodi Community Forum

Full Version: Error while compiling Kodi for Android
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm following the instructions provided in https://github.com/xbmc/xbmc/blob/master...f-contents

Setup: 
uname -a                 :   
Code:
Linux SSV-NORMANDY-SR2 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
lsb_release -a          :
Code:
                                    Distributor ID:    Ubuntu
                                    Description:    Ubuntu 17.10
                                    Release:    17.10
                                    Codename:    artful
Android aarch64 Toolchain
Latest Android SDK
Android NDK r16b



Configuration using 
Code:

cd $HOME/kodi/tools/depends
./bootstrap
./configure --with-tarballs=$HOME/android-tools/xbmc-tarballs --host=aarch64-linux-android --with-sdk-path=$HOME/android-tools/android-sdk-linux --with-ndk-path=$HOME/android-tools/android-ndk-r16b --with-toolchain=$HOME/android-tools/aarch64-linux-androideabi-4.9-vanilla/android-21 --prefix=$HOME/android-tools/xbmc-depends
Result
Code:

checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-android
checking for aarch64-linux-android-clang++... no
checking for aarch64-linux-android-gcc... no
checking for aarch64-linux-android-g++... no
checking for clang++... clang++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking whether clang++ supports C++11 features by default... no
checking whether clang++ supports C++11 features with -std=c++11... yes
checking for ccache... yes
checking for curl... /usr/bin/curl
checking for tar... /bin/tar
checking for aarch64-linux-android-ranlib... no
checking for ranlib... /usr/bin/ranlib
checking for aarch64-linux-android-ld... no
checking for ld... /usr/bin/ld
checking for aarch64-linux-android-ar... no
checking for ar... /usr/bin/ar
checking for aarch64-linux-android-readelf... no
checking for readelf... /usr/bin/readelf
checking for aarch64-linux-android-strip... no
checking for strip... /usr/bin/strip
checking for aarch64-linux-android-as... no
checking for as... /usr/bin/as
checking for aarch64-linux-android-nm... no
checking for nm... /usr/bin/nm
checking for aarch64-linux-android-objdump... no
checking for objdump... /usr/bin/objdump
checking for aarch64-linux-android-clang... no
checking for clang... /home/prizrakb/android-tools/aarch64-linux-androideabi-4.9-vanilla/android-21/bin/clang
checking for aarch64-linux-android-clang++... no
checking for clang++... /home/prizrakb/android-tools/aarch64-linux-androideabi-4.9-vanilla/android-21/bin/clang++
checking how to run the C preprocessor... /home/prizrakb/android-tools/aarch64-linux-androideabi-4.9-vanilla/android-21/bin/clang -E
checking for ranlib... /usr/bin/ranlib
checking for ld... /usr/bin/ld
checking for ar... /usr/bin/ar
checking for readelf... /usr/bin/readelf
checking for strip... /usr/bin/strip
checking for as... /usr/bin/as
checking for nm... /usr/bin/nm
checking for objdump... /usr/bin/objdump
checking for gcc... /usr/bin/gcc
checking for g++... /usr/bin/g++
checking for library containing iconv_open... no
checking for aarch64-linux-android-ccache... no
checking for ccache... /usr/bin/ccache
checking for aapt... /home/prizrakb/android-tools/android-sdk-linux/build-tools/25.0.3/aapt
checking for dx... /home/prizrakb/android-tools/android-sdk-linux/build-tools/25.0.3/dx
checking for zipalign... /home/prizrakb/android-tools/android-sdk-linux/build-tools/25.0.3/zipalign
checking for unzip... yes

configure: creating ./config.status
config.status: creating target/config.site
config.status: creating native/config.site.native
config.status: creating Makefile.include
config.status: creating target/Toolchain.cmake
config.status: creating target/config-binaddons.site
config.status: creating target/Toolchain_binaddons.cmake
config.status: creating target/cross-file.meson
use simulator:     
'target/config.site' -> '/home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug/share/config.site'
'target/config-binaddons.site' -> '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/config-binaddons.site'
'target/Toolchain.cmake' -> '/home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug/share/Toolchain.cmake'
'target/Toolchain_binaddons.cmake' -> '/home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug/share/Toolchain_binaddons.cmake'
'target/cross-file.meson' -> '/home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug/share/cross-file.meson'
'native/config.site.native' -> '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/config.site'


#------- configuration -------#
ccache:         yes
build type:     debug
toolchain:     /home/prizrakb/android-tools/aarch64-linux-androideabi-4.9-vanilla/android-21
cpu:         arm64-v8a
host:         aarch64-linux-android
cflags:         -DANDROID -D__ANDROID_API__=21 -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -D_GLIBCXX_USE_C99_MATH_TR1 -march=armv8-a -mtune=cortex-a53 -Og -g -D_DEBUG 
cxxflags:     -std=c++11 -DANDROID -D__ANDROID_API__=21 -fexceptions -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fPIC -DPIC -D_GLIBCXX_USE_C99_MATH_TR1 -march=armv8-a -mtune=cortex-a53 -frtti -Og -g -D_DEBUG 
ldflags:     -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libatomic.a -L/home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug/lib/android-21  
ffmpeg options:     
prefix:         /home/prizrakb/android-tools/xbmc-depends
depends:     /home/prizrakb/android-tools/xbmc-depends/aarch64-linux-android-21-debug
ndk-api-level:     21
build-tools:     /home/prizrakb/android-tools/android-sdk-linux/tools:/home/prizrakb/android-tools/android-sdk-linux/platform-tools:/home/prizrakb/android-tools/android-sdk-linux/build-tools/25.0.3


Error while " make -j$(getconf _NPROCESSORS_ONLN) "
Code:

A lot of text...
make[5]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools/its'
make[4]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools/its'
make[4]: Entering directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools'
make[5]: Entering directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools'
make[5]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/doc/gettext/examples/build-aux'
 /usr/bin/install -c -m 644 ../build-aux/javacomp.sh.in ../build-aux/javaexec.sh.in ../build-aux/csharpcomp.sh.in ../build-aux/csharpexec.sh.in '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/doc/gettext/examples/build-aux'
 /bin/mkdir -p '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/gettext'
 /usr/bin/install -c ../build-aux/config.rpath '/home/prizrakb/android-tools/xbmc-depends/x86_64-linux-gnu-native/share/gettext'
make[5]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools'
make[4]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools'
make[3]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native/x86_64-linux-native/gettext-tools'
touch .installed-x86_64-linux-native
make[2]: Leaving directory '/home/prizrakb/kodi/tools/depends/native/gettext-native'
make[1]: Leaving directory '/home/prizrakb/kodi/tools/depends/native'
Makefile:8: recipe for target 'native/.installed-x86_64-linux-native' failed
make: *** [native/.installed-x86_64-linux-native] Error 2

Can someone help me in finding what is going wrong?

Thanks in advance.
Rerun make -j$(getconf _NPROCESSORS_ONLN) and post the complete output. The error was printed somewhere in 'A lot of text...'.
(2018-08-07, 14:16)Rechi Wrote: [ -> ]Rerun make -j$(getconf _NPROCESSORS_ONLN) and post the complete output. The error was printed somewhere in 'A lot of text...'.
 Thanks for answering)

Log of first run      make -j$(getconf _NPROCESSORS_ONLN)  
https://paste.ubuntu.com/p/tr6pGKqhKt/

Log of second run      make -j$(getconf _NPROCESSORS_ONLN)  
https://paste.ubuntu.com/p/KPCyCsSjfs/
I try this guide on VM with clear UBUNTU 16.04 ... and got errors too..
Can some one help ?
FIXED. Theme is closed)
Can you tell us how you fixed it?
It might be helpful for other people.
Thread marked solved.
Just find worked guide for krypton build)