Nvcc cannot compile the math_functions.h shipped along with it

this may be of interest

This is a toolchain problem. In general in such situations the recommendation I give is to adhere exactly to the support table in the CUDA version you are using. The first thing I note there is that there is no line for Arch Linux.