I think there is some incompatibility with C++ version, C++ library version and cuda version.
Cuda is not compatible with gcc 11, normally you should get a cmake error from this (but it could be it depends on make version).
I would suggest you change the compiler to 9 or 10 and maybe also c++ std to c++14
On a machine with g++ version 11, I needed to configure root with:
-DCMAKE_CUDA_HOST_COMPILER="/usr/bin/gcc-9.3.0" -DCMAKE_CXX_COMPILER="/usr/bin/g++-9.3.
0" -DCMAKE_C_COMPILER="/usr/bin/gcc-9.3.0"