microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.41k stars 6.19k forks source link

[arrayfire] build failure #32862

Open Bzz2745 opened 11 months ago

Bzz2745 commented 11 months ago

Operating system

Linux(rhel 9)

Compiler

GCC

Steps to reproduce the behavior

`vcpkg install arrayfire[core,cpu,cuda,unified]:x64-linux`

Failure logs

Building arrayfire[core,cpu,cuda,unified]:x64-linux... -- Downloading https://github.com/arrayfire/arrayfire/archive/d99887ae431fcd58168b653a1e69f027f04d5188.tar.gz -> arrayfire-arrayfire-d99887ae431fcd58168b653a1e69f027f04d5188.tar.gz... -- Extracting source /home/bazunzhi/Environment/vcpkg/downloads/arrayfire-arrayfire-d99887ae431fcd58168b653a1e69f027f04d5188.tar.gz -- Applying patch build.patch -- Applying patch Fix-constexpr-error-with-vs2019-with-half.patch -- Applying patch fix-dependency-clfft.patch -- Using source at /home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/src/27f04d5188-42e72796d0.clean -- Downloading https://github.com/arrayfire/threads/archive/b666773940269179f19ef11c8f1eb77005e85d9a.tar.gz -> arrayfire-threads-b666773940269179f19ef11c8f1eb77005e85d9a.tar.gz... -- Extracting source /home/bazunzhi/Environment/vcpkg/downloads/arrayfire-threads-b666773940269179f19ef11c8f1eb77005e85d9a.tar.gz -- Using source at /home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/src/7005e85d9a-64aebcce4b.clean -- Downloading https://github.com/arrayfire/forge/archive/1a0f0cb6371a8c8053ab5eb7cbe3039c95132389.tar.gz -> arrayfire-forge-1a0f0cb6371a8c8053ab5eb7cbe3039c95132389.tar.gz... -- Extracting source /home/bazunzhi/Environment/vcpkg/downloads/arrayfire-forge-1a0f0cb6371a8c8053ab5eb7cbe3039c95132389.tar.gz -- Using source at /home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/src/9c95132389-511398ace8.clean -- Configuring x64-linux -- Building x64-linux-dbg CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: /home/bazunzhi/Environment/vcpkg/downloads/tools/cmake-3.25.1-linux/cmake-3.25.1-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j13 Working Directory: /home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/x64-linux-dbg See logs for more information: /home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/install-x64-linux-dbg-out.log

Call Stack (most recent call first): installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process) installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build) ports/arrayfire/portfile.cmake:93 (vcpkg_cmake_install) scripts/ports.cmake:147 (include)

Additional context

install-x64-linux-dbg-out.log

FrankXie05 commented 11 months ago

@Bzz2745 Could you please make sure whether cuda and cudnn are installed locally?

/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = cudnnStatus_t&]’:
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = cudnnStatus_t&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:1827:77:   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*}]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = {cudnnStatus_t&, const char*&}]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:2817:44:   required from ‘std::string fmt::v10::format(fmt::v10::format_string<T ...>, T&& ...) [with T = {cudnnStatus_t&, const char*}; std::string = std::__cxx11::basic_string<char>; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, cudnnStatus_t&, const char*>]’
/home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/src/27f04d5188-42e72796d0.clean/src/backend/cuda/platform.cpp:126:39:   required from here
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:1691:7: note: ‘formattable’ evaluates to false
Bzz2745 commented 11 months ago

@Bzz2745 Could you please make sure whether cuda and cudnn are installed locally?

/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = cudnnStatus_t&]’:
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = cudnnStatus_t&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:1827:77:   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*}]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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 = {cudnnStatus_t&, const char*&}]’
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:2817:44:   required from ‘std::string fmt::v10::format(fmt::v10::format_string<T ...>, T&& ...) [with T = {cudnnStatus_t&, const char*}; std::string = std::__cxx11::basic_string<char>; fmt::v10::format_string<T ...> = fmt::v10::basic_format_string<char, cudnnStatus_t&, const char*>]’
/home/bazunzhi/Environment/vcpkg/buildtrees/arrayfire/src/27f04d5188-42e72796d0.clean/src/backend/cuda/platform.cpp:126:39:   required from here
/home/bazunzhi/Environment/vcpkg/installed/x64-linux/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/bazunzhi/Environment/vcpkg/installed/x64-linux/include/fmt/core.h:1691:7: note: ‘formattable’ evaluates to false

This step cannot be reached without installing CUDA and CUDNN, because vcpkg needs to install CUDA and CUDNN before that, and will automatically check whether it is installed.

FrankXie05 commented 11 months ago

@Bzz2745 It seems that fmt does not provide special formatting operations for type cudnnStatus_t, it should be reported to fmt. Let the fmt upstream know. https://github.com/fmtlib/fmt

JackBoosY commented 11 months ago

@Bzz2745 It seems that fmt does not provide special formatting operations for type cudnnStatus_t, it should be reported to fmt. Let the fmt upstream know. https://github.com/fmtlib/fmt

Any upstream issue link here?

Bzz2745 commented 11 months ago

It seems that fmt does not provide special formatting operations for type cudnnStatus_t

https://github.com/fmtlib/fmt/issues/3579 I have just open this issue today ,waitting for there reply.

github-actions[bot] commented 10 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.

trenta3 commented 10 months ago

I'm still interested in the resolution of this issue

anya-nlp commented 10 months ago

This looks like an arrayfire issue, is that right?

dg0yt commented 9 months ago

This looks like an arrayfire issue, is that right?

Yes.

anya-nlp commented 9 months ago

This looks like an arrayfire issue, is that right?

Yes.

I created an issue for arrayfire to hopefully take a look at: https://github.com/arrayfire/arrayfire/issues/3506

github-actions[bot] commented 9 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.