Skip to content

Unable to compile with fmt 10.0.0  #3002

@FtZPetruska

Description

@FtZPetruska

Thank you for supporting EasyRPG Player.
Before creating an issue, please verify that your bug still occurs in the "continuous builds" of the Player.
You can get them at the bottom of our download section: https://easyrpg.org/player/downloads


Please fill in the following fields before submitting an issue:

Name of the game:

N/A

Player platform:

macOS, Linux

Attach files (as a .zip archive or link them)

N/A

Describe the issue in detail and how to reproduce it:

Trying to build the project with fmt 10.0.0 fails with the following error:

[  7%] Building CXX object CMakeFiles/EasyRPG_Player.dir/src/background.cpp.o
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++-11 -DFMT_SHARED -DHAVE_ALSA=1 -DHAVE_FREETYPE=1 -DHAVE_HARFBUZZ=1 -DHAVE_LIBMPG123=1 -DHAVE_LIBSNDFILE=1 -DHAVE_LIBSPEEXDSP=1 -DHAVE_LIBXMP=1 -DHAVE_NATIVE_MIDI=1 -DHAVE_OGGVORBIS=1 -DHAVE_WINE=1 -DNDEBUG -DSUPPORT_AUDIO=1 -DUSE_SDL=2 -DWANT_DRWAV=1 -DWANT_FMMIDI=1 -I/tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src -isystem /home/linuxbrew/.linuxbrew/include/SDL2 -isystem /home/linuxbrew/.linuxbrew/include/pixman-1 -isystem /home/linuxbrew/.linuxbrew/include/freetype2 -isystem /home/linuxbrew/.linuxbrew/include/harfbuzz -isystem /home/linuxbrew/.linuxbrew/include/speex -isystem /home/linuxbrew/.linuxbrew/include/vorbis -O3 -DNDEBUG -std=gnu++14 -fno-math-errno -MD -MT CMakeFiles/EasyRPG_Player.dir/src/background.cpp.o -MF CMakeFiles/EasyRPG_Player.dir/src/background.cpp.o.d -o CMakeFiles/EasyRPG_Player.dir/src/background.cpp.o -c /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/background.cpp
gmake[2]: *** [CMakeFiles/EasyRPG_Player.dir/build.make:191: CMakeFiles/EasyRPG_Player.dir/src/audio_generic.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
In file included from /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/string_view.h:23,
                 from /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/utils.h:29,
                 from /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/game_battler.h:32,
                 from /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/autobattle.h:23,
                 from /tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/autobattle.cpp:17:
/home/linuxbrew/.linuxbrew/include/fmt/core.h: In instantiation of ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_value(T&&) [with Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; T = nonstd::sv_lite::basic_string_view<char>&]’:
/home/linuxbrew/.linuxbrew/include/fmt/core.h:1711:29:   required from ‘constexpr fmt::v10::detail::value<Context> fmt::v10::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; fmt::v10::detail::type <anonymous> = fmt::v10::detail::type::custom_type; T = nonstd::sv_lite::basic_string_view<char>&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/home/linuxbrew/.linuxbrew/include/fmt/core.h:1827:77:   required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >&, const char* const&}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Args = {nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >, const char*}]’
/home/linuxbrew/.linuxbrew/include/fmt/core.h:1844:31:   required from ‘constexpr fmt::v10::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<T>::type>::type ...> fmt::v10::make_format_args(T&& ...) [with Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; T = {nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >&, const char* const&}]’
/home/linuxbrew/.linuxbrew/include/fmt/core.h:2817:44:   required from ‘std::string fmt::v10::format(fmt::v10::format_string<T ...>, T&& ...) [with T = {nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >&, const char* const&}; std::string = std::__cxx11::basic_string<char>; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >&, const char* const&>]’
/tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/output.h:188:22:   required from ‘void Output::Debug(FmtStr&&, Args&& ...) [with FmtStr = const char (&)[57]; Args = {nonstd::sv_lite::basic_string_view<char, std::char_traits<char> >&, const char* const&}]’
/tmp/easyrpg-player-20230513-22941-1sxcmrz/easyrpg-player-0.8/src/autobattle.cpp:57:17:   required from here
/home/linuxbrew/.linuxbrew/include/fmt/core.h:1691: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
 1691 |       formattable,
      |       ^~~~~~~~~~~
/home/linuxbrew/.linuxbrew/include/fmt/core.h:1691:7: note: ‘formattable’ evaluates to false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions