Nvcc 12.3 with gcc 13.2 not working

If your system gcc is now 13 (like on Arch) you can install gcc 12 alongside it and point CUDA_HOST_COMPILER to your 12 install when building with nvcc.

This is what I had to do to get the latest opencv built, and it links fine with the rest of my application code that builds with gcc 13.2