I have been able to compile XMRig in Debian, Fedora system.I have gcc installed in anaconda environment.
I am able to compile xmrig successfully. But when I am trying to compile cuda plugin I am getting following error
[ 6%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/arqma/xmrig-cu_generated_randomx_arqma.cu.o
[ 25%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/RandomX/graft/xmrig-cu_generated_randomx_graft.cu.o
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(148): error: "__or_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(148): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(150): error: "__and_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(150): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(170): error: "conjunction_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(170): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(173): error: "disjunction_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(173): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(176): error: "negation_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(176): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2562): error: "is_swappable_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2562): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2567): error: "is_nothrow_swappable_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2567): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2646): error: "is_swappable_with_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2646): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2651): error: "is_nothrow_swappable_with_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2651): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2818): error: "is_invocable_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2818): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2822): error: "is_nothrow_invocable_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2822): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2827): error: "is_invocable_r_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2827): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2832): error: "is_nothrow_invocable_r_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2832): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2839): error: "is_void_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2839): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2841): error: "is_null_pointer_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2841): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2843): error: "is_integral_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2843): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2845): error: "is_floating_point_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2845): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2847): error: "is_array_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2847): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2849): error: "is_pointer_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2849): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2851): error: "is_lvalue_reference_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2851): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2854): error: "is_rvalue_reference_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2854): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2857): error: "is_member_object_pointer_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2857): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2860): error: "is_member_function_pointer_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2860): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2863): error: "is_enum_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2863): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2865): error: "is_union_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2865): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2867): error: "is_class_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2867): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2869): error: "is_function_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2869): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2871): error: "is_reference_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2871): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2873): error: "is_arithmetic_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2873): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2875): error: "is_fundamental_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2875): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2877): error: "is_object_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2877): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2879): error: "is_scalar_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2879): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2881): error: "is_compound_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2881): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2883): error: "is_member_pointer_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2883): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2885): error: "is_const_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2885): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2887): error: "is_volatile_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2887): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2889): error: "is_trivial_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2889): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2891): error: "is_trivially_copyable_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2891): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2894): error: "is_standard_layout_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2894): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2896): error: "is_pod_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2896): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2898): error: "is_literal_type_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2898): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2900): error: "is_empty_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2900): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2902): error: "is_polymorphic_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2902): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2904): error: "is_abstract_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2904): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2906): error: "is_final_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2906): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2908): error: "is_signed_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2908): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2910): error: "is_unsigned_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2910): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2912): error: "is_constructible_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2912): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2915): error: "is_default_constructible_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2915): error: "constexpr" is not valid here
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2918): error: "is_copy_constructible_v" is not a function or static data member
/home/mng/anaconda3/envs/SD/x86_64-conda-linux-gnu/include/c++/9.5.0/type_traits(2918): error: "constexpr" is not valid here
Error limit reached.
100 errors detected in the compilation of "/home/mng/xmrig-cuda/src/KawPow/raven/KawPow.cu".
Compilation terminated.
CMake Error at xmrig-cu_generated_KawPow.cu.o.Release.cmake:280 (message):
Error generating file
/home/mng/xmrig-cuda/build/CMakeFiles/xmrig-cu.dir/src/KawPow/raven/./xmrig-cu_generated_KawPow.cu.o
I have been able to compile XMRig in Debian, Fedora system.I have gcc installed in anaconda environment.
I am able to compile xmrig successfully. But when I am trying to compile cuda plugin I am getting following error