Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Issue while trying to install pre-build package for mmvc-full #387

Open
Quicksilver466 opened this issue Dec 25, 2023 · 0 comments

Comments

@Quicksilver466
Copy link

I am getting the error error: command '/usr/bin/gcc' failed with exit code 1 while installing the pre-build packages for mmcv-full by running the following command::
pip install "mmcv-full>=1.3.17,<=1.5.3" -f https://download.openmmlab.com/mmcv/dist/cu121/torch2.1.2/index.html

System info:
Fedora 37
Torch: 2.1.2
Cuda version: 12.1

Trying to build it in python venv
Getting the following error log(it isn't the complete one as that's too big, but could share if required):

`/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h: In static member function ‘static Result c10::impl::BoxedKernelWrapper<Result(Args ...), typename std::enable_if<((c10::guts::conjunction<c10::guts::disjunction<std::is_constructible<c10::IValue, typename std::decay::type>, std::is_same<c10::TensorOptions, typename std::decay::type> >...>::value && c10::guts::conjunction<c10::guts::disjunction<c10::impl::has_ivalue_to<T, void>, std::is_same<void, T> >, c10::guts::negation<std::is_lvalue_reference<_Tp> > >::value) && (! c10::impl::is_tuple_of_mutable_tensor_refs::value)), void>::type>::call(const c10::BoxedKernel&, const c10::OperatorHandle&, c10::DispatchKeySet, Args ...)’:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:8: warning: ‘if constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^~~~~~~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:25: error: ‘is_same_v’ is not a member of ‘std’; did you mean ‘is_same’?
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^~~~~~~~~
| is_same
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:35: error: expected primary-expression before ‘void’
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:34: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:35: error: expected ‘)’ before ‘void’
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/boxing.h:229:18: note: to match this ‘(’
229 | if constexpr (!std::is_same_v<void, Result>) {
| ^
In file included from /home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/KernelFunction_impl.h:2:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h: In constructor ‘c10::impl::assert_is_valid_input_type<T, AllowDeprecatedTypes, Enable>::assert_is_valid_input_type()’:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:109:10: warning: ‘if constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
109 | if constexpr (guts::typelist::contains<supported_primitive_arg_types, T>::value) {
| ^~~~~~~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h: In constructor ‘c10::impl::assert_is_valid_output_type<T, AllowDeprecatedTypes, Enable>::assert_is_valid_output_type()’:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:215:10: warning: ‘if constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
215 | if constexpr(guts::typelist::contains<supported_primitive_arg_types, T>::value) {
| ^~~~~~~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h: In static member function ‘static void c10::impl::make_boxed_from_unboxed_functor<KernelFunctor, AllowDeprecatedTypes>::call(c10::OperatorKernel*, const c10::OperatorHandle&, c10::DispatchKeySet, c10::Stack*)’:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:575:10: warning: ‘if constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
575 | if constexpr (has_outputs) {
| ^~~~~~~~~
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h: In static member function ‘static Return c10::Dispatcher::callWithDispatchKeySlowPath(const c10::TypedOperatorHandle<Return(Args ...)>&, at::StepCallbacks&, c10::DispatchKeySet, const c10::KernelFunction&, Args ...)’:
/home/ketkar/Public/Python_programs/pose-estimation-backend/env/lib64/python3.8/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:597:6: warning: ‘if constexpr’ only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
597 | if constexpr (num_boxed_args != 0) {
| ^~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> mmcv-full

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant