They are all using ubuntu16 with a different default gcc. Mine is ubuntu14.04 with gcc4.9
I wonder the error is caused by

I"/raid5/milu/pytorch0.4/pytorch/torch/lib/tmp_install/include/THCUNN" -DOMPI_SKIP_MPICXX=1 -std=c++11 ’

this ‘-std=c++11’
Is that mean we must use c++11?
I don’t know how to fix it and I can’t upgrade gcc to 5.x by conda