Those errors are not expected. You can share the content of the failures, those might help diagnosing.
However, I suggest to first try to exclude the possibility of an issue with your compilers and libraries (gcc, fftw, and CUDA installation). Figuring out whether it is a case of broken compiler or CUDA installation can be tedious, so better eliminate that first.
An easy way to do that would be to take a flash drive, transfer a plain Linux OS on it (ideally use the same operating system as the one installed on your machine), boot from that, install only the minimum necessary compoennts, e.g. gcc 8 the latest CUDA and GPU drivers, and see if the error still occurs.
Cheers,
Szilárd