If you try to compile a CUDA program, you will see a similar error:
%nvcc -c qr.cu
clang: error: unsupported option '-dumpspecs'
clang: error: no input files
There is a simple workaround.
%nvcc -ccbin=/usr/bin/clang -c qr.cu
A more convenient way of adding this, it is to define an alias for nvcc.
You can add this line to your .bash_profile
alias nvcc='nvcc -ccbin=/usr/bin/clang'
or just define it in your shell,
alias 'nvcc=nvcc -ccbin=/usr/bin/clang'