Skip to content

Not building with GCC 14 #208

@hv15

Description

@hv15

Hi,

I tried building with the latest Archlinux CUDA 12.9 + GCC14 and got the following error:

[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(1610): error: "__is_nothrow_new_constructible" is not a function or static data member
      constexpr bool __is_nothrow_new_constructible
                     ^

/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits(1610): error: "constexpr" is not valid here
      constexpr bool __is_nothrow_new_constructible

I found a similar message with another project relating to the stdcxx version, and so changes the -std= flag to cxx-14 (from cxx-11 in cmake/flags.cmake) which resolved the above error but still produces the following:

[ 12%] Building NVCC (Device) object CMakeFiles/xmrig-cu.dir/src/KawPow/raven/xmrig-cu_generated_KawPow.cu.o
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits:100:52: error: redefinition of ‘constexpr const _Tp std::integral_constant<_Tp, __v>::value’
  100 |   template<typename _Tp, _Tp __v>
      |                                                    ^
/usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/include/c++/type_traits:89:29: note: ‘constexpr const _Tp value’ previously declared here
   89 |       static constexpr _Tp value = __v;
      |                             ^~~~~

Unfortunately I'm unsure how to further resolve this, if there is anything further I can provide, please tell me. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions