By using GCC 6.2 to build master (also 7.90.x and 7.02) I stumbled because of some non C++11 conform code fragments in Kodi.
I fixed them by the following patch:
Diff
diff --git a/config/optimize b/config/optimize
index 2c395a5..8f5b6cf 100644
--- a/config/optimize
+++ b/config/optimize
@@ -38,6 +38,10 @@ HOST_LIBDIR="$ROOT/$TOOLCHAIN/lib"
HOST_CFLAGS="$HOST_CFLAGS -Wno-format-security"
HOST_CXXFLAGS="$HOST_CXXFLAGS -Wno-format-security"
+# work around C++11 warning
+TARGET_CXXFLAGS="$TARGET_CXXFLAGS -Wno-literal-suffix"
+HOST_CXXFLAGS="$HOST_CXXFLAGS -Wno-literal-suffix"
+
# add distro specific library dirs
# ubuntu/debian specific "multiarch support"
FAMILY_TRIPLET=$(echo $HOST_NAME | sed -e "s,$(uname -m),$(uname -i),")
Display More
Another very interesting problem showed up during further make (cmake):
Code
make[3]: Entering directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
[ 1%] Built target compileinfo
[ 1%] Built target wrapper
make[3]: Entering directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
[ 1%] Built target crossguid
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
/bin/sh: 1: PATH=/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/toolchain/bin:/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/toolchain/bin:/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/toolchain/sbin:~/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin: not found
make[3]: *** [CMakeFiles/libcpluff.dir/build.make:121: build/cpluff/src/libcpluff-stamp/libcpluff-autoreconf] Error 127
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Entering directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Entering directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[2]: *** [CMakeFiles/Makefile2:214: CMakeFiles/libcpluff.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
make[3]: Leaving directory '/home/strolch/Development/LibreELEC.tv/build.LibreELEC-imx6.arm-8.0-devel/kodi-17.0-beta6-654f1b7/.armv7a-libreelec-linux-gnueabi'
Display More
I finally found out that my PATH was too large - it looks like there's some limitation around 256 bytes in cmake(??) during invokation of external commands.
After removing the multipe defined JAVA path fragments and therefore shrinking the PATH size the build worked without further problems.