In a past I have compiled CUDA without problems. With my new setup it has errors at compiling now. My conditions:
OS - ArchLinux (Linux kernel 6.7.2)
ArrayFire - source code, cloned from git, master branch
In file included from /usr/include/spdlog/fmt/fmt.h:31,
from /usr/include/spdlog/common.h:50,
from /usr/include/spdlog/spdlog.h:12,
from /home/username/af-24/src/backend/common/Logger.hpp:33,
from /home/username/af-24/src/backend/common/DependencyModule.hpp:12:
/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_format_context<fmt::v10::appender, char>; T = cudnnStatus_t; typename std::enable_if<PACKED, int>::type <anonymous> = 0]’:
/usr/include/fmt/core.h:1842:51: required from ‘constexpr fmt::v10::format_arg_store<Context, Args>::format_arg_store(T& ...) [with T = {cudnnStatus_t, const char*}; Context = fmt::v10::basic_format_context<fmt::v10::appender, char>; Args = {cudnnStatus_t, const char*}]’
/usr/include/fmt/core.h:1860:18: 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 = basic_format_context<appender, char>; T = {cudnnStatus_t, const char*}]’
/usr/include/fmt/core.h:2835:44: required from ‘std::string fmt::v10::format(format_string<T ...>, T&& ...) [with T = {cudnnStatus_t&, const char*}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, cudnnStatus_t&, const char*>]’
/home/ol/af-24/src/backend/cuda/platform.cpp:126:39: required from here
/usr/include/fmt/core.h:1600:63: error: ‘fmt::v10::detail::type_is_unformattable_for<cudnnStatus_t, char> _’ has incomplete type
1600 | type_is_unformattable_for<T, typename Context::char_type> _;
| ^
/usr/include/fmt/core.h:1604: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 1604 | formattable,
| ^~~~~~~~~~~
/usr/include/fmt/core.h:1604:7: note: ‘formattable’ evaluates to false
Please help.