Nvcc can't detect host compiler

I compile with nvcc and get err message.

nvcc im2col_conv.cu -o im2col.out
nvcc fatal : Failed to detect host compiler properties.

I have loaded these modules

module purge
module load usc
module load cuda/10.1.243

Any idea what should I do? Thank you.

@jliu9289 Were you trying to compile this on discovery1? If so, I think this was related to a lack of /tmp space that has now been resolved. Please try compiling again.

Yes. It is because of the lack of /tmp space. It worked a few hours later.
Sorry for the late reply.