Do you know if your prior build was done significantly earlier in the year? Some dependencies might have been updated in the meantime, breaking things.
I changed my disk 2-3 times this month for work reasons. The last time I built the source was about 2 weeks ago and it was running fine. All the raw images processed smoothly.
For anyone who encountered similar issue and you have NVIDIA Cuda in your system (downloaded from this link), you might be need to manually include nvcc into your PATH. It is not automatically added in my Cuda installation and somehow making the build process failed.