On Arch Linux, without the -ccbin flag, nvcc will choose g++-13 by default. However, cc generates -ccbin=c++ which links to GCC 14, causing compile errors. Although on my own machine, I can specify the CXX environment variable, I can't simply fix the version for lib users. The best way to fix this problem is to remove the -ccbin flag and let nvcc decide host compiler by itself.
On Arch Linux, without the
-ccbin
flag,nvcc
will chooseg++-13
by default. However,cc
generates-ccbin=c++
which links to GCC 14, causing compile errors. Although on my own machine, I can specify theCXX
environment variable, I can't simply fix the version for lib users. The best way to fix this problem is to remove the-ccbin
flag and letnvcc
decide host compiler by itself.