Bug 14986

Summary: kodi does not compile with uClibc-ng for raspberrypi4
Product: buildroot Reporter: wbx
Component: OtherAssignee: unassigned
Status: RESOLVED MOVED    
Severity: normal CC: buildroot, yann.morin.1998
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description wbx 2022-09-02 14:10:33 UTC
Hi,

I get following build error with next:

[ 76%] Building CXX object build/utils/CMakeFiles/utils.dir/GLUtils.cpp.o
cd /home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build/build/utils && /home/wbx/buildroot/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-g++ --sysroot=/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot -DHAS_NEON -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/lib -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/platform/linux -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/cores/VideoPlayer -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build/build -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build/build/include -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/platform/posix -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/python3.10 -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build/build/cores/RetroPlayer/messages -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/freetype2 -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fribidi -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/contrib -I/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build/build/libdvd/include -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/lzo -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/libdrm -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -Wall  -DNDEBUG -s -DTARGET_POSIX -DTARGET_LINUX -D_GNU_SOURCE -DHAVE_LINUX_UDMABUF=1 -DHAVE_LINUX_DMA_HEAP=1 -DHAVE_LINUX_DMA_BUF=1 -DHAVE_MKOSTEMP=1 -D__STDC_CONSTANT_MACROS -D_FILE_OFFSET_BITS=64 -DHAS_POSIX_NETWORK -DHAS_LINUX_NETWORK -DHAS_BUILTIN_SYNC_ADD_AND_FETCH=1 -DHAS_BUILTIN_SYNC_SUB_AND_FETCH=1 -DHAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP=1 -DHAVE_INOTIFY=1 -DHAVE_POSIX_FADVISE=1 -DHAVE_LOCALTIME_R=1 -DHAVE_GMTIME_R=1 -DHAVE_INTTYPES_H=1 -DHAS_ALSA=1 -DHAS_ISO9660PP=1 -DHAS_AIRPLAY=1 -DHAS_PYTHON=1 -DHAVE_LIBUDEV=1 -DFFMPEG_VER_SHA=\"undef\" -I/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fribidi -DSPDLOG_FMT_EXTERNAL -DSPDLOG_DEBUG_ON -DSPDLOG_NO_ATOMIC_LEVELS -DSPDLOG_ENABLE_PATTERN_PADDING -DHAS_EGL=1 -DHAVE_GBM=1 -DHAS_GBM_BO_MAP=1 -DHAS_GBM_MODIFIERS=1 -DHAVE_HDR_OUTPUT_METADATA=1 -DHAS_GLES=3 -DHAS_DVD_DRIVE -DHAS_CDDA_RIPPER -DBIN_INSTALL_PATH=\"/usr/lib/kodi\" -DINSTALL_PATH=\"/usr/share/kodi\" -std=c++14 -MD -MT build/utils/CMakeFiles/utils.dir/GLUtils.cpp.o -MF CMakeFiles/utils.dir/GLUtils.cpp.o.d -o CMakeFiles/utils.dir/GLUtils.cpp.o -c /home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/GLUtils.cpp
In file included from /home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/format.h:48,
                 from /home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/StringUtils.h:34,
                 from /home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:19,
                 from /home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/GLUtils.cpp:12:
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h: In instantiation of ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_value(T&&) [with Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; T = const unsigned char*&]’:
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1777:29:   required from ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; fmt::v9::detail::type <anonymous> = fmt::v9::detail::type::custom_type; T = const unsigned char*&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1901:77:   required from ‘constexpr fmt::v9::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {const unsigned char*&}; Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; Args = {const unsigned char*}]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1918:31:   required from ‘constexpr fmt::v9::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<Args>::type>::type ...> fmt::v9::make_format_args(Args&& ...) [with Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:3206:44:   required from ‘std::string fmt::v9::format(fmt::v9::format_string<T ...>, T&& ...) [with T = {const unsigned char*&}; std::string = std::__cxx11::basic_string<char>; fmt::v9::format_string<T ...> = fmt::v9::basic_format_string<char, const unsigned char*&>]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/StringUtils.h:91:32:   required from ‘static std::string StringUtils::Format(const string&, Args&& ...) [with Args = {const unsigned char*&}; std::string = std::__cxx11::basic_string<char>]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:181:41:   required from ‘void CLog::FormatAndLogInternal(spdlog::level::level_enum, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:83:39:   required from ‘static void CLog::Log(spdlog::level::level_enum, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:68:8:   required from ‘static void CLog::Log(int, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/GLUtils.cpp:155:14:   required from here
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1751:17: error: static assertion failed: Formatting of non-void pointers is disallowed.
 1751 |   static_assert(formattable_pointer,
      |                 ^~~~~~~~~~~~~~~~~~~
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1751:17: note: ‘formattable_pointer’ evaluates to false
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h: In instantiation of ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_value(T&&) [with Context = fmt::v9::basic_printf_context<fmt::v9::appender, char>; T = const unsigned char* const&]’:
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1777:29:   required from ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v9::basic_printf_context<fmt::v9::appender, char>; fmt::v9::detail::type <anonymous> = fmt::v9::detail::type::custom_type; T = const unsigned char* const&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1901:77:   required from ‘constexpr fmt::v9::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {const unsigned char* const&}; Context = fmt::v9::basic_printf_context<fmt::v9::appender, char>; Args = {const unsigned char*}]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1918:31:   required from ‘constexpr fmt::v9::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<Args>::type>::type ...> fmt::v9::make_format_args(Args&& ...) [with Context = fmt::v9::basic_printf_context<fmt::v9::appender, char>; Args = {const unsigned char* const&}]’
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/printf.h:581:49:   required from ‘std::__cxx11::basic_string<Char> fmt::v9::sprintf(const S&, const T& ...) [with S = std::__cxx11::basic_string<char>; T = {const unsigned char*}; Char = char]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/StringUtils.h:93:30:   required from ‘static std::string StringUtils::Format(const string&, Args&& ...) [with Args = {const unsigned char*&}; std::string = std::__cxx11::basic_string<char>]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:181:41:   required from ‘void CLog::FormatAndLogInternal(spdlog::level::level_enum, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:83:39:   required from ‘static void CLog::Log(spdlog::level::level_enum, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/log.h:68:8:   required from ‘static void CLog::Log(int, const Char*, Args&& ...) [with Char = char; Args = {const unsigned char*&}]’
/home/wbx/buildroot/output/build/kodi-19.4-Matrix/xbmc/utils/GLUtils.cpp:155:14:   required from here
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1751:17: error: static assertion failed: Formatting of non-void pointers is disallowed.
/home/wbx/buildroot/output/host/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/include/fmt/core.h:1751:17: note: ‘formattable_pointer’ evaluates to false
make[3]: *** [build/utils/CMakeFiles/utils.dir/build.make:1140: build/utils/CMakeFiles/utils.dir/GLUtils.cpp.o] Error 1
make[3]: Leaving directory '/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build'
make[2]: *** [CMakeFiles/Makefile2:7980: build/utils/CMakeFiles/utils.dir/all] Error 2
make[2]: Leaving directory '/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build'
make[1]: *** [Makefile:136: all] Error 2
make[1]: Leaving directory '/home/wbx/buildroot/output/build/kodi-19.4-Matrix/buildroot-build'
make: *** [package/pkg-generic.mk:293: /home/wbx/buildroot/output/build/kodi-19.4-Matrix/.stamp_built] Error 2
Comment 1 Yann E. MORIN 2024-06-15 15:04:11 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!