You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was trying to compile CUDA for xmrig and make throwed me this error:
/usr/include/c++/14.1.1/x86_64-pc-linux-gnu/bits/c++config.h(827): error: user-defined literal operator not found
typedef __decltype(0.0bf16) __bfloat16_t;
^
/usr/include/c++/14.1.1/type_traits(529): error: type name is not allowed
: public __bool_constant<__is_array(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(529): error: identifier "__is_array" is undefined
: public __bool_constant<__is_array(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(581): error: type name is not allowed
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(581): error: identifier "__is_member_object_pointer" is undefined
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(603): error: type name is not allowed
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(603): error: identifier "__is_member_function_pointer" is undefined
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(695): error: type name is not allowed
: public __bool_constant<__is_reference(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(695): error: identifier "__is_reference" is undefined
: public __bool_constant<__is_reference(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(731): error: type name is not allowed
: public __bool_constant<__is_object(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(731): error: identifier "__is_object" is undefined
: public __bool_constant<__is_object(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(760): error: type name is not allowed
: public __bool_constant<__is_member_pointer(_Tp)>
^
/usr/include/c++/14.1.1/type_traits(760): error: identifier "__is_member_pointer" is undefined
: public __bool_constant<__is_member_pointer(_Tp)>
^
/usr/include/c++/14.1.1/bits/utility.h(237): error: __type_pack_element is not a template
{ using type = __type_pack_element<_Np, _Types...>; };
^
/usr/include/c++/14.1.1/type_traits(138): error: class "std::enable_if<, void>" has no member "type"
using __enable_if_t = typename enable_if<_Cond, _Tp>::type;
^
detected during:
instantiation of type "std::__enable_if_t<, void>" at line 176
instantiation of "std::__detail::__or_fn" based on template arguments <std::is_reference<std::allocator>, std::is_function<std::allocator>, std::is_void<std::allocator>, std::__is_array_unknown_bounds<std::allocator>> at line 194
instantiation of class "std::_or<_Bn...> [with _Bn=<std::is_reference<std::allocator>, std::is_function<std::allocator>, std::is_void<std::allocator>, std::__is_array_unknown_bounds<std::allocator>>]" at line 1195
instantiation of class "std::is_nothrow_default_constructible<_Tp> [with _Tp=std::allocator]" at line 528 of /usr/include/c++/14.1.1/bits/basic_string.h
instantiation of "std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" at line 4248 of /usr/include/c++/14.1.1/bits/basic_string.h
15 errors detected in the compilation of "/home/matteo/Scrivania/xmrig-cuda-6.21.1/src/cuda_extra.cu".
CMake Error at xmrig-cu_generated_cuda_extra.cu.o.Release.cmake:280 (message):
Error generating file
/home/matteo/Scrivania/xmrig-cuda-6.21.1/build/CMakeFiles/xmrig-cu.dir/src/./xmrig-cu_generated_cuda_extra.cu.o
i'm not using this particular project, but i got the same error while compiling cuda related repo after system update, turns out cuda does not support gcc14, so i have installed gcc13 alongside gcc14 and used it to compile cuda specifically passing as ccbin flag for nvcc, after this errors have disappeared, you can try that
Hello, I was trying to compile CUDA for xmrig and
make
throwed me this error:The text was updated successfully, but these errors were encountered: