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

make error on archlinux #199

Open
iBukkoG104 opened this issue May 23, 2024 · 1 comment
Open

make error on archlinux #199

iBukkoG104 opened this issue May 23, 2024 · 1 comment

Comments

@iBukkoG104
Copy link

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

make[2]: *** [CMakeFiles/xmrig-cu.dir/build.make:370: CMakeFiles/xmrig-cu.dir/src/xmrig-cu_generated_cuda_extra.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:84: CMakeFiles/xmrig-cu.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

@david0100101
Copy link

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

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

2 participants