Problem while installing pytorch from source

ninja: error: ‘/usr/include/crt/common_functions.h’, needed by ‘third_party/gloo/gloo/CMakeFiles/gloo_cuda.dir/gloo_cuda_generated_cuda.cu.o’, missing and no known rule to make it