Skip to content

Build fails at hex_editor.cpp on CachyOS (Arch derivative) #868

Description

@emersonrp

Building from a fresh pull of master on CachyOS, I get as far as hex_editor.cpp, and it fails thusly:

[733/1067] CXX src/gui2/+ui-plugin/dep/r/imhex/plugins/ui/source/ui/hex_editor.cpp
FAILED: [code=1] .obj/unix/src/gui2/+ui-plugin/dep/r/imhex/plugins/ui/source/ui/hex_editor.cpp/hex_editor.o 
sh .obj/unix/src/gui2/+ui-plugin/dep/r/imhex/plugins/ui/source/ui/hex_editor.cpp/rule-efda040e78a66a82ae0341d15859ee7c7d20ff5b.sh
In file included from .obj/unix/src/gui2/+libimhex_core_hdr/hex/api/content_registry/hex_editor.hpp:7,
                 from .obj/unix/src/gui2/+ui-plugin_hdr/ui/hex_editor.hpp:4,
                 from dep/r/imhex/plugins/ui/source/ui/hex_editor.cpp:1:
.obj/unix/src/gui2/+libimhex_core_hdr/hex/api/localization_manager.hpp: In instantiation of ‘auto fmt::format(const hex::Lang&, Args&& ...) [with Args = {long unsigned int&}]’:
dep/r/imhex/plugins/ui/source/ui/hex_editor.cpp:1222:202:   required from here
 1222 |                                 ImGui::SliderScalar("##separator_stride", ImGuiDataType_U64, &m_separatorStride, &min, &max, m_separatorStride == 0 ? "hex.ui.hex_editor.no_separator"_lang : fmt::format("hex.ui.hex_editor.separator_stride"_lang, m_separatorStride).c_str());
      |                                                                                                                                                                                               ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.obj/unix/src/gui2/+libimhex_core_hdr/hex/api/localization_manager.hpp:169:27: error: no matching function for call to ‘format(fmt::v12::runtime_format_string<>, long unsigned int&)’
  169 |         return fmt::format(fmt::runtime(entry.get()), std::forward<Args>(args)...);
      |                ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • there is 1 candidate
    • candidate 1: ‘template<class ... Args> auto fmt::format(const hex::Lang&, Args&& ...)’
      .obj/unix/src/gui2/+libimhex_core_hdr/hex/api/localization_manager.hpp:168:10:
        168 |     auto format(const hex::Lang &entry, Args &&... args) {
            |          ^~~~~~
      • template argument deduction/substitution failed:
        •   cannot convert ‘fmt::v12::runtime(fmt::v12::basic_string_view<char>((& entry)->hex::Lang::get()))’ (type ‘fmt::v12::runtime_format_string<>’) to type ‘const hex::Lang&’
          .obj/unix/src/gui2/+libimhex_core_hdr/hex/api/localization_manager.hpp:169:40:
            169 |         return fmt::format(fmt::runtime(entry.get()), std::forward<Args>(args)...);
                |                            ~~~~~~~~~~~~^~~~~~~~~~~~~
[742/1067] CXX src/gui2/+ui-plugin/dep/r/imhex/plugins/ui/source/ui/pattern_drawer.cpp
ninja: build stopped: subcommand failed.
make: *** [build/ab.mk:126: +all] Error 1

My C++ fu is feeble so I don't have much clue where to start applying pressure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions