2017-08-23, 22:06
Using Arch ARM, I am unable to build 17.4 due to the following error near the very end of the build (shown below). I have been building kodi on the RPi2 like this since version 17 without problems... I am even able to build 17.4rc1 without issue. It is just 17.4 (final) that causes this problem.
Note that I rebuilt the system's libcrossguid with the -fPIC switch before I starting the kodi build, but it still errors out as shown. Am I misinterpreting the error? Is the error telling me I need to add -fPIC to my CFLAGS/CXXFLAGS when building kodi not libcrossguid?
Thanks for any insights.
Note that I rebuilt the system's libcrossguid with the -fPIC switch before I starting the kodi build, but it still errors out as shown. Am I misinterpreting the error? Is the error telling me I need to add -fPIC to my CFLAGS/CXXFLAGS when building kodi not libcrossguid?
Thanks for any insights.
Code:
_CPU=cortex-a7
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_PREFIX_PATH=/opt/vc \
-DCORE_SYSTEM_NAME=rbpi \
-DWITH_CPU="$_CPU" \
-DENABLE_EVENTCLIENTS=ON \
-DENABLE_OPENGL=OFF \
-DENABLE_X11=OFF \
-DENABLE_VAAPI=OFF \
-DENABLE_VDPAU=OFF \
-DLIRC_DEVICE=/run/lirc/lircd \
../"xbmc-$pkgver-$_codename"/project/cmake
make && make preinstall
...
[100%] Linking CXX executable kodi.bin
/usr/bin/ld: build/lib/libcrossguid.a(guid.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
build/lib/libcrossguid.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
distcc[25077] ERROR: compile (null) on localhost failed
make[2]: *** [CMakeFiles/kodi.dir/build.make:436: kodi.bin] Error 1
make[1]: *** [CMakeFiles/Makefile2:523: CMakeFiles/kodi.dir/all] Error 2
make: *** [Makefile:141: all] Error 2