Stupid nvidia upstream using HOSTCC in conftest.sh and HOST_CC in Makefile. The eclasses do put HOSTCC in env but not HOST_CC which makes conftest.sh fail because target binary does not run on host. I am letting upstream know this but in the meanwhile here is a patch.
Created attachment 110504 [details, diff] patch to make cross compiling work
fixed in 169.09-r1