2020-10-31, 19:30
Hi,
I am trying to build Kodi 19 master branch as of
https://github.com/xbmc/xbmc/commit/dd1e...8c359b55aa with gcc-4.9.1.
This fails
Afaics c++14/gcc 4.9 is still the supported version
https://github.com/xbmc/xbmc/commit/642d...5cdecda46b
but only until binary addons are fixed which got broken by switching to c++17
https://github.com/xbmc/xbmc/commit/0984...43b1b9044d
The std::pair build error seems to be rooted in the fact that gcc-4.9 does not
support this code: https://stackoverflow.com/a/47284746
Is there a way to simplify the code that older gcc versions can still be supported
or is the project determined to drop support for gcc < 7.x in Kodi core?
I am trying to build Kodi 19 master branch as of
https://github.com/xbmc/xbmc/commit/dd1e...8c359b55aa with gcc-4.9.1.
This fails
Quote:output/host/opt/ext-toolchain/aarch64-amd-linux-gnu/include/c++/4.9.1/ext/new_allocator.h: In instantiation of 'void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::pair<std::basic_string<char>, ADDON::SExtValue>; _Args = {std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >}; _Tp = std::pair<std::basic_string<char>, ADDON::SExtValue>]':added with commit https://github.com/xbmc/xbmc/commit/fdc2...4f1f94R171
...
output/build/kodi-efa9ec691491ea3311f8de36b16b665f188afef4/xbmc/addons/AddonDatabase.cpp:172:90: required from here
output/host/opt/ext-toolchain/aarch64-amd-linux-gnu/include/c++/4.9.1/ext/new_allocator.h:120:4: error: no matching function for call to 'std::pair<std::basic_string<char>, ADDON::SExtValue>::pair(std::basic_string<char>, std::basic_string<char>)'
Afaics c++14/gcc 4.9 is still the supported version
https://github.com/xbmc/xbmc/commit/642d...5cdecda46b
but only until binary addons are fixed which got broken by switching to c++17
https://github.com/xbmc/xbmc/commit/0984...43b1b9044d
The std::pair build error seems to be rooted in the fact that gcc-4.9 does not
support this code: https://stackoverflow.com/a/47284746
Is there a way to simplify the code that older gcc versions can still be supported
or is the project determined to drop support for gcc < 7.x in Kodi core?