I am facing the same issue when build PyTorch-1.4.0 from source.
Here is the building log: https://gist.github.com/YingleiZhang/fc98c94d493ac39506daacefa0298b38#file-gistfile1-txt-L11 32
I don’t have this problem when build 1.2.0. Any help is appreciated.