Hi,
I tried to compile on my own LE from kszaq, but it failed.
Here is how I proceeded : (on Ubuntu 16.10 64bits)
Code
sudo apt update && sudo apt upgrade
git clone https://github.com/kszaq/LibreELEC.tv/
cd LibreELEC.tv
git checkout 7.0.3.012h
PROJECT=S905 ARCH=arm make -j4 amlpkg
But it failed after a while with this results :
Code
In file included from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/except.c:1023:0:
cfns.gperf: In function 'const char* libc_name_p(const char*, unsigned int)':
cfns.gperf:101:1: error: 'const char* libc_name_p(const char*, unsigned int)' redeclared inline with 'gnu_inline' attribute
cfns.gperf:26:14: note: 'const char* libc_name_p(const char*, unsigned int)' previously declared here
cfns.gperf: At global scope:
cfns.gperf:26:14: warning: inline function 'const char* libc_name_p(const char*, unsigned int)' used but never defined
Makefile:1065: recipe for target 'cp/except.o' failed
make[3]: *** [cp/except.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ./tm.h:23:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/cvt.c:30:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:47:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/cvt.c:30:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:23:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/typeck.c:30:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:47:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/typeck.c:30:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:23:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/parser.c:24:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:102:21: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), "%s"HOST_WIDE_INT_PRINT_UNSIGNED"\n",\
^
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/config/elfos.h:170:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
In file included from ./tm.h:47:0,
from /home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/cp/parser.c:24:
/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/gcc/defaults.h:126:24: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
fprintf ((FILE), ","HOST_WIDE_INT_PRINT_UNSIGNED",%u\n", \
^
rm gcc.pod
make[3]: Leaving directory '/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/.x86_64-linux-gnu/gcc'
Makefile:4115: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory '/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/.x86_64-linux-gnu'
Makefile:869: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/horfee/kszaq/LibreELEC.tv/build.LibreELEC-S905.arm-7.0-devel/gcc-5.3.0/.x86_64-linux-gnu'
Makefile:18 : la recette pour la cible « amlpkg » a échouée
make: *** [amlpkg] Erreur 2
Display More
Have you ever faced this issue ?
I tried to compile LibreELEC from official repo, for RPi2, without problem... So I guess it is related to the kszaq build...
I also noticed that official repo use gcc-6.2, instead gcc-5.3 used here. Do you know how to update it to use 6.2 ?
Thank