Bug#1086563: 0ad: FTBFS with fmtlib 10

陈 晟祺 harry-chen at outlook.com
Fri Nov 1 13:17:44 GMT 2024


Source: 0ad
Version: 0.0.26-6
Severity: important
Tags: ftbfs
X-Debbugs-Cc: fmtlib at packages.debian.org
Control: block 1072674 by -1
Control: affects -1 src:fmtlib

Dear maintainers,

fmtlib 10 transition will start soon, your package 0ad FTBFS with
fmtlib 10.1.1+ds1-2 in experimental.

Here is some related log:

g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -MMD -MP -DNDEBUG -DCONFIG_FINAL=1 -DINSTALLED_BINDIR=/usr/games -DINSTALLED_DATADIR=/usr/share/games/0ad -DINSTALLED_LIBDIR=/usr/lib/games/0ad -DCONFIG_ENABLE_PCH=1 -I../../../source/pch/network -I../../../source -isystem ../../../libraries/source/glad/include -isystem ../../../libraries/source/spidermonkey/include-unix-release -isystem /usr/include/SDL2 -O3 -g -Wall -Wextra -fno-rtti -std=c++17 -Wno-switch -Wno-reorder -Wno-invalid-offsetof -Wextra -Wno-missing-field-initializers -Wunused-parameter -Wredundant-decls -Wnon-virtual-dtor -Wundef -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstrict-aliasing -fno-omit-frame-pointer -fpch-preprocess -fPIC -fvisibility=hidden -D_REENTRANT -include obj/network_Release/precompiled.h -o "obj/network_Release/precompiled.o" -MF "obj/network_Release/precompiled.d" -c "../../../source/pch/network/precompiled.cpp"
In file included from /usr/include/fmt/format.h:49,
                 from /usr/include/fmt/printf.h:14,
                 from ../../../source/ps/CLogger.h:22,
                 from ../../../source/lib/precompiled.h:109,
                 from ../../../source/pch/network/precompiled.h:19:
/usr/include/fmt/core.h: In instantiation of ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_arg(T&) [with bool PACKED = true; Context = fmt::v10::basic_printf_context<char>; T = const NetMessageType; typename std::enable_if<PACKED, int>::type <anonymous> = 0]’:
/usr/include/fmt/core.h:1808:51:   required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T& ...) [with T = {const NetMessageType}; Context = fmt::v10::basic_printf_context<char>; Args = {NetMessageType}]’
 1808 |         data_{detail::make_arg<is_packed, Context>(args)...} {
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
/usr/include/fmt/core.h:1826:18:   required from ‘std::__cxx11::basic_string<Char> fmt::v10::sprintf(const S&, const T& ...) [with S = char [72]; T = {NetMessageType}; Char = char]’
 1826 |   return {args...};
      |                  ^
../../../source/network/NetMessage.cpp:219:3:   required from here
   36 | #define LOGERROR(...)         g_Logger->WriteError  (fmt::sprintf(__VA_ARGS__).c_str())
      |                                                      ~~~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/fmt/printf.h:606:68:   in ‘constexpr’ expansion of ‘fmt::v10::make_format_args<basic_printf_context<char>, const NetMessageType>(args#0)’
/usr/include/fmt/core.h:1576:63: error: ‘fmt::v10::detail::type_is_unformattable_for<const NetMessageType, char> _’ has incomplete type
 1576 |     type_is_unformattable_for<T, typename Context::char_type> _;
      |                                                               ^
/usr/include/fmt/core.h:1580:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1580 |       formattable,
      |       ^~~~~~~~~~~
/usr/include/fmt/core.h:1580:7: note: ‘formattable’ evaluates to false

--
Thanks,
Shengqi Chen


More information about the Pkg-games-devel mailing list