[Buildroot] [PATCH v2 09/11] package/kodi: fix build with glibc 2.26

Bernd Kuhls bernd.kuhls at t-online.de
Tue Sep 19 07:51:30 UTC 2017


Hi Romain,

Am Sat, 02 Sep 2017 22:54:21 +0200 schrieb Romain Naour:

> Kodi fail to build with glibc 2.26 release:
> In file included from
> [...]/host/x86_64-buildroot-linux-gnu/include/c++/7.2.0/cmath:45:0,
>                  from
>                  [...]/build/kodi-17.3-Krypton/xbmc/dialogs/
GUIDialogExtendedProgressBar.cpp:21:
> [...]/build/kodi-17.3-Krypton/xbmc/dialogs/
GUIDialogExtendedProgressBar.cpp:
> In member function 'void CGUIDialogProgressBarHandle::SetProgress(int,
> int)':
> [...]/build/kodi-17.3-Krypton/xbmc/dialogs/
GUIDialogExtendedProgressBar.cpp:55:13:
> error: '__builtin_isnan' is not a member of 'std'
>    if (!std::isnan(fPercentage))
>              ^
> [...]/build/kodi-17.3-Krypton/xbmc/dialogs/
GUIDialogExtendedProgressBar.cpp:55:13:
> note: suggested alternative:
> <built-in>: note:   '__builtin_isnan'
> 
> Signed-off-by: Romain Naour
> <romain.naour at gmail.com>
> Cc: Bernd Kuhls <bernd.kuhls at t-online.de>

Tested-by: Bernd Kuhls <bernd.kuhls at t-online.de>
[build-tested using this defconfig:
BR2_x86_64=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_DRI_DRIVER_I965=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_XORG7=y
BR2_PACKAGE_PYTHON=y
BR2_PACKAGE_PYTHON_PY_ONLY=y]

Kodi still builds using an uClibc-toolchain. Please send the patch 
upstream.

Regards, Bernd



More information about the buildroot mailing list