spdlog build error basic runtime

Ketika build spdlog dari SBo ditemukan error

n file included from /tmp/SBo/spdlog-1.11.0/include/spdlog/spdlog.h:12,
                 from /tmp/SBo/spdlog-1.11.0/include/spdlog/spdlog-inl.h:7,
                 from /tmp/SBo/spdlog-1.11.0/src/spdlog.cpp:8:
/tmp/SBo/spdlog-1.11.0/include/spdlog/common.h:168:111: error: ‘basic_runtime’ is not a member of ‘fmt’
  168 | nvertible<T, fmt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
      |                                                                                           ^~~~~~~~~~~~~

/tmp/SBo/spdlog-1.11.0/include/spdlog/common.h:168:111: error: ‘basic_runtime’ is not a member of ‘fmt’
/tmp/SBo/spdlog-1.11.0/include/spdlog/common.h:168:125: error: template argument 2 is invalid
  168 | mt::basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
      |                                                                                           ^~~~

/tmp/SBo/spdlog-1.11.0/include/spdlog/common.h:168:138: error: expected ‘{’ before ‘>’ token
  168 | :basic_string_view<Char>>::value || std::is_same<remove_cvref_t<T>, fmt::basic_runtime<Char>>::value>
      |                                                                                                     ^

make[2]: *** [CMakeFiles/spdlog.dir/build.make:76: CMakeFiles/spdlog.dir/src/spdlog.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/spdlog.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
Failures:
  spdlog: spdlog.SlackBuild return non-zero

Spdlog ini mempunyai dependensi fmt. Fmt yang tersedia di current versi 10.0.0. Tapi versi ini gagal untuk build spdlog. Maka mt yang ada di current ini dihapus dan ganti dengan yang disediakan SBo (9.1.0).

Update catatan: spdlog akhirnya berhasil diinstall, setelah update sistem (slacware64-current) 13 September, versi spdlog 1.12.0, dan install dependensi Catch2 versi 3.4.0

 Share!

 
comments powered by Disqus